Browse Source
Check chainValueZat when checking value pool monitoring
pull/4/head
Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with
2 additions and
0 deletions
-
qa/rpc-tests/wallet_protectcoinbase.py
|
|
@ -6,6 +6,7 @@ |
|
|
|
|
|
|
|
from test_framework.test_framework import BitcoinTestFramework |
|
|
|
from test_framework.authproxy import JSONRPCException |
|
|
|
from test_framework.mininode import COIN |
|
|
|
from test_framework.util import assert_equal, initialize_chain_clean, \ |
|
|
|
start_nodes, connect_nodes_bi, stop_node, wait_and_assert_operationid_status |
|
|
|
|
|
|
@ -22,6 +23,7 @@ def check_value_pool(node, name, total): |
|
|
|
found = True |
|
|
|
assert_equal(pool['monitored'], True) |
|
|
|
assert_equal(pool['chainValue'], total) |
|
|
|
assert_equal(pool['chainValueZat'], total * COIN) |
|
|
|
assert(found) |
|
|
|
|
|
|
|
class WalletProtectCoinbaseTest (BitcoinTestFramework): |
|
|
|