You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes: #255
We want to initiate the stake when we are sure the BTC funding
transaction is visible by Bitcoin node. The default implementation of
minting in tbtc-v2 throws an error when the deposit tx is unavailable.
In our SDK, we make sure the deposit transaction is available and then
initiate minting/staking. Here we add the back off mechanism - the SDK
retires the function that looks for a deposit transaction a `retries`
number of times. The result will return the function's return value if
no exceptions are thrown. In our case, we want to try to find the
deposit transaction 5 times with a 5 seconds backoff step that will be
increased exponentially for subsequent retry attempts. If it fails after
6 tries it will throw an error. The consumer (dapp) can override these
options by passing them to `stake` function.
No description provided.
The text was updated successfully, but these errors were encountered: