Open Flouse opened 7 months ago
We do this now, and what we need to discuss here is whether to delay processing when the after field of the cell is small then BTC_JUMP_CONFIRMATION_BLOCKS
When the after
field of the cell is smaller then BTC_JUMP_CONFIRMATION_BLOCKS
and the related btc transaction confirmation is smaller then BTC_JUMP_CONFIRMATION_BLOCKS
, the unlocking btc-time-lock transaction will fail.
So, I think it should be delayed.
Context
https://github.com/ckb-cell/btc-assets-api/blob/1cf58ea3ac6e381d3f67c3b3be448d8c818a4c74/src/services/unlocker.ts#L76-L85
TL;DR
Q: Is it better to unlock jobs which
after < BTC_JUMP_CONFIRMATION_BLOCKS
A: Yes.Reason
In the BTCTimeLock contract,
MIN_BTC_TIME_LOCK_AFTER=6
. See also: