Skip to content

Remove base_per_transaction_net_usage from blockchain_parameters#101

Merged
heifner merged 1 commit into
masterfrom
cleanup/remove-base-per-transaction-net-usage
Jul 15, 2026
Merged

Remove base_per_transaction_net_usage from blockchain_parameters#101
heifner merged 1 commit into
masterfrom
cleanup/remove-base-per-transaction-net-usage

Conversation

@heifner

@heifner heifner commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes base_per_transaction_net_usage (field and SYSLIB_SERIALIZE entry) from blockchain_parameters, pairing with the wire-sysio removal of the parameter from chain_config_v0 (PR link added there). The host's set_blockchain_parameters_packed unpacks the packed blob directly into chain_config_v0, so this struct must match its fc::raw layout field-for-field.

Note get_blockchain_parameters/set_blockchain_parameters are compiled into libsysio from sysiolib.cpp, so contracts must be built against a CDT rebuilt with this header; the system and test contracts committed in the wire-sysio PR were rebuilt that way.

The parameter no longer participates in NET billing on the chain side
(replaced by a per-action overhead computed from
fixed_net_overhead_of_packed_trx); wire-sysio removes it from
chain_config_v0, and this struct must match that fc::raw layout
field-for-field because set_blockchain_parameters_packed unpacks the
packed blob directly into chain_config_v0.

@huangminghuang huangminghuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the complete patch and companion wire-sysio layout change. The serialized field order matches chain_config_v0, the 76-byte packed layout was verified, and local Release build/tests passed.

@heifner
heifner merged commit d5d763b into master Jul 15, 2026
6 checks passed
@heifner
heifner deleted the cleanup/remove-base-per-transaction-net-usage branch July 15, 2026 21: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