aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/net.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-10-22 11:06:23 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-11-17 08:45:17 +0100
commitfa6d5a238d2c94440105ddd4f1554f85659d6c5b (patch)
treec5e9a51f35af0982da10779ff5ed8e265ab5ac3c /src/rpc/net.cpp
parent398fd63356db9023665396c371d67a8c76edeb4d (diff)
downloadbitcoin-fa6d5a238d2c94440105ddd4f1554f85659d6c5b.tar.xz
scripted-diff: Rename m_last_send and m_last_recv
-BEGIN VERIFY SCRIPT- ren() { sed -i "s/\<$1\>/$2/g" $(git grep -l "$1" ./src) ; } ren nLastSend m_last_send ren nLastRecv m_last_recv -END VERIFY SCRIPT-
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r--src/rpc/net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index e33f1ce4a3..f0082fe60a 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -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.nLastSend);
- obj.pushKV("lastrecv", stats.nLastRecv);
+ obj.pushKV("lastsend", stats.m_last_send);
+ obj.pushKV("lastrecv", stats.m_last_recv);
obj.pushKV("last_transaction", stats.nLastTXTime);
obj.pushKV("last_block", stats.nLastBlockTime);
obj.pushKV("bytessent", stats.nSendBytes);