Skip to content

Commit

Permalink
Adjusted some Sei configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
maoueh committed Apr 17, 2024
1 parent ceb7274 commit af4bbdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
18 changes: 3 additions & 15 deletions devel/sei/node/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ usage: generate.sh <sei-chain-path>
Runs the necessary commands to generate the a local Sei node and pack
it.
The script uses the scripts/initialize_local_chain.sh (slightly modifying it)
The script uses the scripts/initialize_local_chain.sh
to generate the node and then it packs it into a tar.zst file.
Requires binary 'sd', 'wget', 'jq', 'curl', and 'seid'
Expand Down Expand Up @@ -55,18 +55,14 @@ main() {
echo " App Config: $app_file"
echo ""

echo ""
sd '^#(.*~/go/bin/seid.*)$' '# $1' "$initialize_script"
trap revert_script_changes EXIT

echo "Running $initialize_script ..."
pushd "$sei_chain_path" &> /dev/null
"$initialize_script_relative_path"
NO_RUN=1 "$initialize_script_relative_path"
popd &> /dev/null

pushd "$sei_home" &> /dev/null
echo "Adjusting config/app.toml to use FirehoseTracer"
sd '\[evm\]' "[evm]\nlive_evm_tracer = \"firehose\"\nlive_evm_tracer_chain_id = 713715" "$app_file"
sd '\[evm\]' "[evm]\nlive_evm_tracer = \"firehose\"" "$app_file"

echo "Packing archive ${archive_file_path}.zst..."
tar -cf "${archive_file_path}" *
Expand All @@ -78,14 +74,6 @@ main() {
# We print Done in the revert scripts changes which is a trap on EXIT
}

revert_script_changes() {
echo ""
echo "Reverting changes to $initialize_script"
sd '^# (.*~/go/bin/seid.*)$' '$1' "$initialize_script"

echo "Done"
}

usage_error() {
message="$1"
exit_code="${2:--1}"
Expand Down
Binary file modified devel/sei/node/sei-dev-chain.tar.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion devel/sync-sei-devnet/node/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ main() {
sd '^rpc-servers *=.*' "rpc-servers = \"$primary_endpoint,$secondary_endpoint\"" $config_file
sd '^enable *=.*' "enable = true" $config_file
sd '^db-sync-enable *=.*' "db-sync-enable = false" $config_file
sd '^occ-enabled *=.*' "occ-enabled = false" $config_file
sd '^occ-enabled *=.*' "occ-enabled = true" $config_file

sd '\[evm\]' "[evm]\nlive_evm_tracer = \"firehose\"\nlive_evm_tracer_chain_id = 713715" "$app_file"

Expand Down

0 comments on commit af4bbdd

Please sign in to comment.