Consensus timing and avalanche.

Transaction position change.
Track transaction data for all disputed transactions.
Update our set as our 'vote' changes.
This commit is contained in:
JoelKatz
2012-05-28 01:31:35 -07:00
parent 51816f1e56
commit 7e8ebcc3d9
4 changed files with 80 additions and 13 deletions

View File

@@ -368,7 +368,8 @@ int NetworkOPs::beginConsensus(Ledger::pointer closingLedger, bool isEarly)
// Create a consensus object to get consensus on this ledger
if (!!mConsensus) mConsensus->abort();
mConsensus = boost::make_shared<LedgerConsensus>(prevLedger);
mConsensus = boost::make_shared<LedgerConsensus>(prevLedger,
theApp->getMasterLedger().getCurrentLedger()->getCloseTimeNC());
mConsensus->closeTime(closingLedger); // FIXME: Create consensus a few seconds before close time
#ifdef DEBUG