Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jul 24, 2024
1 parent 037e705 commit ff9407a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions sequencesender/txbuilder/zkevm_cond_max_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (c *NewSequenceConditionalMaxSize) NewSequenceIfWorthToSend(ctx context.Con

return sequence, err
}
log.Infof("[SeqSender] [MaxSize] current size:%d max_size:%d num_batches: %d", tx.Size(), c.maxTxSizeForL1, sequence.Len())
return nil, nil
}

Expand Down
8 changes: 4 additions & 4 deletions test/config/test.kurtosis_template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ForkUpgradeBatchNumber = 0
ForkUpgradeNewForkId = 0

[Common]
IsValidiumMode = true
IsValidiumMode = ${zkevm_is_validium}
ContractVersions = "elderberry"
[Common.Translator]
FullMatchRules = [
Expand Down Expand Up @@ -48,7 +48,7 @@ MaxPendingTx = 1
[SequenceSender.EthTxManager.Etherman]
URL = "http://127.0.0.1:${l1_rpc_port}"
MultiGasProvider = false
L1ChainID = ${zkevm_l1_chain_id}
L1ChainID = ${l1_chain_id}
[Aggregator]
Host = "0.0.0.0"
Port = 50081
Expand Down Expand Up @@ -100,7 +100,7 @@ SequencerPrivateKey = {}
FinalizedStatusL1NumberOfBlocks = 0
[Aggregator.EthTxManager.Etherman]
URL = ""
L1ChainID = 11155111
L1ChainID = ${l1_chain_id}
HTTPHeaders = []
[Aggregator.Synchronizer]
[Aggregator.Synchronizer.DB]
Expand All @@ -120,4 +120,4 @@ SequencerPrivateKey = {}
OverrideStorageCheck = false
[Aggregator.Synchronizer.Etherman]
[Aggregator.Synchronizer.Etherman.Validium]
Enabled = false
Enabled = ${zkevm_is_validium}
9 changes: 7 additions & 2 deletions test/scripts/config_kurtosis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ export zkevm_data_streamer_port=$(kurtosis enclave inspect $ENCLAVE | grep "data
kurtosis files download $ENCLAVE zkevm-sequence-sender-config-artifact $DEST
export zkevm_l2_sequencer_address=$(cat $DEST/config.toml |grep L2Coinbase | cut -f 2 -d "="| tr -d '"' | tr -d ' ')
export zkevm_l2_keystore_password=$(cat $DEST/config.toml |grep -A1 L2Coinbase | tr ',' '\n' | grep Password | cut -f 2 -d '=' | tr -d '}' | tr -d '"' | tr -d ' ')
export zkevm_l1_chain_id=$(cat $DEST/config.toml |grep L1ChainID | cut -f 2 -d '=')
export l1_chain_id=$(cat $DEST/config.toml |grep L1ChainID | cut -f 2 -d '=')
export zkevm_is_validium=$(cat $DEST/config.toml |grep IsValidiumMode | cut -f 2 -d '=')
#build_vars_file

envsubst < test/config/test.kurtosis_template.toml > $DEST/test.kurtosis.toml
#kurtosis files rendertemplate $ENCLAVE config/test.kurtosis_template.toml $DEST/vars.json config/test.kurtosis.toml

echo "rember to stop sequence-sender:"
echo "-----------------------------------------------------------"
echo "kurtosis service stop cdk-v1 zkevm-node-sequence-sender-001"

0 comments on commit ff9407a

Please sign in to comment.