Regarding:
https://github.com/omgnetwork/omg-js/blob/master/packages/omg-js-util/src/waitForChildchainBalance.js
After playing with this in my integration I've concluded that there are a lot of problems with this, but I will bring forth a couple:
- If the recipient address automatically combines UTXO's it might timeout
- If the recipient address receives another deposit, withdraw, anything really, during the waiting period the function will timeout.
Suggested fixes:
- Allow for polling of pending transactions.
- Improve upon this strategy to handle failure cases by checking for other recent transactions, and reacting accordingly.
Regarding:
https://github.com/omgnetwork/omg-js/blob/master/packages/omg-js-util/src/waitForChildchainBalance.js
After playing with this in my integration I've concluded that there are a lot of problems with this, but I will bring forth a couple:
Suggested fixes: