Correctly sequence to acquiring a new LCL if it changes. Don't keep acquiring the old one.

This commit is contained in:
JoelKatz
2012-07-12 23:07:55 -07:00
parent 02decebe08
commit 338fa90387
4 changed files with 21 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
#include "NicknameState.h"
#include "RippleState.h"
#include "SerializedValidation.h"
#include "LedgerAcquire.h"
#include <boost/interprocess/sync/interprocess_upgradable_mutex.hpp>
#include <boost/interprocess/sync/sharable_lock.hpp>
@@ -51,6 +52,7 @@ protected:
boost::shared_ptr<LedgerConsensus> mConsensus;
LedgerMaster* mLedgerMaster;
LedgerAcquire::pointer mAcquiringLedger;
void setMode(OperatingMode);