Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Add transaction size tests. No problem identified. #25

Merged
merged 3 commits into from
Dec 17, 2021

Conversation

MatthewLM
Copy link
Collaborator

According to the issue identified in Vesta-wallet/bitcoin_flutter#2, I examined the library for inconsistent transaction size.

I tested the size reported for two transactions that used incorrect fees from the flutter app and found that the sizes were reported correctly by this library. I also tested the size of a transaction created using TransactionBuilder and found that the size is correct.

I ran the tests over a 100 times each and the size was always reported correctly.

I suspect the incorrect fee may not be caused by an incorrect size value but due to a problem with the flutter app . The app uses a two-pass system. One pass is to determine the fee and a second pass completes the transaction. The size may be different during the second pass.

@willyfromtheblock willyfromtheblock merged commit bd00c10 into main Dec 17, 2021
@willyfromtheblock willyfromtheblock deleted the investigate-vsize branch December 17, 2021 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants