Skip to content

Store types (with autoincrement ID) using big endian for ordering #830

@lumtis

Description

@lumtis

Use big-endian utility function fromencoding/binary to store the type scaffolding from its ID so that these are stored in the correct order inside the IAVL

Example with proposal here: https://github.com/cosmos/cosmos-sdk/blob/master/x/gov/keeper/proposal.go

We can also use uint64 instead of string for the id type id depends how convenient it is for the developer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions