Merge #9760: [wallet] Remove importmulti always-true check

ec1267f [wallet] Remove importmulti always-true check (Russell Yanofsky)
This commit is contained in:
Wladimir J. van der Laan 2017-02-20 17:29:58 +01:00 committed by Alexander Block
parent 3ab5fab7fb
commit 199b07a892

View File

@ -1278,7 +1278,7 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
} }
} }
if (fRescan && fRunScan && requests.size() && nLowestTimestamp <= chainActive.Tip()->GetBlockTimeMax()) { if (fRescan && fRunScan && requests.size()) {
CBlockIndex* pindex = nLowestTimestamp > minimumTimestamp ? chainActive.FindEarliestAtLeast(nLowestTimestamp) : chainActive.Genesis(); CBlockIndex* pindex = nLowestTimestamp > minimumTimestamp ? chainActive.FindEarliestAtLeast(nLowestTimestamp) : chainActive.Genesis();
if (pindex) { if (pindex) {