Skip to content

AIP #61 v5: NewState and Accounting #398

@elpiel

Description

@elpiel

Sentry

NewState and Accounting should contain 2 balances maps (for earners and spenders) and we need to be able to distinguish between them:

  • balances - earners map
  • balancesSpenders - spenders map

IMPORTANT: Although there is division in 2 maps of the balances, the state_root should contain both (i.e. the should be merged into a single tree)

balancesSpenders - in order to avoid duplication when merging the two maps, spenderLeafs should be hashed by hash("spender", spender, totalSpent) (notice the string slice included when hashing to create a different hash than the earners map)

Accounting:

Metadata

Metadata

Assignees

No one assigned

    Labels

    primitivesChanges regarding the `primitives` crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions