|
|
@ -139,7 +139,7 @@ class ImportMultiTest (BitcoinTestFramework):
|
|
|
|
# Address + Private key + !watchonly
|
|
|
|
# Address + Private key + !watchonly
|
|
|
|
print("Should import an address with private key")
|
|
|
|
print("Should import an address with private key")
|
|
|
|
address = self.nodes[0].validateaddress(self.nodes[0].getnewaddress())
|
|
|
|
address = self.nodes[0].validateaddress(self.nodes[0].getnewaddress())
|
|
|
|
timestamp = self.nodes[1].getblock(self.nodes[1].getbestblockhash())['time']
|
|
|
|
timestamp = self.nodes[1].getblock(self.nodes[1].getbestblockhash())['mediantime']
|
|
|
|
result = self.nodes[1].importmulti([{
|
|
|
|
result = self.nodes[1].importmulti([{
|
|
|
|
"scriptPubKey": {
|
|
|
|
"scriptPubKey": {
|
|
|
|
"address": address['address']
|
|
|
|
"address": address['address']
|
|
|
|