Skip to content

Remove global state in sequencer #1208

@SuperFluffy

Description

@SuperFluffy

Sequencer sets global state in

pub(crate) fn initialize_native_asset(native_asset: &str) {
and, with PR #1201, similary for the address prefixes.

Since state is explicitly passed around to almost all parts of the sequencer through Storage, there is no need to set it globally. Instead, address prefixes and denoms could be read from rocksdb every time they are needed. Note that because the getters are async, this could have performance implications.

Metadata

Metadata

Assignees

Labels

sequencerpertaining to the astria-sequencer crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions