mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Small changes to improve transaction benchmarking:
* Set transaction valid in hash router correctly * Properly account for root nodes in walkLedger * If loaded ledger is insane, log details * Extra logging while loading replay ledger * Don't test unsigned transactions expecting them to succeed * Don't be too noisy about signature failures
This commit is contained in:
@@ -1238,10 +1238,12 @@ bool ApplicationImp::loadOldLedger (
|
||||
// this ledger holds the transactions we want to replay
|
||||
replayLedger = loadLedger;
|
||||
|
||||
// this is the prior ledger
|
||||
m_journal.info << "Loading parent ledger";
|
||||
|
||||
loadLedger = Ledger::loadByHash (replayLedger->getParentHash ());
|
||||
if (!loadLedger)
|
||||
{
|
||||
m_journal.info << "Loading parent ledger from node store";
|
||||
|
||||
// Try to build the ledger from the back end
|
||||
auto il = std::make_shared <InboundLedger> (
|
||||
@@ -1310,6 +1312,7 @@ bool ApplicationImp::loadOldLedger (
|
||||
txn->getSTransaction()->add(s);
|
||||
if (!cur->addTransaction(it->getTag(), s))
|
||||
m_journal.warning << "Unable to add transaction " << it->getTag();
|
||||
getApp().getHashRouter().setFlag (it->getTag(), SF_SIGGOOD);
|
||||
}
|
||||
|
||||
// Switch to the mutable snapshot
|
||||
|
||||
Reference in New Issue
Block a user