HomePhabricator

[Iguana] Refactor interpreter and formatter

Description

[Iguana] Refactor interpreter and formatter

Summary:
Currently, the iguana interpreter captures for each opcode how the stack was before execution of the opcode.

This is fine for the human readable format, but for the CSV format, it is not what is used in practice. There, you need the stack *after* the execution of the opcode.

For this, we first refactor the interpreter and human-readable formatter, which now produces almost the same output (except in the case of an invalidly encoded opcode).

In a later diff, we can add the CSV format.

Test Plan: ninja check-iguana

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D16851

Details

Provenance
tobias_ruckAuthored on Thu, Oct 3, 10:47
tobias_ruckPushed on Fri, Oct 11, 08:12
Reviewer
Restricted Project
Differential Revision
D16851: [Iguana] Refactor interpreter and formatter
Parents
rABC0fb8fe8b3e1e: [chronik] Add a test for invalidated blocks on a parked chain
Branches
Unknown
Tags
Unknown