Refactor from path 145/245 to path 1899 with migration support
Summary: Implement the new path 1899 for SLPA-aware BCHA wallets
Test Plan:
Do not test this diff with high value wallets
- Run cashtab locally on the existing master.
git clone git@github.com:Bitcoin-ABC/bitcoin-abc.git cd bitcoin-abc/web/cashtab npm i --legacy-peer-deps npm start
- If you have real money wallets at the localhost:3000/ instance of Cashtab,
back them up and delete them.
- Create 2-5 new wallets
- Send some BCHA and SLPA to these wallets
- Stop this instance of Cashtab
- Now, run Cashtab from this diff
arc patch D---- cd web/cashtab/ npm start
- Observe that BCHA and SLPA balances from legacy wallets exist and are displayed
- Observe that BCHA/SLPA receiving addresses are now different
- Send some test BCHA and SLPA transactions
- Observe that change goes to the new Path1899 addresses
Reviewers: alcipir, majcosta, #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Subscribers: deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D8765