Closed ordishs closed 1 year ago
Base: 83.86% // Head: 83.70% // Decreases project coverage by -0.16%
:warning:
Coverage data is based on head (
548edc8
) compared to base (34e82d8
). Patch coverage: 75.51% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thanks for this Simon, will get at a look it. A quick Google has failed me though, where can I find info on BIP-239
Hi Mark
You're a bit too quick!
We haven't finished writing the BIP yet because we wanted to include references to go-bt and another JavaScript library along with code examples. The go-bt work is done (as you know) and the JS was finished 1 hour ago. Now, we need to complete the BIP.
Regards
Simon
On 11 Nov 2022, at 17:00, Mark Smith @.***> wrote:
Thanks for this Simon, will get at a look it. A quick Google has failed me though, where can I find info on BIP-239
— Reply to this email directly, view it on GitHubhttps://github.com/libsv/go-bt/pull/130#issuecomment-1311948602, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAAROAVESXQPS6YZLGJUDRTWHZ3TDANCNFSM6AAAAAAR4XVKOE. You are receiving this because you were assigned.Message ID: @.***>
I see, that explains why I can't find it, hard to review the PR in that case :)
One thing, is it likely that will be other Tx formats / extensions such as this, if so we should probably think of a nice way of handling those additions other than adding additional boolean flags to the various methods like this https://github.com/libsv/go-bt/pull/130/files#diff-8ef97170810c3ede0de2d34df9b1656ec156498c289d7ab2dea5ed8c28e92acdR51 as they will just grow and grow. Perhaps an option and a handler func like map[string]TXExtensionFunc that will get executed depending on tx settings?
Also thanks for picking up those linter failures, do you think this will be WiP for a bit, I could fix these linter failures in another PR in the mean time to unblock another 2 PRs that are failing because of them. (we run the linter github action which always uses latest linter so it will no doubt pick up stuff the old runs didn't)
All TX parsing functions now delegate to the tx.ReadFrom() function. All duplicate code has been removed.
Added support for parsing raw transactions that are using the BIP-239 Extended Transaction Format.