Skip to content

Commit

Permalink
Fix feature_remote_staking for Python 3.4
Browse files Browse the repository at this point in the history
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
  • Loading branch information
Nizametdinov committed Feb 14, 2019
1 parent 425e359 commit e10efd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/feature_remote_staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from test_framework.regtest_mnemonics import regtest_mnemonics
from test_framework.script import CScript, OP_2, hash160
from test_framework.test_framework import UnitETestFramework
from test_framework.util import assert_equal, assert_greater_than, hex_str_to_bytes, wait_until
from test_framework.util import assert_equal, assert_greater_than, bytes_to_hex_str, hex_str_to_bytes, wait_until


def stake_p2wsh(node, staking_node, amount):
Expand All @@ -26,7 +26,7 @@ def stake_p2wsh(node, staking_node, amount):
staking_key_hash = hash160(hex_str_to_bytes(addr_info['pubkey']))

rs_p2wsh = CScript([OP_2, staking_key_hash, spending_script_hash])
outputs = [{'address': 'script', 'amount': amount, 'script': rs_p2wsh.hex()}]
outputs = [{'address': 'script', 'amount': amount, 'script': bytes_to_hex_str(rs_p2wsh)}]
node.sendtypeto('unite', 'unite', outputs)


Expand Down

0 comments on commit e10efd9

Please sign in to comment.