Skip to content

Fix tests#1270

Merged
NicolasDorier merged 1 commit intomasterfrom
additional-cleanup
May 15, 2025
Merged

Fix tests#1270
NicolasDorier merged 1 commit intomasterfrom
additional-cleanup

Conversation

@NicolasDorier
Copy link
Collaborator

@NicolasDorier NicolasDorier commented May 15, 2025

Follow up of #1269

Since it isn't possible to properly deserialize a transaction without input (and those can't exists on the network), this PR forbidden the serialization of transactions without input.

I added BitcoinStream.AllowNoInputs to still allow this for back compatibility reason (fundrawtransaction from core) or because it is acceptable, as the serialized bytes will never be read (calculation of the hash or size)

@NicolasDorier NicolasDorier force-pushed the additional-cleanup branch 5 times, most recently from be10caa to 2fe93f4 Compare May 15, 2025 04:19
@NicolasDorier NicolasDorier merged commit bb8c111 into master May 15, 2025
10 of 12 checks passed
hemetaco pushed a commit that referenced this pull request May 15, 2025
NicolasDorier added a commit that referenced this pull request May 15, 2025
* backport to 7.x

* Fix tests (#1270)

* add RemoveSignatures method

---------

Co-authored-by: Hugo ESQUIBET <hesquibet@ripple.com>
Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
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.

1 participant