@@ -100,6 +100,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request)
100
100
{RPCResult::Type::BOOL, " relaytxes" , " Whether peer has asked us to relay transactions to it" },
101
101
{RPCResult::Type::NUM_TIME, " lastsend" , " The " + UNIX_EPOCH_TIME + " of the last send" },
102
102
{RPCResult::Type::NUM_TIME, " lastrecv" , " The " + UNIX_EPOCH_TIME + " of the last receive" },
103
+ {RPCResult::Type::NUM_TIME, " last_transaction" , " The " + UNIX_EPOCH_TIME + " of the last valid transaction received from this peer" },
104
+ {RPCResult::Type::NUM_TIME, " last_block" , " The " + UNIX_EPOCH_TIME + " of the last block received from this peer" },
103
105
{RPCResult::Type::NUM, " bytessent" , " The total bytes sent" },
104
106
{RPCResult::Type::NUM, " bytesrecv" , " The total bytes received" },
105
107
{RPCResult::Type::NUM_TIME, " conntime" , " The " + UNIX_EPOCH_TIME + " of the connection" },
@@ -169,6 +171,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request)
169
171
obj.pushKV (" relaytxes" , stats.fRelayTxes );
170
172
obj.pushKV (" lastsend" , stats.nLastSend );
171
173
obj.pushKV (" lastrecv" , stats.nLastRecv );
174
+ obj.pushKV (" last_transaction" , stats.nLastTXTime );
175
+ obj.pushKV (" last_block" , stats.nLastBlockTime );
172
176
obj.pushKV (" bytessent" , stats.nSendBytes );
173
177
obj.pushKV (" bytesrecv" , stats.nRecvBytes );
174
178
obj.pushKV (" conntime" , stats.nTimeConnected );
0 commit comments