Skip to content
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

Merged
merged 4 commits into from Jun 2, 2023
Merged

Conversation

algorandskiy
Copy link
Contributor

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, and node.follower_node for catchup.

Test Plan

Tested manually

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Merging #5420 (5a20cf5) into master (1abbd50) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            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

Copy link
Contributor

@iansuvak iansuvak left a 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.

tools/debug/transplanter/main.go Show resolved Hide resolved
decodeHeader(*snappy.Reader) (*headerRow, int, error)
}

type decoderV1 struct{}
Copy link
Contributor

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

@bbroder-algo
Copy link
Contributor

How do you generate the transaction files?

@algorandskiy
Copy link
Contributor Author

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.

@bbroder-algo bbroder-algo merged commit fd946dd into algorand:master Jun 2, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants