|
|
@ -6,10 +6,13 @@
|
|
|
|
from decimal import Decimal
|
|
|
|
from decimal import Decimal
|
|
|
|
|
|
|
|
|
|
|
|
from test_framework.test_framework import BitcoinTestFramework
|
|
|
|
from test_framework.test_framework import BitcoinTestFramework
|
|
|
|
from test_framework.util import (assert_array_result,
|
|
|
|
from test_framework.util import (
|
|
|
|
assert_equal,
|
|
|
|
assert_array_result,
|
|
|
|
assert_raises_rpc_error,
|
|
|
|
assert_equal,
|
|
|
|
)
|
|
|
|
assert_raises_rpc_error,
|
|
|
|
|
|
|
|
sync_blocks,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ReceivedByTest(BitcoinTestFramework):
|
|
|
|
class ReceivedByTest(BitcoinTestFramework):
|
|
|
|
def set_test_params(self):
|
|
|
|
def set_test_params(self):
|
|
|
@ -18,6 +21,7 @@ class ReceivedByTest(BitcoinTestFramework):
|
|
|
|
def run_test(self):
|
|
|
|
def run_test(self):
|
|
|
|
# Generate block to get out of IBD
|
|
|
|
# Generate block to get out of IBD
|
|
|
|
self.nodes[0].generate(1)
|
|
|
|
self.nodes[0].generate(1)
|
|
|
|
|
|
|
|
sync_blocks(self.nodes)
|
|
|
|
|
|
|
|
|
|
|
|
self.log.info("listreceivedbyaddress Test")
|
|
|
|
self.log.info("listreceivedbyaddress Test")
|
|
|
|
|
|
|
|
|
|
|
|