File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 25
25
assert_raises_rpc_error ,
26
26
p2p_port ,
27
27
)
28
+ from test_framework .wallet import MiniWallet
28
29
29
30
30
31
def assert_net_servicesnames (servicesflag , servicenames ):
@@ -48,6 +49,9 @@ def set_test_params(self):
48
49
self .supports_cli = False
49
50
50
51
def run_test (self ):
52
+ # We need miniwallet to make a transaction
53
+ self .wallet = MiniWallet (self .nodes [0 ])
54
+ self .wallet .generate (1 )
51
55
# Get out of IBD for the minfeefilter and getpeerinfo tests.
52
56
self .nodes [0 ].generate (101 )
53
57
@@ -74,8 +78,7 @@ def test_connection_count(self):
74
78
def test_getpeerinfo (self ):
75
79
self .log .info ("Test getpeerinfo" )
76
80
# Create a few getpeerinfo last_block/last_transaction values.
77
- if self .is_wallet_compiled ():
78
- self .nodes [0 ].sendtoaddress (self .nodes [1 ].getnewaddress (), 1 )
81
+ self .wallet .send_self_transfer (from_node = self .nodes [0 ]) # Make a transaction so we can see it in the getpeerinfo results
79
82
self .nodes [1 ].generate (1 )
80
83
self .sync_all ()
81
84
time_now = int (time .time ())
You can’t perform that action at this time.
0 commit comments