Near-One/btc-light-client-contract

Relayer: Check that the block has not been sent before sending it

Closed this issue · 0 comments

Currently, the relayer sends every block. If there are multiple relayers, this will lead to unnecessary work and wasteful gas expenditure. You can use the get_height_by_blockhash method to check if it makes sense to send the block.