aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_pruning.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-10-16 11:21:07 -0400
committerJohn Newbery <john@johnnewbery.com>2018-11-01 12:53:49 -0400
commit3fd7e76f6d4b4eae0b36d9b33376274f5387a6f3 (patch)
treee01790c1fba7dba4f6a3954f3d86f8bb3dbf7ce7 /test/functional/feature_pruning.py
parent08a57d51e90c232421681c9e6fe037ea4b3ed079 (diff)
downloadbitcoin-3fd7e76f6d4b4eae0b36d9b33376274f5387a6f3.tar.xz
[tests] Move deterministic address import to setup_nodes
This requires a small changes to a few tests, but means that deterministic addresses will always be imported (unless setup_nodes behaviour is explicitly overridden).
Diffstat (limited to 'test/functional/feature_pruning.py')
-rwxr-xr-xtest/functional/feature_pruning.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py
index 772151dc4b..c820ca33e2 100755
--- a/test/functional/feature_pruning.py
+++ b/test/functional/feature_pruning.py
@@ -63,6 +63,8 @@ class PruneTest(BitcoinTestFramework):
def setup_nodes(self):
self.add_nodes(self.num_nodes, self.extra_args)
self.start_nodes()
+ for n in self.nodes:
+ n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase', rescan=False)
def create_big_chain(self):
# Start by creating some coinbases we can spend later