Browse Source

Remember last ping time.

cl-refactor
Gav Wood 11 years ago
parent
commit
692cb38006
  1. 1
      libp2p/Host.cpp
  2. 2
      libqethereum/QEthereum.cpp

1
libp2p/Host.cpp

@ -673,6 +673,7 @@ void Host::pingAll()
for (auto& i: m_peers)
if (auto j = i.second.lock())
j->ping();
m_lastPing = chrono::steady_clock::now();
}
bytes Host::saveNodes() const

2
libqethereum/QEthereum.cpp

@ -396,7 +396,7 @@ static QString toJson(dev::eth::Transaction const& _bi)
v["from"] = toQJS(_bi.sender());
v["gas"] = (int)_bi.gas;
v["gasPrice"] = toQJS(_bi.gasPrice);
v["nonce"] = toQJS(_bi.nonce);
v["nonce"] = (int)_bi.nonce;
v["value"] = toQJS(_bi.value);
return QString::fromUtf8(QJsonDocument(v).toJson());

Loading…
Cancel
Save