Skip to content

Conversation

@heifner
Copy link
Contributor

@heifner heifner commented Nov 7, 2025

Reduce RAM requirements for accounts

  • Inspired by: Draft: Slim accounts AntelopeIO/leap#2328
  • WIRE-183
  • account_metadata_object only created for accounts that have ABI or WASM code.
  • state_history ABI format unchanged. The account_metadata_object ABI is output with the account_object as before. This is a bit of a performance impact for creating the deltas as a lookup is required for each account_object that is exported.

Note: privileged accounts require account_metadata_object to store the privileged flag. Since almost all privileged accounts will have a contract anyway this does not seem like much of a burden. An account_metadata_object can be created without an contract via clio command: clio set code account1 --clear --suppress-duplicate-check.

…a_object for setcode/setabi. Also move ABI to account_metadata_object. Accounts that do not need code or abi now require less RAM.
Copy link
Contributor

@dtaghavi dtaghavi left a comment

Choose a reason for hiding this comment

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

Wow that saves a good amount of space.

Base automatically changed from feature/WIRE-12-bill-action-cpu-net to master November 25, 2025 18:52
@heifner heifner merged commit f369a07 into master Nov 25, 2025
@heifner heifner deleted the feature/WIRE-183-account-size branch November 25, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants