loom_rpc_state/
app_state.rs

1
2
3
4
5
6
7
8
9
use loom_core_blockchain::Blockchain;
use loom_storage_db::DbPool;
use revm::DatabaseRef;

#[derive(Clone)]
pub struct AppState<DB: DatabaseRef + Clone + Send + Sync + 'static> {
    pub db: DbPool,
    pub bc: Blockchain<DB>,
}