Implement the getpeerinfo RPC #5723
Labels
A-concurrency
Area: Async code, needs extra work to make it work properly.
A-network
Area: Network protocol updates or fixes
A-rpc
Area: Remote Procedure Call interfaces
C-enhancement
Category: This is an improvement
Motivation
Some mining pools use the getpeerinfo RPC to make sure the mining pool is still connected to peers.
Specifications
https://zcash.github.io/rpc/getpeerinfo.html
Designs
zebra-network
address book to the RPC serveraddress_book.recently_live_peers()
to get the peers that were recently connectedMetaAddr
s into a list of peerinfo recordsWe just need to provide the
addr
field for now, we can add more fields if mining pools ask for them.The text was updated successfully, but these errors were encountered: