Skip to content

Commit

Permalink
fix: increase db (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
BC-A authored Oct 28, 2024
1 parent e6620fc commit 21b7253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/launch-pos-eigen-zeth-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ DEFAULT_CUSTOM_NODE_CONFIG_FILE="${PROJECT_PATH}/configs/custom_node_config.toml
DEFAULT_DATABASE_CONFIG_FILE="${PROJECT_PATH}/configs/database.toml"

# start the zeth node
PROVER_ADDR=http://localhost:50061 RUST_LOG="debug,evm=trace,consensus::auto=trace,consensus::engine=trace,rpc::eth=trace" nohup eigen-zeth run --database mdbx --database-conf $DEFAULT_DATABASE_CONFIG_FILE --custom-node-conf $DEFAULT_CUSTOM_NODE_CONFIG_FILE --settlement $DEFAULT_SETTLEMENT --settlement-conf $DEFAULT_SETTLEMENT_CONFIG_FILE --chain $CHAIN_SPEC_PATH --datadir $EXECUTION_DATA_PATH --http --http.addr 0.0.0.0 --http.port 48546 --http.api debug,eth,net,trace,web3,rpc --authrpc.jwtsecret $JWT_SECRET_PATH --authrpc.addr 0.0.0.0 --authrpc.port 48552 --port 40304 --full > $ZETH_LOG_FILE 2>&1 &
PROVER_ADDR=http://localhost:50061 RUST_LOG="debug,evm=trace,consensus::auto=trace,consensus::engine=trace,rpc::eth=trace" nohup eigen-zeth run --database mdbx --database-conf $DEFAULT_DATABASE_CONFIG_FILE --custom-node-conf $DEFAULT_CUSTOM_NODE_CONFIG_FILE --settlement $DEFAULT_SETTLEMENT --settlement-conf $DEFAULT_SETTLEMENT_CONFIG_FILE --chain $CHAIN_SPEC_PATH --datadir $EXECUTION_DATA_PATH --http --http.addr 0.0.0.0 --http.port 8546 --http.api debug,eth,net,trace,web3,rpc --authrpc.jwtsecret $JWT_SECRET_PATH --authrpc.addr 0.0.0.0 --authrpc.port 48552 --port 40304 --full > $ZETH_LOG_FILE 2>&1 &
# start the beacon node
nohup lighthouse bn --debug-level=info --datadir=$CONSENSUS_DATA_PATH --disable-enr-auto-update --enr-address=172.20.0.3 --enr-udp-port=9000 --enr-tcp-port=9000 --listen-address=0.0.0.0 --port=9000 --http --http-address=0.0.0.0 --http-port=4000 --slots-per-restore-point=32 --disable-packet-filter --execution-endpoints=http://localhost:48552 --jwt-secrets=$JWT_SECRET_PATH --suggested-fee-recipient=0x8943545177806ED17B9F23F0a21ee5948eCaa776 --subscribe-all-subnets --enable-private-discovery --testnet-dir=$TESTNET_DIR >> $BEACON_LOG_FILE 2>&1 &
# start the validator client
Expand Down
5 changes: 5 additions & 0 deletions src/db/lfs/libmdbx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use config::File;
use reth_libmdbx::*;
use serde::Deserialize;
use std::fs;
use std::ops::RangeInclusive;
use std::path::Path;

pub struct Db(MdbxDB);
Expand Down Expand Up @@ -48,6 +49,10 @@ pub fn open_mdbx_db(config: Config) -> std::result::Result<Box<dyn EigenDB>, ()>

let env = match Environment::builder()
.set_max_dbs(config.max_dbs)
.set_geometry(Geometry::<RangeInclusive<usize>> {
size: Some(0..=1024 * 1024 * 1024 * 1024), // Max 1TB
..Default::default()
})
.open(std::path::Path::new(&config.path))
{
Ok(env) => env,
Expand Down

0 comments on commit 21b7253

Please sign in to comment.