hyperledger-firefly / hyperledger-firefly/firefly
Unable to listen to events emitted before creating event listener
- Dominant language
- Go
- Stars
- 602
- Forks
- 246
- Avg merge
- 18h 47m
- Merged PRs (30d)
- 6
Description
Launched a fabric network using fabric cli with a total of 3 firefly nodes. Deployed asset-transfer-basic chaincode by following the steps mentioned in the documentation https://hyperledger.github.io/firefly/tutorials/custom_contracts/fabric.html.
Ran three blockchain transactions from org1 and then created an event listener from org2. After creating an event listener, org2 didn't receive any events. Ran fourth transaction from org1, now org2 received the fourth transaction but not the previous transactions.
Below is the payload used for creating event listener in org2
```
{
"interface": {
"id": "f1e5522c-59a5-4787-bbfd-89975e5b0954"
},
"location": {
"channel": "firefly",
"chaincode": "asset_transfer"
},
"event": {
"name": "AssetCreated"
},
"options": {
"firstEvent": "oldest"
},
"topic": "assets"
}
```
### Expected:
Org2 should receive all the events emitted before creating an event listener
### Actual:
Org2 didn't receive events emitted before creating an event listener
Contributor guide
Assessment
This issue has not been assessed yet.