-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report system chunk transactions within a block #1123
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1123 +/- ##
==========================================
+ Coverage 39.28% 39.30% +0.01%
==========================================
Files 37 37
Lines 1876 1888 +12
==========================================
+ Hits 737 742 +5
- Misses 1051 1056 +5
- Partials 88 90 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Is it useful to have this here, currently there is no way of getting that transaction using flow cli. Having the ability to get the system chunk transaction for a given height would be very useful though. |
@m-Peter should we merge this? |
@sideninja I have re-opened this PR frorm my personal GitHub account. The previous PR was here: #1091. @janezpodhostnik Had a good remark #1091 (comment), so I guess we should wait to see whether he can propose an alternative. |
This is a tougher problem than I thought. I'll open another issue in the flow-go repo and try to get some more feedback. Sorry for the holdup. |
FWIW, I think this could be made more efficient by flipping the logic. Instead of requesting each collection then calling |
@peterargue I had already tried this, but the models involved here are the ones coming from
The Let me know if you had something else in mind 🙏 |
a66cbe5
to
ef12f77
Compare
Ah, you're right. Looks like the needed change was never backported. We just merged PR onflow/flow-go-sdk#436 which adds |
That's great 🙌 I will update to your suggestion, once |
@m-Peter this is blocked by the Go SDK update? cc @chasefleming |
I think we're waiting on v0.43.0 for the go sdk, is that correct still @m-Peter ? |
I tried bumping ../../go/pkg/mod/github.com/onflow/[email protected]/model/bootstrap/node_info.go:85:37: cannot use info.SigningAlgorithm (variable of type "github.com/onflow/crypto".SigningAlgorithm) as "github.com/onflow/flow-go/crypto".SigningAlgorithm value in argument to crypto.DecodePrivateKey
# github.com/onflow/flow-go/utils/grpcutils
../../go/pkg/mod/github.com/onflow/[email protected]/utils/grpcutils/grpc_client.go:25:43: cannot use publicFlowNetworkingKey (variable of type "github.com/onflow/crypto".PublicKey) as "github.com/onflow/flow-go/crypto".PublicKey value in argument to DefaultClientTLSConfig: "github.com/onflow/crypto".PublicKey does not implement "github.com/onflow/flow-go/crypto".PublicKey (wrong type for method Algorithm)
have Algorithm() "github.com/onflow/crypto".SigningAlgorithm
want Algorithm() "github.com/onflow/flow-go/crypto".SigningAlgorithm |
I think |
But it is always the latest one that is the system chunk transaction is it not? |
It would also be very nice to have a way to get system transaction events from a block height. Without getting all the other data for that block. |
yes
There's a community team working on onflow/flow-go#4584 now. The end result will be 2 new API endpoints to get the service transaction and result |
@m-Peter should we get this merged? |
@sideninja I still have to address this suggestion (#1123 (comment)) from Peter. I need to check if that addition is included in the current |
another update for the flow-go side. onflow/flow-go#4584 was merged adding 2 new methods: |
@m-Peter what's the status on this? Can this be merged yet? |
Closes #911
Description
The last transaction returned from
flow.GetTransactionsByBlockID
, is the system chunk transaction. We add it as the last transaction in the last collection, so it can be returned from the command:For contributor use:
master
branchFiles changed
in the Github PR explorer