aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2020-07-22 12:43:08 +0200
committerPatrick Lodder <[email protected]>2020-07-22 13:49:05 +0200
commitd0afe42ed28eb42df2079138ff5f3463a5ffc491 (patch)
treedfa2c03c1dbbb9a59ca73ec1e705a92734135777 /qa/rpc-tests/test_framework
parentrpc-tests: revert from litecoin_scrypt to ltc_scrypt (diff)
downloaddiscoin-d0afe42ed28eb42df2079138ff5f3463a5ffc491.tar.xz
discoin-d0afe42ed28eb42df2079138ff5f3463a5ffc491.zip
rpc-tests: fix auxpow calls to use .target instead of ._target
Tests weren't adapted to reflect RPC output
Diffstat (limited to 'qa/rpc-tests/test_framework')
-rw-r--r--qa/rpc-tests/test_framework/auxpow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/auxpow.py b/qa/rpc-tests/test_framework/auxpow.py
index 4f5ce20c0..d96516b83 100644
--- a/qa/rpc-tests/test_framework/auxpow.py
+++ b/qa/rpc-tests/test_framework/auxpow.py
@@ -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