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

@@ -1034,7 +1034,7 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
EnsureWalletIsUnlocked();
// Verify all timestamps are present before importing any keys.
const int64_t now = chainActive.Tip() ? chainActive.Tip()->GetBlockTime() : 0;
const int64_t now = chainActive.Tip() ? chainActive.Tip()->GetMedianTimePast() : 0;
for (const UniValue& data : requests.getValues()) {
GetImportTimestamp(data, now);
}