I think this is the underlying issue. In some cases where the tx return value wasn't

full success, we applied to our open ledger but didn't relay. This caused disputes
resolved only by dispute relaying.
This commit is contained in:
JoelKatz
2013-02-24 16:48:54 -08:00
parent d301cc6128
commit 167d13cf40
3 changed files with 9 additions and 17 deletions

View File

@@ -119,9 +119,8 @@ Ledger::pointer LedgerMaster::closeLedger(bool recover)
return closingLedger;
}
TER LedgerMaster::doTransaction(const SerializedTransaction& txn, TransactionEngineParams params)
TER LedgerMaster::doTransaction(const SerializedTransaction& txn, TransactionEngineParams params, bool& didApply)
{
bool didApply;
TER result = mEngine.applyTransaction(txn, params, didApply);
// CHECKME: Should we call this even on gross failures?
theApp->getOPs().pubProposedTransaction(mEngine.getLedger(), txn, result);