Browse Source

Actually download in right order.

cl-refactor
Gav Wood 10 years ago
parent
commit
8415581ab2
  1. 2
      alethzero/MainWin.cpp
  2. 6
      libethereum/DownloadMan.h

2
alethzero/MainWin.cpp

@ -98,7 +98,7 @@ Main::Main(QWidget *parent) :
};
#if ETH_DEBUG
m_servers.append("localhost:30303");
m_servers.append("localhost:30300");
#endif
m_servers.append(QString::fromStdString(Host::pocHost() + ":30303"));

6
libethereum/DownloadMan.h

@ -91,8 +91,10 @@ public:
for (auto i: m_subs)
i->resetFetch();
}
m_chain = _chain;
m_chain.clear();
m_chain.reserve(_chain.size());
for (auto i = _chain.rbegin(); i != _chain.rend(); ++i)
m_chain.push_back(*i);
m_blocksGot = RangeMask<unsigned>(0, m_chain.size());
}

Loading…
Cancel
Save