Open quocle108 opened 3 months ago
as discussed in the chat:
namespace reservation must not be hardcoded. It needs a configurable way, if needed at all:
// system account only can be created by newaccount
EOS_ASSERT( name_str.find( "eosio." ) != 0, action_validate_exception,
"only newaccount action can create account with name start with 'eosio.'" );
Odd placement of create_slim_account()
inside libraries/chain/webassembly/privileged.cpp
. It belongs where newaccount()
sits.
State history plugin needs to be able to read the data created by previous Leap versions.
Change Description
This MR introduces a significant optimization in RAM usage by implementing a new account structure. The changes are designed to enhance efficiency and reduce the memory. The key modifications include:
account_object
is now universal for all account types, while theaccount_metadata_object
is specifically applied for smart contract accountsaccount_object
,resource_object
, and one ACTIVE permission. Unlike regular accounts, Slim accounts don't have the ACTIVE permission by default. A Slim account uses up to 54% less RAM than a regular account.API Changes
Documentation Additions
Note
There is an unresolved issues: