[go: up one dir, main page]

Teztale experiment script: Obtain reorganised blocks

Context

Closes #6499 (closed).

Follows !10127 (merged).

The goal here is to refactor the code in such a way that adding new teztale queries is done very easily. A new command was introduced to retrieve the reorganised blocks from the teztale db.

Manually testing the MR

dune build devtools/testnet_experiment_tools

./_build/default/devtools/testnet_experiment_tools/get_teztale_data.exe canonical_chain_query --db-path <db_path>

./_build/default/devtools/testnet_experiment_tools/get_teztale_data.exe reorganised_blocks_query --db-path <db_path> --print

Reorganised block with ID: 1 at level: 4151372 with round: 0
Reorganised block with ID: 3 at level: 4151373 with round: 0
Reorganised block with ID: 5 at level: 4151374 with round: 0
Reorganised block with ID: 13 at level: 4151381 with round: 0
Reorganised block with ID: 14 at level: 4151380 with round: 1

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Gabriel Moise

Merge request reports

Loading