bitcoin-green / bitg-webwallet

Web wallet for Bitcoin Green
MIT License
0 stars 7 forks source link

completed issue24 compte tx utxos #36

Closed kdbusiness121 closed 5 years ago

kdbusiness121 commented 5 years ago

I have done issue #24

  1. Check if the amount is less than the total balance. If amount is greater, stop process and show user error ("Insufficient Funds").
  2. Set transactionUtxos = [], transactionUtxoValue = 0, transactionValue = amount user is trying to send.
  3. Add top UTXO to transactionUtxos. Add value of transactionUtxoValue = utxo.value.
  4. Check if transactionUtxoValue >= value of transaction. If yes, proceed. Otherwise, repeat step 3 with next of utxos list.
netlify[bot] commented 5 years ago

PR deployed to netlify for review.

Built with commit d8f34d61448eebda0d31fe613bb406a7ffc24064

https://deploy-preview-36--hungry-hermann-89b966.netlify.com