darkfi e4a098e5c9 tx-replayer: update for PALLAS_SCHNORR_VERIFY_GAS rename vor 1 Monat
..
src e4a098e5c9 tx-replayer: update for PALLAS_SCHNORR_VERIFY_GAS rename vor 4 Wochen
.gitignore ff477eb2f0 script/research/tx-replayer: a tool to replay a transaction by resetting the blockchain database to a height before the transaction was added at vor 7 Monaten
Cargo.toml 5ce5bf4416 chore: Update halo2 crates vor 2 Monaten
Makefile ff477eb2f0 script/research/tx-replayer: a tool to replay a transaction by resetting the blockchain database to a height before the transaction was added at vor 7 Monaten
README.md d43a456f7b script/research/tx-replayer: add wasm, zkp and sig command line flags inorder to verify either wasm runtime, zkp or signature part of the transaction inorder to see resources usage for each parts of a tx verification vor 7 Monaten

README.md

Tx-Replayer

A lightweight transaction replay tool for debugging and analyzing transactions, as well as measuring resource usage during transaction verification with profiler tools such as heaptrack and samply.

Disclaimer: Use this tool only on a copy of your database. Running it on a live database may cause data loss or corruption.

Usage

Build

% make

To replay the whole transaction verification step.

% ./tx-replayer --database-path [DATABASE_PATH] --tx-hash [TX_HASH]

To replay only the Zk proof verification part.

% ./tx-replayer --zkp --database-path [DATABASE_PATH] --tx-hash [TX_HASH]

To replay only the wasm Runtime verification part.

% ./tx-replayer --wasm --database-path [DATABASE_PATH] --tx-hash [TX_HASH]

To replay only the signature verification part.

% ./tx-replayer --sig --database-path [DATABASE_PATH] --tx-hash [TX_HASH]

You can run samply to see the CPU usage of the transaction verification.

% samply record ./tx-replayer --database-path [DATABASE_PATH] --tx-hash [TX_HASH]