keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

tBTC Minting error in step 4/5: several BTC LOST! #330

Closed Eastban120 closed 4 years ago

Eastban120 commented 4 years ago

Description:

Several times tried to mint tBTC and got stuck at step 4/5 after having sent BTC to the newly generated address. Lost 3 BTC on the way (see screenshots).

Steps to reproduce the behavior:

Following steps for minting tBTC using dapp (https://dapp.test.tbtc.network/deposit).

Expected behavior:

Successfully minting and receiving tBTC.

Environment details:

OS: macOS Catalina, version 10.15.3. 64 bit OS
Web Browser: Google Chrome, Version Versión 84.0.4147.105 (Build oficial) (64 bits) Wallet: Metamask (Chrome extension), Version 8.0.5

Screenshots

Screenshots to help explain your problem and any console log files:

Captura de Pantalla 2020-08-02 a la(s) 20 59 52 Captura de Pantalla 2020-08-02 a la(s) 21 00 19 Captura de Pantalla 2020-08-02 a la(s) 21 01 46 Captura de Pantalla 2020-08-02 a la(s) 21 04 51

02AGO2020ek tbtc-dapp-console-log-1596412825335.txt

no tBTC minted : image

Shadowfiend commented 4 years ago

Yeah, not at current or previous difficulty is a frustratingly common issue on Bitcoin testnet due to how difficulty fluctuates on the testnet. Unfortunately it's not something we have strong control over, so I'm going to close this issue.

To give a little more color, on mainnet, difficulty changes at a very set pace (every ~2 weeks), so for a new transaction to not be at the current or previous difficulty known to the Ethereum chain, it has to be at least 2 weeks old. On testnet, however, when there is no activity for a while, the difficulty drops to 0. This means there can be fluctuation a lot more frequently than every 2 weeks---at times, it can happen many times in a day---which leads to this issue.

As I said, I'm going to close this issue because of the above, but I have been pondering how we might deal with this issue on testnet in general. Nothing to share yet, but if and when I have a good idea I'll be posting an issue for it.