Skip to content

Commit

Permalink
Skip init warnings in import-rescan.py and node_network_limited.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored and charlesrocket committed Jul 11, 2020
1 parent 58c00b5 commit 22ea166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/import-rescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def setup_network(self):
# txindex is enabled by default in Axe and needs to be disabled for import-rescan.py
extra_args[i] += ["-prune=1", "-txindex=0", "-reindex"]

self.add_nodes(self.num_nodes, extra_args)
self.add_nodes(self.num_nodes, extra_args, stderr=sys.stdout)
self.start_nodes()
for i in range(1, self.num_nodes):
connect_nodes(self.nodes[i], 0)
Expand Down
3 changes: 3 additions & 0 deletions test/functional/node_network_limited.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, disconnect_nodes, connect_nodes_bi, sync_blocks

import sys

class P2PIgnoreInv(P2PInterface):
firstAddrnServices = 0
def on_inv(self, message):
Expand All @@ -32,6 +34,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 3
self.stderr = sys.stdout
self.extra_args = [['-prune=550', '-txindex=0', '-addrmantest'], [], []]

def disconnect_all(self):
Expand Down

0 comments on commit 22ea166

Please sign in to comment.