This PR fixes a bug where invalid STX transactions (valid BTC transaction but rejected by Stacks core node) shows up as a valid STX transaction in the wallet transaction history. This only occurs when the account has no prior transaction history.
Type of Change
[ ] New feature
[x] Bug fix
[ ] API reference/documentation update
[ ] Other
Does this introduce a breaking change?
No
Are documentation updates required?
No
Testing information
Checklist
[x] Code is commented where needed
[x] Unit test coverage for new or modified code paths
This PR fixes a bug where invalid STX transactions (valid BTC transaction but rejected by Stacks core node) shows up as a valid STX transaction in the wallet transaction history. This only occurs when the account has no prior transaction history.
Type of Change
Does this introduce a breaking change?
No
Are documentation updates required?
No
Testing information
Checklist
npm run test
passes