mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
p2p: Make timeout mockable and type safe, speed up test
This commit is contained in:
@@ -211,8 +211,8 @@ static RPCHelpMan getpeerinfo()
|
||||
obj.pushKV("services", strprintf("%016x", stats.nServices));
|
||||
obj.pushKV("servicesnames", GetServicesNames(stats.nServices));
|
||||
obj.pushKV("relaytxes", stats.fRelayTxes);
|
||||
obj.pushKV("lastsend", stats.m_last_send);
|
||||
obj.pushKV("lastrecv", stats.m_last_recv);
|
||||
obj.pushKV("lastsend", count_seconds(stats.m_last_send));
|
||||
obj.pushKV("lastrecv", count_seconds(stats.m_last_recv));
|
||||
obj.pushKV("last_transaction", stats.nLastTXTime);
|
||||
obj.pushKV("last_block", stats.nLastBlockTime);
|
||||
obj.pushKV("bytessent", stats.nSendBytes);
|
||||
|
||||
Reference in New Issue
Block a user