@@ -93,7 +93,7 @@ static RPCHelpMan getpeerinfo()
93
93
{
94
94
return RPCHelpMan{
95
95
" getpeerinfo" ,
96
- " \n Returns data about each connected network node as a json array of objects.\n " ,
96
+ " Returns data about each connected network peer as a json array of objects." ,
97
97
{},
98
98
RPCResult{
99
99
RPCResult::Type::ARR, " " , " " ,
@@ -113,7 +113,7 @@ static RPCHelpMan getpeerinfo()
113
113
{
114
114
{RPCResult::Type::STR, " SERVICE_NAME" , " the service name if it is recognised" }
115
115
}},
116
- {RPCResult::Type::BOOL, " relaytxes" , " Whether peer has asked us to relay transactions to it" },
116
+ {RPCResult::Type::BOOL, " relaytxes" , /* optional= */ true , " Whether peer has asked us to relay transactions to it" },
117
117
{RPCResult::Type::NUM_TIME, " lastsend" , " The " + UNIX_EPOCH_TIME + " of the last send" },
118
118
{RPCResult::Type::NUM_TIME, " lastrecv" , " The " + UNIX_EPOCH_TIME + " of the last receive" },
119
119
{RPCResult::Type::NUM_TIME, " last_transaction" , " The " + UNIX_EPOCH_TIME + " of the last valid transaction received from this peer" },
@@ -144,7 +144,7 @@ static RPCHelpMan getpeerinfo()
144
144
{
145
145
{RPCResult::Type::STR, " permission_type" , Join (NET_PERMISSIONS_DOC, " ,\n " ) + " .\n " },
146
146
}},
147
- {RPCResult::Type::NUM, " minfeefilter" , " The minimum fee rate for transactions this peer accepts" },
147
+ {RPCResult::Type::NUM, " minfeefilter" , /* optional= */ true , " The minimum fee rate for transactions this peer accepts" },
148
148
{RPCResult::Type::OBJ_DYN, " bytessent_per_msg" , " " ,
149
149
{
150
150
{RPCResult::Type::NUM, " msg" , " The total bytes sent aggregated by message type\n "
0 commit comments