Browse Source

Avoid redownloading chain for non-breaking changes.

cl-refactor
Gav Wood 10 years ago
parent
commit
850c21eb3a
  1. 3
      libethereum/Client.cpp

3
libethereum/Client.cpp

@ -44,10 +44,11 @@ VersionChecker::VersionChecker(string const& _dbPath):
try try
{ {
auto protocolVersion = (unsigned)status[0]; auto protocolVersion = (unsigned)status[0];
(void)protocolVersion;
auto minorProtocolVersion = (unsigned)status[1]; auto minorProtocolVersion = (unsigned)status[1];
auto databaseVersion = (unsigned)status[2]; auto databaseVersion = (unsigned)status[2];
m_action = m_action =
protocolVersion != eth::c_protocolVersion || databaseVersion != c_databaseVersion ? databaseVersion != c_databaseVersion ?
WithExisting::Kill WithExisting::Kill
: minorProtocolVersion != eth::c_minorProtocolVersion ? : minorProtocolVersion != eth::c_minorProtocolVersion ?
WithExisting::Verify WithExisting::Verify

Loading…
Cancel
Save