Skip to content

fix: merkle root from the diff doesn't match calculated merkle root - #1189

Merged
shumkov merged 1 commit into
masterfrom
fix/drive/merkle_diff
Jun 22, 2023
Merged

shumkov merged 1 commit into
masterfrom
fix/drive/merkle_diff

Conversation

@shumkov

@shumkov shumkov commented Jun 22, 2023 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Drive fails with Core 19.2:

      err: {
        "type": "Error",
          "message": "Merkle root from the diff doesn't match calculated merkle root after diff is applied",
          "stack":
        Error: Merkle root from the diff doesn't match calculated merkle root after diff is applied
        at SimplifiedMNList.applyDiff (/platform/.yarn/cache/@dashevo-dashcore-lib-npm-0.20.8-d3d76b93b6-937b88a28a.zip/node_modules/@dashevo/dashcore-lib/lib/deterministicmnlist/SimplifiedMNList.js:86:11)
        at new SimplifiedMNList (/platform/.yarn/cache/@dashevo-dashcore-lib-npm-0.20.8-d3d76b93b6-937b88a28a.zip/node_modules/@dashevo/dashcore-lib/lib/deterministicmnlist/SimplifiedMNList.js:42:10)
        at new SimplifiedMNListStore (/platform/.yarn/cache/@dashevo-dashcore-lib-npm-0.20.8-d3d76b93b6-937b88a28a.zip/node_modules/@dashevo/dashcore-lib/lib/deterministicmnlist/SimplifiedMNListStore.js:42:31)
        at SimplifiedMasternodeList.applyDiffs (/platform/packages/js-drive/lib/core/SimplifiedMasternodeList.js:19:20)
        at updateSimplifiedMasternodeList (/platform/packages/js-drive/lib/core/updateSimplifiedMasternodeListFactory.js:84:32)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async initChainHandler (/platform/packages/js-drive/lib/abci/handlers/initChainHandlerFactory.js:77:5)
        at async Connection.handleRequest (/platform/.yarn/cache/@dashevo-abci-https-9fb519f2ca-aaf41ab7fa.zip/node_modules/@dashevo/abci/lib/handleRequestFactory.js:55:29)
        at async Connection.readNextRequest (/platform/.yarn/cache/@dashevo-abci-https-9fb519f2ca-aaf41ab7fa.zip/node_modules/@dashevo/abci/lib/Connection.js:176:18)
      }

What was done?

How Has This Been Tested?

None

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov
shumkov changed the base branch from v0.25-dev to master June 22, 2023 13:00
@shumkov shumkov changed the title fix/drive/merkle_diff fix: merkle root from the diff doesn't match calculated merkle root Jun 22, 2023
@shumkov shumkov added this to the v0.24.x milestone Jun 22, 2023
@shumkov
shumkov marked this pull request as ready for review June 22, 2023 13:04
@shumkov
shumkov requested a review from antouhou as a code owner June 22, 2023 13:04
@shumkov
shumkov merged commit 5bf4ea8 into master Jun 22, 2023
@shumkov
shumkov deleted the fix/drive/merkle_diff branch June 22, 2023 14:53
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 2, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 2, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 2, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 2, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit to xdustinface/platform that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- dashpay#1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- dashpay#1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- dashpay#902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- dashpay#902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- dashpay#1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- dashpay#1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because dashpay#1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. dashpay#1273 (payload written only from version 3) and dashpay#1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider reads `dkg_interval` and widens both counts to `u32`, giving the same fetch window

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider reads `dkg_interval` and widens both counts to `u32`, giving the same fetch window

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider reads `dkg_interval` and widens both counts to `u32`, giving the same fetch window

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider reads `dkg_interval` and widens both counts to `u32`, giving the same fetch window

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 3, 2026
Moves every rust-dashcore pin from `7329126e` to `3efb5522` on xdustinface/rust-dashcore: current `dev`, plus dashpay/rust-dashcore#776 (FFI crates removed), plus `TxIn::claimed_p2pkh_address`. The fork URL is temporary until both land upstream. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #902: dash-spv sends the user agent as given, so `platform_wallet_manager_spv_start` applies the `/name:version/` form and the 256-byte bound itself
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider reads `dkg_interval` and widens both counts to `u32`, giving the same fetch window

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants