Skip to content

Helper function to get best available nodes

Add new helper function to get the best available nodes.

Use bma.network.ws2p_heads request to get the pubkeys of the most updated nodes.

Return nodes grouped by blockstamp by descending order. So the first group is the best candidate (but you can check how many nodes follow this block to be sure).

For each node, we need the endpoints do connect to. This require a bma.network.peers request.

The signature of each document received must be checked.

Edited by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information