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:
JoelKatz
2015-03-26 17:25:41 -07:00
committed by Tom Ritchford
parent b27e152ead
commit b4058a813b
5 changed files with 31 additions and 10 deletions

View File

@@ -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