Skip to content

session: broadcast_package: followup #288 - #319

Merged
SomberNight merged 1 commit into
spesmilo:masterfrom
f321x:followup_288
Oct 24, 2025
Merged

SomberNight merged 1 commit into
spesmilo:masterfrom
f321x:followup_288

Conversation

@f321x

@f321x f321x commented Oct 24, 2025

Copy link
Copy Markdown
Member

Removes the incorrect and unnecessary txid calculation in ElectrumX.package_broadcast(), the daemon will complain anyways if the transactions are invalid.

The double check for the package-msg and package_msg keys in the daemon result is also not required anymore as bitcoin/bitcoin#31900 got closed.

Removes the incorrect and unnecessary txid calculation in
`ElectrumX.package_broadcast()`, the daemon will complain anyways if the
transactions are invalid.
Comment on lines -1549 to -1555
try:
txids = [double_sha256(bytes.fromhex(tx)).hex() for tx in tx_package]
except ValueError:
self.logger.info(f"error calculating txids", exc_info=True)
raise RPCError(
BAD_REQUEST,
f'not a valid hex encoded transaction package: {tx_package}')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but I think we should still do some input sanitization. E.g. tx_package might not even be iterable, raising on line 1548.
See e.g. SomberNight@5553ec2.
I'll do a follow-up.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #321

@SomberNight
SomberNight merged commit 559211a into spesmilo:master Oct 24, 2025
@f321x
f321x deleted the followup_288 branch October 24, 2025 15:30
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