Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 5,661 Lines • ▼ Show 20 Lines | try { | ||||
Amount::zero() /* nAbsurdFee */, false /* test_accept */); | Amount::zero() /* nAbsurdFee */, false /* test_accept */); | ||||
if (state.IsValid()) { | if (state.IsValid()) { | ||||
++count; | ++count; | ||||
} else { | } else { | ||||
// mempool may contain the transaction already, e.g. from | // mempool may contain the transaction already, e.g. from | ||||
// wallet(s) having loaded it while we were processing | // wallet(s) having loaded it while we were processing | ||||
// mempool transactions; consider these as valid, instead of | // mempool transactions; consider these as valid, instead of | ||||
// failed, but mark them as 'already there' | // failed, but mark them as 'already there' | ||||
if (pool.exists(tx->GetHash())) { | if (pool.exists(tx->GetId())) { | ||||
++already_there; | ++already_there; | ||||
} else { | } else { | ||||
++failed; | ++failed; | ||||
} | } | ||||
} | } | ||||
} else { | } else { | ||||
++expired; | ++expired; | ||||
} | } | ||||
if (ShutdownRequested()) { | if (ShutdownRequested()) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
std::map<uint256, Amount> mapDeltas; | std::map<TxId, Amount> mapDeltas; | ||||
file >> mapDeltas; | file >> mapDeltas; | ||||
for (const auto &i : mapDeltas) { | for (const auto &i : mapDeltas) { | ||||
pool.PrioritiseTransaction(i.first, prioritydummy, i.second); | pool.PrioritiseTransaction(i.first, prioritydummy, i.second); | ||||
} | } | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
LogPrintf("Failed to deserialize mempool data on disk: %s. Continuing " | LogPrintf("Failed to deserialize mempool data on disk: %s. Continuing " | ||||
"anyway.\n", | "anyway.\n", | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |