Use MTP for importmulti "now" timestamps

This commit is contained in:
Russell Yanofsky
2017-02-07 11:08:08 -05:00
parent 3cf991756c
commit 266a8114cb
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ class ImportMultiTest (BitcoinTestFramework):
# Address + Private key + !watchonly
print("Should import an address with private key")
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([{
"scriptPubKey": {
"address": address['address']