Browse Source
master638200d346feat(rpc): add block height to session response (theborakompanioni) Pull request description: Adds the current block height to the `/session` response. This can be useful for api clients to display a more sophisticated message on how long to wait for a given UTXO when it has less than 5 confirmations (for [sourcing commitments](https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/SOURCING-COMMITMENTS.md#wait-for-at-least-5-confirmations)). `/session` is usually polled, so when the block height changes, additional information can be reloaded (instead of polling the `/wallet/{walletname}/utxos` endpoint). The value is only included for authenticated requests when a wallet is loaded. Additionally, block height changes could be pushed via websocket. However, this is not included in this PR. ACKs for top commit: kristapsk: utACK638200d346Tree-SHA512: f5275a469a69678709cd88683463da155f9319dbc8cd64d159a942bcdb644f6e6f41b3f47a5bcd48eba66f17d27cd9fbf3126378aa3135ed5f9bc6fdeb5e7215
2 changed files with 7 additions and 0 deletions
Loading…
Reference in new issue