mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 06:49:38 -04:00
Compare commits
5 commits
757ccd8905
...
1d6f1a722f
Author | SHA1 | Date | |
---|---|---|---|
|
1d6f1a722f | ||
|
c5e44a0435 | ||
|
32d55e28af | ||
|
2aa63d511a | ||
|
772ba7f9ce |
2 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ def mine_large_blocks(node, n):
|
|||
# Set the nTime if this is the first time this function has been called.
|
||||
# A static variable ensures that time is monotonicly increasing and is therefore
|
||||
# different for each block created => blockhash is unique.
|
||||
if "nTimes" not in mine_large_blocks.__dict__:
|
||||
if "nTime" not in mine_large_blocks.__dict__:
|
||||
mine_large_blocks.nTime = 0
|
||||
|
||||
# Get the block parameters for the first block
|
||||
|
@ -498,11 +498,11 @@ class PruneTest(BitcoinTestFramework):
|
|||
"start", [{"desc": f"raw({false_positive_spk.hex()})"}], 0, 0, "basic", {"filter_false_positives": True})
|
||||
|
||||
def test_pruneheight_undo_presence(self):
|
||||
node = self.nodes[2]
|
||||
node = self.nodes[5]
|
||||
pruneheight = node.getblockchaininfo()["pruneheight"]
|
||||
fetch_block = node.getblockhash(pruneheight - 1)
|
||||
|
||||
self.connect_nodes(1, 2)
|
||||
self.connect_nodes(1, 5)
|
||||
peers = node.getpeerinfo()
|
||||
node.getblockfrompeer(fetch_block, peers[0]["id"])
|
||||
self.wait_until(lambda: not try_rpc(-1, "Block not available (pruned data)", node.getblock, fetch_block), timeout=5)
|
||||
|
|
|
@ -87,7 +87,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||
# 0.21.x and 22.x would both produce bad derivation paths when topping up an inactive hd chain
|
||||
# Make sure that this is being automatically cleaned up by migration
|
||||
node_master = self.nodes[1]
|
||||
node_v22 = self.nodes[self.num_nodes - 5]
|
||||
node_v22 = self.nodes[self.num_nodes - 3]
|
||||
wallet_name = "bad_deriv_path"
|
||||
node_v22.createwallet(wallet_name=wallet_name, descriptors=False)
|
||||
bad_deriv_wallet = node_v22.get_wallet_rpc(wallet_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue