rpc-tests: fix auxpow calls to use .target instead of ._target

Tests weren't adapted to reflect RPC output
This commit is contained in:
Patrick Lodder 2020-07-22 12:43:08 +02:00
parent e896e90e6e
commit d0afe42ed2
No known key found for this signature in database
GPG key ID: 2D3A345B98D0DC1F

View file

@ -63,7 +63,7 @@ def mineAuxpowBlock (node):
"""
auxblock = node.getauxblock ()
target = reverseHex (auxblock['_target'])
target = reverseHex (auxblock['target'])
apow = computeAuxpow (auxblock['hash'], target, True)
res = node.getauxblock (auxblock['hash'], apow)
assert res