v30.3-roots.1 · Commit 8: [PATCH 08/68] ci: restore Roots assurance on Core 30.3 interfaces
test/functional/wallet_backup.py
Before: test/functional/wallet_backup.py · After: test/functional/wallet_backup.py
File metadata
index 5e67c63a1f19b652a845dc1c605afbcf89746f95..16c50a671f3e7303f2ce3c8d1e9f9d6bfd49496f 100755
Download original patch · Release notes
Diff rows 1–22 of 22. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/wallet_backup.py
CHANGED
|
@@ -49,11 +49,11 @@ class WalletBackupTest(BitcoinTestFramework):
|
|
| 49 |
self.setup_clean_chain = True
|
| 50 |
# whitelist peers to speed up tx relay / mempool sync
|
| 51 |
self.noban_tx_relay = True
|
| 52 |
-
# nodes 1, 2, 3 are spenders, let's give them a keypool=100
|
| 53 |
self.extra_args = [
|
| 54 |
-
["-keypool=100"],
|
| 55 |
-
["-keypool=100"],
|
| 56 |
-
["-keypool=100"],
|
| 57 |
[],
|
| 58 |
]
|
| 59 |
self.rpc_timeout = 120
|
|
@@ -73,6 +73,7 @@ class WalletBackupTest(BitcoinTestFramework):
|
|
| 73 |
if (randint(1,2) == 1):
|
| 74 |
amount = Decimal(randint(1,10)) / Decimal(10)
|
| 75 |
self.nodes[from_node].sendtoaddress(to_address, amount)
|
|
|
|
| 76 |
|
| 77 |
def do_one_round(self):
|
| 78 |
a0 = self.nodes[0].getnewaddress()
|
|
|
|
| 49 |
self.setup_clean_chain = True
|
| 50 |
# whitelist peers to speed up tx relay / mempool sync
|
| 51 |
self.noban_tx_relay = True
|
| 52 |
+
# Nodes 0, 1, and 2 are spenders. Keep same-round change reusable; RBF behavior is tested elsewhere.
|
| 53 |
self.extra_args = [
|
| 54 |
+
["-keypool=100", "-walletrbf=0"],
|
| 55 |
+
["-keypool=100", "-walletrbf=0"],
|
| 56 |
+
["-keypool=100", "-walletrbf=0"],
|
| 57 |
[],
|
| 58 |
]
|
| 59 |
self.rpc_timeout = 120
|
|
|
|
| 73 |
if (randint(1,2) == 1):
|
| 74 |
amount = Decimal(randint(1,10)) / Decimal(10)
|
| 75 |
self.nodes[from_node].sendtoaddress(to_address, amount)
|
| 76 |
+
self.nodes[from_node].syncwithvalidationinterfacequeue()
|
| 77 |
|
| 78 |
def do_one_round(self):
|
| 79 |
a0 = self.nodes[0].getnewaddress()
|