mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-29 23:37:44 +01:00
Merge bitcoin/bitcoin#24865: rpc: Enable wallet import on pruned nodes and add test
564b580bf0test: Introduce MIN_BLOCKS_TO_KEEP constant (Aurèle Oulès)71d9a7c03btest: Wallet imports on pruned nodes (Aurèle Oulès)e6906fcf9erpc: Enable wallet import on pruned nodes (Aurèle Oulès) Pull request description: Reopens #16037 I have rebased the PR, addressed the comments of the original PR and added a functional test. > Before this change importwallet fails if any block is pruned. This PR makes it possible to importwallet if all required blocks aren't pruned. This is possible because the dump format includes key timestamps. For reviewers: `python test/functional/wallet_pruning.py --nocleanup` will generate a large blockchain (~700MB) that can be used to manually test wallet imports on a pruned node. Node0 is not pruned, while node1 is. ACKs for top commit: kouloumos: ACK564b580bf0achow101: reACK564b580bf0furszy: ACK564b580w0xlt: ACK564b580bf0Tree-SHA512: b345a6c455fcb6581cdaa5f7a55d79e763a55cb08c81d66be5b12794985d79cd51b9b39bdcd0f7ba0a2a2643e9b2ddc49310ff03d16b430df2f74e990800eabf
This commit is contained in:
@@ -85,6 +85,7 @@ EXTENDED_SCRIPTS = [
|
||||
'feature_pruning.py',
|
||||
'feature_dbcrash.py',
|
||||
'feature_index_prune.py',
|
||||
'wallet_pruning.py --legacy-wallet',
|
||||
]
|
||||
|
||||
BASE_SCRIPTS = [
|
||||
|
||||
Reference in New Issue
Block a user