Skip to content

Print a notice when user-defined storage bytes/count differ from calculated ones. #96

@skoszuta

Description

@skoszuta

IMO storage_utilisation_count and storage_utilisation_bytes shouldn't be available to set from config. It should reflect real data of preimages and storage items.
Also should we allow to set value for created > last_accumulation?

i think it's not pointless to let users do whatever stupid thing they want in this case. but im happy to change my mind. @tomusdrw you're invited to chip in

Agree. If the values are omitted they should be set accordingly to the actual usage, however if the user defines them explicitly we can allow them to do as they please. We might consider printing a helpful notice that the storage values do not match the computed ones (providing both values for comparison).

Sounds good. I will create an issue for printing the notice. After recent changes genesis-state-generator isn't connected to a logger anymore and solving that now would further delay the completion of this task.

Originally posted by @skoszuta in #93 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions