1
0

tests: sweeping p2pk

This commit is contained in:
SomberNight
2018-06-18 20:06:17 +02:00
parent 73a3d473cc
commit 170f41f50d
2 changed files with 25 additions and 1 deletions

View File

@@ -1137,6 +1137,7 @@ class Transaction:
if type == TYPE_ADDRESS:
addr = x
elif type == TYPE_PUBKEY:
# TODO do we really want this conversion? it's not really that address after all
addr = bitcoin.public_key_to_p2pkh(bfh(x))
else:
addr = 'SCRIPT ' + x