-
Notifications
You must be signed in to change notification settings - Fork 490
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
tools: txn replayer #5420
tools: txn replayer #5420
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5420 +/- ##
==========================================
- Coverage 55.40% 55.40% -0.01%
==========================================
Files 452 452
Lines 63855 63855
==========================================
- Hits 35379 35377 -2
+ Misses 26044 26043 -1
- Partials 2432 2435 +3 see 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good and safe to merge especially since it's a standalone tool.
decodeHeader(*snappy.Reader) (*headerRow, int, error) | ||
} | ||
|
||
type decoderV1 struct{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could probably remove decoderv1 but no harm in keeping it
How do you generate the transaction files? |
This is up to the user. One might run a node and dump all validated txns, other might extract them from a block. |
Summary
The debugging tool allows to catchup to a certain round and either stop or start applying transaction(s) from a file, directory, txlog files or directory.
It uses
ledger.OpenLedger
+pools.TransactionPool
while adding new data into ledger, andnode.follower_node
for catchup.Test Plan
Tested manually