diff options
| author | Russell Yanofsky <[email protected]> | 2017-02-07 11:08:08 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2017-02-10 15:40:28 -0500 |
| commit | 266a8114cbe2a87a6c84d7690a7716a18d782c56 (patch) | |
| tree | 772a6f3de292c0c246d151ab23babce021f21748 /src | |
| parent | Add test to check new importmulti "now" value (diff) | |
| download | discoin-266a8114cbe2a87a6c84d7690a7716a18d782c56.tar.xz discoin-266a8114cbe2a87a6c84d7690a7716a18d782c56.zip | |
Use MTP for importmulti "now" timestamps
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 4674c95bf..9310a320c 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -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); } |