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.
Sequencer sets global state in
astria/crates/astria-sequencer/src/asset/mod.rs
Line 10 in 167f72f
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.