Closed elsirion closed 1 week ago
Bumping to 5-10 minutes sounds reasonable. Alternatively, would it make sense to switch to websockets? This may help fedimint-ln-client
in other areas we poll (recently highlighted in this discord thread).
Looking at it again, we already seem to use the wait_block_height
fn (in await_contract_timeout
), so what we actually need is some rate-limiting for re-trying on (connection) error. I think #4929 by @dpc already solved this, so a fix will be in 0.4.
dev call: @dpc should validate that https://github.com/fedimint/fedimint/pull/4929 fixed this.
Idk if there were multiple state machines running or if we sometimes have a tight loop and then wait 1s again, either way: when waiting for a block height we can probably just poll ever 5-10 minutes or so.