Skip to content

policy: raise MAX_STANDARD_TX_WEIGHT toward the consensus limit#19

Open
hans-crypto wants to merge 1 commit intopetertodd:libre-relay-v30.2from
ordpool-space:raise-max-standard-tx-weight
Open

policy: raise MAX_STANDARD_TX_WEIGHT toward the consensus limit#19
hans-crypto wants to merge 1 commit intopetertodd:libre-relay-v30.2from
ordpool-space:raise-max-standard-tx-weight

Conversation

@hans-crypto
Copy link
Copy Markdown

Currently MAX_STANDARD_TX_WEIGHT is 400000 (100 kvB), while a single transaction can in principle reach close to the 4M weight consensus limit (~1000 kvB). Transactions in that range are regularly mined via out-of-band submission, but don't propagate via standard mempool relay.

Raising this policy cap toward the consensus limit would let Libre Relay nodes propagate the same class of transactions miners are already including, which seems aligned with the project's goal of removing relay filters that don't reflect what miners accept.

This PR does the minimum-diff version: a single literal change in src/policy/policy.h from 400000 to 4000000. Note one derived consequence — MAX_OP_RETURN_RELAY is defined as MAX_STANDARD_TX_WEIGHT / WITNESS_SCALE_FACTOR, so the default -datacarriersize floor moves with it (100 kvB → 1000 kvB). Easy to break that link and keep the OP_RETURN default where it is, if preferred — flagging here so the choice is visible.

@petertodd, would be curious to hear your thoughts on whether this fits the project's direction. Happy to take feedback or close if not the right shape.

Thanks for considering.

Raises MAX_STANDARD_TX_WEIGHT from 400000 (100 kvB) to 4000000
(consensus block-weight limit). Lets Libre Relay propagate the
class of consensus-valid transactions that miners are already
including via out-of-band submission paths.
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