Open mblottiere opened 1 year ago
Merging #244 (d36373a) into main (965abe3) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## main #244 +/- ##
=======================================
Coverage 76.23% 76.23%
=======================================
Files 193 193
Lines 14103 14103
=======================================
Hits 10752 10752
Misses 2384 2384
Partials 967 967
Impacted Files | Coverage Δ | |
---|---|---|
pkg/gateway/gateway.go | 86.84% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us.
You can get a block by transaction ID by evaluating the GetBlockByTxID transaction function on the qscc system chaincode. It takes two parameters: channel name and transaction ID. The implementation is here:
This assumes that invocation of system chaincode works OK for fabric-sdk-go, which I haven't tried. It does work with fabric-gateway.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We have a use case where given a Getway we need to query the ledger for some information (retrieving block from txID).
Being able to obtain the ChannelProvider is convenient since we can then create ledger.Client as needed. I wonder however if it is desirable to expose such a low level component. Maybe something like
gateway.GetLedger(...)
would be more appropriate? Let me know what you think.