mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 2364d17a31 into merged_master (Bitcoin PR bitcoin/bitcoin#25480)
This commit is contained in:
commit
438cb545b7
7 changed files with 12 additions and 20 deletions
|
|
@ -206,13 +206,13 @@ static RPCHelpMan getpeerinfo()
|
|||
obj.pushKV("conntime", count_seconds(stats.m_connected));
|
||||
obj.pushKV("timeoffset", stats.nTimeOffset);
|
||||
if (stats.m_last_ping_time > 0us) {
|
||||
obj.pushKV("pingtime", CountSecondsDouble(stats.m_last_ping_time));
|
||||
obj.pushKV("pingtime", Ticks<SecondsDouble>(stats.m_last_ping_time));
|
||||
}
|
||||
if (stats.m_min_ping_time < std::chrono::microseconds::max()) {
|
||||
obj.pushKV("minping", CountSecondsDouble(stats.m_min_ping_time));
|
||||
obj.pushKV("minping", Ticks<SecondsDouble>(stats.m_min_ping_time));
|
||||
}
|
||||
if (fStateStats && statestats.m_ping_wait > 0s) {
|
||||
obj.pushKV("pingwait", CountSecondsDouble(statestats.m_ping_wait));
|
||||
obj.pushKV("pingwait", Ticks<SecondsDouble>(statestats.m_ping_wait));
|
||||
}
|
||||
obj.pushKV("version", stats.nVersion);
|
||||
// Use the sanitized form of subver here, to avoid tricksy remote peers from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue