Previous dust limit set from rest.bitcoin.com limits. The smallest bcha tx that bch-api will broadcast is 546 satoshis. This diff matches the front end validation to the backend limit.
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project
npm start, fill out Amount form on send screen with 0.00000546, observe no error, try 0.00000545, observe validation error, attempt to broadcast a tx of 0.00000546 and observe it successfully broadcasts, or see this example tx: https://explorer.bitcoinabc.org/tx/ff5fe4c631a5dd3e3b1cc74cb12b9eebf04d177c206eaadb8d949cc4fbb6a092
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cashtab-dust-to-min
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 14913 Build 29778: Build Diff cashtab-tests Build 29777: arc lint + arc unit
Event Timeline
Add unit test for dust limit, add catch for dust to sendBCH function as dust error comes from server, implement BigNumber for dust constant
This diff is actually doing several things at a time. Splitting it into pieces and stack them will make the review easier and will help getting this landed faster.
web/cashtab/src/hooks/__tests__/useBCH.test.js | ||
---|---|---|
162 ↗ | (On Diff #27205) | The next time this value change, the test will fail, but the validation form under test will be correct. |