Add state sync transaction to debug_trace functions.#547
Conversation
Codecov ReportBase: 56.81% // Head: 56.80% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #547 +/- ##
===========================================
- Coverage 56.81% 56.80% -0.01%
===========================================
Files 606 606
Lines 70128 70272 +144
===========================================
+ Hits 39840 39917 +77
- Misses 26872 26925 +53
- Partials 3416 3430 +14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
cf23e5a to
238d5a4
Compare
We can now specify inside the rpc call, if we want the trace of stateSyncTx as well. By default, it is false. This works for all debug trace methods. |
…824"" This reverts commit 97532b7.
|
@0xsharma @pratikspatil024 should state-sync traces be also available in trace_block? |
|
@MRabenda , yes they will be available but as empty traces as state-syncs are system transactions. |
Description
Because state sync transaction is added by bor consensus, it will not be included in
debug_traceByBlockNumberanddebug_tranceByBlockHash. The problem seems to be that block.Transactions() doesn’t contain state sync transaction.In this PR, tracing can be possible on state-sync transactions as well. All the debug_trace functions will contain the traces of state-sync transactions, if present.
Changes
Checklist
Cross repository changes
Testing