Skip to content

Commit

Permalink
#21 removed recovering flag
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Nov 20, 2018
1 parent b02df31 commit 19cc06b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ namespace beam
, m_synchronized{false}
, m_holdNodeConnection{ holdNodeConnection }
, m_needRecover{false}
, m_recovering{false}
{
assert(keyChain);
ZeroObject(m_newState);
Expand Down Expand Up @@ -509,12 +508,6 @@ namespace beam

bool Wallet::handle_node_message(proto::NewTip&& msg)
{
if (m_recovering)
{
// ignore when recover is in progress
return true;
}

m_pending_reg_requests.clear();

Block::SystemState::ID newID;
Expand Down Expand Up @@ -705,7 +698,6 @@ namespace beam
if (m_needRecover)
{
m_needRecover = false;
m_recovering = true;
m_network->send_node_message(proto::Recover{ true, true });
return;
}
Expand Down Expand Up @@ -793,7 +785,6 @@ namespace beam
m_keyChain->setSystemStateID(m_knownStateID);
LOG_INFO() << "Current state is " << m_knownStateID;
m_synchronized = true;
m_recovering = false;
m_syncDone = m_syncTotal = 0;
notifySyncProgress();
if (!m_pendingEvents.empty())
Expand Down
1 change: 0 additions & 1 deletion wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ namespace beam
bool m_synchronized;
bool m_holdNodeConnection;
bool m_needRecover;
bool m_recovering;

std::vector<IWalletObserver*> m_subscribers;
};
Expand Down

0 comments on commit 19cc06b

Please sign in to comment.