|
|
@ -10,9 +10,11 @@ from decimal import Decimal
|
|
|
|
import shutil
|
|
|
|
import shutil
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def descriptors(out):
|
|
|
|
def descriptors(out):
|
|
|
|
return sorted(u['desc'] for u in out['unspents'])
|
|
|
|
return sorted(u['desc'] for u in out['unspents'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ScantxoutsetTest(BitcoinTestFramework):
|
|
|
|
class ScantxoutsetTest(BitcoinTestFramework):
|
|
|
|
def set_test_params(self):
|
|
|
|
def set_test_params(self):
|
|
|
|
self.num_nodes = 1
|
|
|
|
self.num_nodes = 1
|
|
|
@ -52,7 +54,6 @@ class ScantxoutsetTest(BitcoinTestFramework):
|
|
|
|
self.nodes[0].sendtoaddress("mxp7w7j8S1Aq6L8StS2PqVvtt4HGxXEvdy", 8.192) # (m/1/1/1)
|
|
|
|
self.nodes[0].sendtoaddress("mxp7w7j8S1Aq6L8StS2PqVvtt4HGxXEvdy", 8.192) # (m/1/1/1)
|
|
|
|
self.nodes[0].sendtoaddress("mpQ8rokAhp1TAtJQR6F6TaUmjAWkAWYYBq", 16.384) # (m/1/1/1500)
|
|
|
|
self.nodes[0].sendtoaddress("mpQ8rokAhp1TAtJQR6F6TaUmjAWkAWYYBq", 16.384) # (m/1/1/1500)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.generate(self.nodes[0], 1)
|
|
|
|
self.generate(self.nodes[0], 1)
|
|
|
|
|
|
|
|
|
|
|
|
self.log.info("Stop node, remove wallet, mine again some blocks...")
|
|
|
|
self.log.info("Stop node, remove wallet, mine again some blocks...")
|
|
|
@ -127,5 +128,6 @@ class ScantxoutsetTest(BitcoinTestFramework):
|
|
|
|
# Check that second arg is needed for start
|
|
|
|
# Check that second arg is needed for start
|
|
|
|
assert_raises_rpc_error(-1, "scanobjects argument is required for the start action", self.nodes[0].scantxoutset, "start")
|
|
|
|
assert_raises_rpc_error(-1, "scanobjects argument is required for the start action", self.nodes[0].scantxoutset, "start")
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
ScantxoutsetTest().main()
|
|
|
|
ScantxoutsetTest().main()
|
|
|
|