Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcoin: fix witness item structs #671

Merged
merged 1 commit into from
May 15, 2023

Conversation

Rogach
Copy link
Contributor

@Rogach Rogach commented May 15, 2023

This commit fixes witness item decoding such that they are represented as structs with item_size and item fields, instead of a flat list of raw bytes.

@wader
Copy link
Owner

wader commented May 15, 2023

Hi thanks! do you have a small test case file you could add? it's usually just add the file to bitcoin/testdata/<file> add a bitcoin/testdata/<file>.fqtest with the content $ fq -d <decoder if needed> dv <file> and then run WRITE_ACTUAL=1 go test -v -run TestFormats/bitcoin ./format/ to update expected output from actual.

This commit fixes witness item decoding such that they are represented
as structs with `item_size` and `item` fields, instead of a flat list
of raw bytes.
@Rogach Rogach force-pushed the pr/bitcoin-tx-witness-items branch from ab1532d to a3361e7 Compare May 15, 2023 10:36
@Rogach
Copy link
Contributor Author

Rogach commented May 15, 2023

Added a test.

@wader
Copy link
Owner

wader commented May 15, 2023

Great, thanks! will merge once CI is green. There seems to be some hopefully temporary issue:

...
Err:1 http://azure.archive.ubuntu.com/ubuntu jammy/universe amd64 tcl-expect amd64 5.45.4-2build1
  503  Service Unavailable [IP: 40.81.13.82 80]
...

@wader wader merged commit aa67236 into wader:master May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants