Skip to content

Commit

Permalink
docker demo: read initial stake table from file (#2389)
Browse files Browse the repository at this point in the history
- Avoid printing shortened Ethereum addresses
  • Loading branch information
sveitser authored Dec 11, 2024
1 parent 84e59fc commit 849c509
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ services:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --only fee-contract,permissioned-stake-table
environment:
- ESPRESSO_SEQUENCER_INITIAL_PERMISSIONED_STAKE_TABLE_PATH=/data/initial_stake_table.toml
- ESPRESSO_SEQUENCER_ETH_MULTISIG_ADDRESS
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
volumes:
- "./data/initial_stake_table.toml:/data/initial_stake_table.toml"
depends_on:
demo-l1-network:
condition: service_healthy
Expand Down
1 change: 1 addition & 0 deletions sequencer/src/bin/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ async fn main() -> anyhow::Result<()> {
let genesis = light_client_genesis(&sequencer_url, opt.stake_table_capacity).boxed();

let initial_stake_table = if let Some(path) = opt.initial_stake_table_path {
tracing::info!("Loading initial stake table from {:?}", path);
Some(PermissionedStakeTableConfig::from_toml_file(&path)?.into())
} else {
None
Expand Down
12 changes: 6 additions & 6 deletions utils/src/deployer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ pub async fn deploy(
// Transfer ownership to the multisig wallet if provided.
if let Some(owner) = multisig_address {
tracing::info!(
%light_client_proxy_address,
%owner,
?light_client_proxy_address,
?owner,
"transferring light client proxy ownership to multisig",
);
proxy.transfer_ownership(owner).send().await?.await?;
Expand Down Expand Up @@ -429,8 +429,8 @@ pub async fn deploy(
// Transfer ownership to the multisig wallet if provided.
if let Some(owner) = multisig_address {
tracing::info!(
%fee_contract_proxy_address,
%owner,
?fee_contract_proxy_address,
?owner,
"transferring fee contract proxy ownership to multisig",
);
proxy.transfer_ownership(owner).send().await?.await?;
Expand All @@ -451,8 +451,8 @@ pub async fn deploy(
// Transfer ownership to the multisig wallet if provided.
if let Some(owner) = multisig_address {
tracing::info!(
%stake_table_address,
%owner,
?stake_table_address,
?owner,
"transferring PermissionedStakeTable ownership to multisig",
);
stake_table.transfer_ownership(owner).send().await?.await?;
Expand Down

0 comments on commit 849c509

Please sign in to comment.