Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hotfix to keep the Ripple server from having to reprocess ledgers it built locally as a result of its consensus engine. This fix applies to all pre-releases of 0.12, all releases of 0.12, all release candidates of 0.13, and the current develop branch. (Alternatively, you just use JoelKatz/stable-wip, though that branch is not always stable.)
- This change seems obviously harmless and seems to obviously correct a bug, but it has not been extensively tested for stability. It should be applied by hand, adding one line to LegerConsensus::accept. Your LedgerConsensus.cpp file may be in a different directory depending on the version of the code you have.
- diff --git a/src/ripple_app/consensus/LedgerConsensus.cpp b/src/ripple_app/consensus/LedgerConsensus.cpp
- index 9f3b760..11437b4 100644
- --- a/src/ripple_app/consensus/LedgerConsensus.cpp
- +++ b/src/ripple_app/consensus/LedgerConsensus.cpp
- @@ -1268,6 +1268,7 @@ void LedgerConsensus::accept (SHAMap::ref set, LoadEvent::pointer)
- newLCL->setAccepted (closeTime, mCloseResolution, closeTimeCorrect);
- newLCL->updateHash ();
- newLCL->setImmutable ();
- + getApp().getLedgerMaster().storeLedger(newLCL);
- WriteLog (lsDEBUG, LedgerConsensus) << "Report: NewL = " << newLCL->getHash () << ":" << newLCL->getLedgerSeq ();
- uint256 newLCLHash = newLCL->getHash ();
Advertisement
Add Comment
Please, Sign In to add comment