MCPcopy Create free account
hub / github.com/base/base / read

Method read

crates/execution/cli/src/standard_node.rs:932–948  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

930
931impl TransactionEventEnv {
932 fn read() -> Self {
933 Self {
934 enabled: transaction_event_journal_env_enabled(),
935 path: env::var_os("BASE_TRANSACTION_EVENTS_PATH").map(PathBuf::from),
936 max_file_bytes: env::var("BASE_TRANSACTION_EVENTS_MAX_FILE_BYTES")
937 .ok()
938 .and_then(|value| value.parse().ok())
939 .unwrap_or(DEFAULT_MAX_FILE_BYTES),
940 max_files: env::var("BASE_TRANSACTION_EVENTS_MAX_FILES")
941 .ok()
942 .and_then(|value| value.parse().ok())
943 .unwrap_or(DEFAULT_MAX_FILES),
944 network: env::var("BASE_TRANSACTION_EVENTS_NETWORK")
945 .or_else(|_| env::var("BASE_NODE_NETWORK"))
946 .unwrap_or_else(|_| "unknown".to_string()),
947 }
948 }
949}
950
951fn transaction_event_journal_env_enabled() -> bool {

Callers

nothing calls this directly

Calls 3

okMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected