Skip to content

Commit d484279

Browse files
committed
test: add logging to wallet_listsinceblock.py
1 parent 5518eee commit d484279

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/functional/wallet_listsinceblock.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) 2017-2019 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5-
"""Test the listsincelast RPC."""
5+
"""Test the listsinceblock RPC."""
66

77
from test_framework.test_framework import BitcoinTestFramework
88
from test_framework.messages import BIP125_SEQUENCE_NUMBER
@@ -38,6 +38,7 @@ def run_test(self):
3838
self.double_spends_filtered()
3939

4040
def test_no_blockhash(self):
41+
self.log.info("Test no blockhash")
4142
txid = self.nodes[2].sendtoaddress(self.nodes[0].getnewaddress(), 1)
4243
blockhash, = self.nodes[2].generate(1)
4344
blockheight = self.nodes[2].getblockheader(blockhash)['height']
@@ -63,6 +64,7 @@ def test_no_blockhash(self):
6364
"transactions": txs})
6465

6566
def test_invalid_blockhash(self):
67+
self.log.info("Test invalid blockhash")
6668
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock,
6769
"42759cde25462784395a337460bde75f58e73d3f08bd31fdc3507cbac856a2c4")
6870
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].listsinceblock,
@@ -100,6 +102,7 @@ def test_reorg(self):
100102
101103
This test only checks that [tx0] is present.
102104
'''
105+
self.log.info("Test reorg")
103106

104107
# Split network into two
105108
self.split_network()
@@ -110,7 +113,7 @@ def test_reorg(self):
110113
# generate on both sides
111114
lastblockhash = self.nodes[1].generate(6)[5]
112115
self.nodes[2].generate(7)
113-
self.log.info('lastblockhash=%s' % (lastblockhash))
116+
self.log.debug('lastblockhash={}'.format(lastblockhash))
114117

115118
self.sync_all(self.nodes[:2])
116119
self.sync_all(self.nodes[2:])
@@ -155,6 +158,7 @@ def test_double_spend(self):
155158
until the fork point, and to include all transactions that relate to the
156159
node wallet.
157160
'''
161+
self.log.info("Test double spend")
158162

159163
self.sync_all()
160164

@@ -234,6 +238,7 @@ def test_double_send(self):
234238
3. It is listed with a confirmation count of 2 (bb3, bb4), not
235239
3 (aa1, aa2, aa3).
236240
'''
241+
self.log.info("Test double send")
237242

238243
self.sync_all()
239244

@@ -302,6 +307,7 @@ def double_spends_filtered(self):
302307
`listsinceblock` was returning conflicted transactions even if they
303308
occurred before the specified cutoff blockhash
304309
'''
310+
self.log.info("Test spends filtered")
305311
spending_node = self.nodes[2]
306312
dest_address = spending_node.getnewaddress()
307313

0 commit comments

Comments
 (0)