Skip to content

Commit 9cdddae

Browse files
committed
test: add rpc_signrawtransaction logging
1 parent 4d6cde3 commit 9cdddae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/rpc_signrawtransaction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def successful_signing_test(self):
2727
2828
1) The transaction has a complete set of signatures
2929
2) No script verification error occurred"""
30+
self.log.info("Test valid raw transaction with one input")
3031
privKeys = ['cUeKHd5orzT3mz8P9pxyREHfsWtVfgsfDjiZZBcjUBAaGk1BTj7N', 'cVKpPfVKSJxKqVpE9awvXNWuLHCa5j5tiE7K6zbUSptFpTEtiFrA']
3132

3233
inputs = [
@@ -49,7 +50,7 @@ def successful_signing_test(self):
4950
assert 'errors' not in rawTxSigned
5051

5152
def test_with_lock_outputs(self):
52-
"""Test correct error reporting when trying to sign a locked output"""
53+
self.log.info("Test correct error reporting when trying to sign a locked output")
5354
self.nodes[0].encryptwallet("password")
5455

5556
rawTx = '020000000156b958f78e3f24e0b2f4e4db1255426b0902027cb37e3ddadb52e37c3557dddb0000000000ffffffff01c0a6b929010000001600149a2ee8c77140a053f36018ac8124a6ececc1668a00000000'
@@ -65,6 +66,7 @@ def script_verification_error_test(self):
6566
4) Two script verification errors occurred
6667
5) Script verification errors have certain properties ("txid", "vout", "scriptSig", "sequence", "error")
6768
6) The verification errors refer to the invalid (vin 1) and missing input (vin 2)"""
69+
self.log.info("Test script verification errors")
6870
privKeys = ['cUeKHd5orzT3mz8P9pxyREHfsWtVfgsfDjiZZBcjUBAaGk1BTj7N']
6971

7072
inputs = [
@@ -147,7 +149,7 @@ def script_verification_error_test(self):
147149
assert not rawTxSigned['errors'][0]['witness']
148150

149151
def witness_script_test(self):
150-
# Now test signing transaction to P2SH-P2WSH addresses without wallet
152+
self.log.info("Test signing transaction to P2SH-P2WSH addresses without wallet")
151153
# Create a new P2SH-P2WSH 1-of-1 multisig address:
152154
embedded_address = self.nodes[1].getaddressinfo(self.nodes[1].getnewaddress())
153155
embedded_privkey = self.nodes[1].dumpprivkey(embedded_address["address"])

0 commit comments

Comments
 (0)