Repository navigation
Description
Summary
protx listdiff reports operator key changes differently in v23 and v24. When a ProUpRegTx moves a masternode from a legacy-scheme state to a basic-scheme state and carries the byte-identical operator key, v23 reports pubKeyOperator in the diff and v24 omits it.
Details
- Up to v23 the state diff compares operator keys as BLS points. With the sign bit set, the same bytes read as a legacy key and as a basic key are different points (P vs -P), so v23 reports
pubKeyOperatorwith the same hex. - v24 compares the serialized bytes (
src/evo/dmnstate.h, thepubKeyOperatorfield in the state diff), so the same transaction produces a diff withoutpubKeyOperator. - Before V24 activation, ProTx version 2 is the maximum, so every such version change is a legacy↔basic crossing. A crossing with unchanged bytes is always a point change.
Mainnet examples
These are the five mainnet transactions of this shape we know of. All are state version 1 → 2 ProUpRegTx carrying the byte-identical key. Checked with v23.1.8 RPC: the diff reports pubKeyOperator with unchanged bytes, plus version 2.
| Height | Block | proTxHash | ProUpRegTx |
|---|---|---|---|
| 2164318 | 000000000000001666af1bdbada0b31a7865c0165a310f670e0164fab22813be |
222abaf161a1698842b521056f950149c18fefe09f3bf71e1b230800b30b8974 |
d013b50863d0142380867c5034703bfd79d8dfbcaebf0bb87893b99163867ea6 |
| 2314076 | 0000000000000007b03fed2c78abab393e948065f9e7be50d4f7a1265bd054e7 |
e0d7aeac3dab8ae5814f8439da21b29e9213af697eaef1aaa1c329f596f9a8ec |
09f07a3aaa326cedabd2bf3f52da686a1fc287fe32d3d409d66db2798adae4f8 |
| 2314076 | (same block) | 7607c48cb6611dc26d0a764144a92c963389ec58dd2407fbc3c0ae8c062db211 |
3ba93089d1f8dc572a984dd844dd9030ee68a67e9077f23197adfb03e28cd974 |
| 2314078 | 000000000000000a6222bdaa0ed856da1d1927ea6fce920d01266bca8c3746d1 |
b0d84b6939d0be2cff89e9332c8a7c15f005ba463a4bd4d7c2066e60bccc40ed |
df13c286e54206d2cf896f980f6ae7b204a458dfb64d3aba0e599435e87ff74a |
| 2314098 | 00000000000000049b2441537b84f9f2fc7904ba94ef60ed36989d61385a546e |
2af26b51bb03870c55e55979623ab44bd21d0e15b908a81f22dbd56ab7bb2bbf |
df3aaf50e751f33ccdcad926c1da437453366181a60ae82567c84ccf60dd39bf |
To check: on a v24 node, run protx listdiff 2164317 2164318. We expect no pubKeyOperator for 222abaf1…; v23 includes it. We reproduced the v24 behaviour on regtest with 24.0.0-rc.3 but have not run it on a mainnet v24 node.
Why it matters
Consumers that rebuild masternode state from protx listdiff, Dash Platform's Drive among them, end up in a different masternode state depending on the Core version they talk to. Because the output differs for historical blocks, this also affects replaying existing history.
Request
Before v24 final, report pubKeyOperator when either the bytes or the point differ. Before V24 activation this reproduces v23's output exactly, since byte-only changes cannot occur pre-V24.
🤖 Filed with Claude Code on behalf of @shumkov
Activity
Merge #8145: refactor: take the BLS scheme from the data or the block…