hyperledger-firefly / hyperledger-firefly/fabconnect

Improve receipts handling

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Go
Stars
40
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Currently receipts are not produced and saved in the receipts DB until after the transaction has completed. This can be confusing when the client attempts to get the state of the transaction by querying on the receipt ID, where `404` will be returned.

A better design would be for the receipt to be saved in the DB with a `pending` state in the meanwhile, which gets updated to `TransactionSuccess` or `TransactionFailure` upon completion.

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.