ADD: Endpoint to calculate churns
At present, different UIs such as https://thorchain.network and https://thorchain.live have to calculate their own churn in/out node set. Essentially, an approximation of what THORChain would do at the next churn. This requires them to continually update their code whenever we make changes to the churn logic.
This proposal is to add:
Endpoint: localhost:1317/thorchain/churn
Returns:
{
"next_churn_height": int,
"nodes_in": [
str(node_address)
],
"nodes_out": [
str(node_address),
]
}
...calculated as of the block request at height
parameter.