hyperledger-firefly / hyperledger-firefly/firefly

Bug at startup where FireFly gives up creating listeners if cannot reach transaction manager

Open
#1,532 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
602
Forks
246
Avg merge
18h 47m
Merged PRs (30d)
6

Description

As part of the startup flow of FireFly, it will reconcile the intent from its database and call the relevant plugins. For example, it will make sure to activate the toke pools (listen to token pool events) or make sure the contract listeners are created in the transaction manager layer. The latter is the source of this bug and the the listener will never be created against the transaction manager. The worst part is that is fails silently, only when you retrieve the listener then in the status you will see that it cannot find the listener in the blockchain connector as such:
```
"status": {
"error": "FF10111: Error from ethereum connector: {\"error\":\"FF21046: Event listener '0190119e-0627-9252-799e-0c02208b939c' not found\"}"
}
```

This will cause FireFly to never listen to those events and not let the user know that an issue has occurred. It's a bug in the way the Contract Manager handles errors from the transaction manager

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.