mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
Merge #19054: wallet: Skip hdKeypath of 'm' when determining inactive hd seeds
951bca61d7tests: feature_backwards_compatibility.py test 0.16 up/downgrade (Andrew Chow)3a03a11e8cSkip hdKeypath of 'm' (Andrew Chow) Pull request description: Previously the seed was stored with keypath 'm' so we need to skip this as well when determining inactive seeds. Fixes #19051 ACKs for top commit: Sjors: ACK951bca61d7instagibbs: re-utACK951bca61d7ryanofsky: Code review ACK951bca61d7. No significant changes since last review, just updated comment and some test tweaks Tree-SHA512: 930f77e7097c9cf4f1012e540bd2b1a72fd279262517f10c1531b2ad48c632ef95e0dd4edea81bcc3b3db306479d34e5e79e5d6c4ed31dfa4b77a4231436436e
This commit is contained in:
@@ -439,10 +439,11 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
|
||||
// Extract some CHDChain info from this metadata if it has any
|
||||
if (keyMeta.nVersion >= CKeyMetadata::VERSION_WITH_HDDATA && !keyMeta.hd_seed_id.IsNull() && keyMeta.hdKeypath.size() > 0) {
|
||||
// Get the path from the key origin or from the path string
|
||||
// Not applicable when path is "s" as that indicates a seed
|
||||
// Not applicable when path is "s" or "m" as those indicate a seed
|
||||
// See https://github.com/bitcoin/bitcoin/pull/12924
|
||||
bool internal = false;
|
||||
uint32_t index = 0;
|
||||
if (keyMeta.hdKeypath != "s") {
|
||||
if (keyMeta.hdKeypath != "s" && keyMeta.hdKeypath != "m") {
|
||||
std::vector<uint32_t> path;
|
||||
if (keyMeta.has_key_origin) {
|
||||
// We have a key origin, so pull it from its path vector
|
||||
|
||||
Reference in New Issue
Block a user