@@ -50,11 +50,14 @@ def run_test(self):
50
50
assert_raises_process_error (1 , "-getinfo takes no arguments" , self .nodes [0 ].cli ('-getinfo' ).help )
51
51
52
52
self .log .info ("Test -getinfo returns expected network and blockchain info" )
53
+ if self .is_wallet_compiled ():
54
+ self .nodes [0 ].encryptwallet (password )
53
55
cli_get_info = self .nodes [0 ].cli ('-getinfo' ).send_cli ()
54
56
network_info = self .nodes [0 ].getnetworkinfo ()
55
57
blockchain_info = self .nodes [0 ].getblockchaininfo ()
56
58
assert_equal (cli_get_info ['version' ], network_info ['version' ])
57
59
assert_equal (cli_get_info ['blocks' ], blockchain_info ['blocks' ])
60
+ assert_equal (cli_get_info ['headers' ], blockchain_info ['headers' ])
58
61
assert_equal (cli_get_info ['timeoffset' ], network_info ['timeoffset' ])
59
62
assert_equal (cli_get_info ['connections' ], network_info ['connections' ])
60
63
assert_equal (cli_get_info ['proxy' ], network_info ['networks' ][0 ]['proxy' ])
@@ -66,9 +69,9 @@ def run_test(self):
66
69
assert_equal (cli_get_info ['balance' ], BALANCE )
67
70
wallet_info = self .nodes [0 ].getwalletinfo ()
68
71
assert_equal (cli_get_info ['keypoolsize' ], wallet_info ['keypoolsize' ])
72
+ assert_equal (cli_get_info ['unlocked_until' ], wallet_info ['unlocked_until' ])
69
73
assert_equal (cli_get_info ['paytxfee' ], wallet_info ['paytxfee' ])
70
74
assert_equal (cli_get_info ['relayfee' ], network_info ['relayfee' ])
71
- # unlocked_until is not tested because the wallet is not encrypted
72
75
assert_equal (self .nodes [0 ].cli .getwalletinfo (), wallet_info )
73
76
else :
74
77
self .log .info ("*** Wallet not compiled; cli getwalletinfo and -getinfo wallet tests skipped" )
0 commit comments