HomePhabricator

[Chronik] Prefix WS protobuf enum entries with `BLK_` or `TX_`

Description

[Chronik] Prefix WS protobuf enum entries with BLK_ or TX_

Summary: In protobuf, all entries in an enum share the same namespace, which is why we prefix them according to their type.

Test Plan: ninja && ./test/functional/test_runner.py chronik_ws.py && ./test/functional/test_runner.py chronik_ws_script.py

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 26 2023, 15:54
tobias_ruckPushed on Apr 27 2023, 23:39
Reviewer
Restricted Project
Differential Revision
D13794: [Chronik] Prefix WS protobuf enum entries with `BLK_` or `TX_`
Parents
rABC4eec483b77c2: [Chronik] Add `Opcode::N` to get a constant with the opcode's number
Branches
Unknown
Tags
Unknown