Skip to content

Commit 77c98ae

Browse files
committed
optimize compatibility
1 parent 7b1be0a commit 77c98ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chaindev"
3-
version = "0.54.1"
3+
version = "0.54.2"
44
edition = "2024"
55
authors = ["hui.fan@mail.ru"]
66
description = "Powerful development and testing utils for blockchain developers."

src/beacon_based/ddev/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ where
13201320
sed -i '/SLOT_DURATION_IN_SECONDS/d' {cfg} || exit 1
13211321
echo 'export SLOT_DURATION_IN_SECONDS="{0}"' >>{cfg} || exit 1
13221322
fi
1323-
grep -Po '(?<= SLOT_DURATION_IN_SECONDS=")\d+' {cfg} >{block_itv_cache} || exit 1
1323+
grep 'SLOT_DURATION_IN_SECONDS' {cfg} | grep -o '[0-9]\+' >{block_itv_cache} || exit 1
13241324
make minimal_prepare || exit 1
13251325
make build || exit 1
13261326
cp -r {repo}/data/{NODE_HOME_GENESIS_DIR_DST} {1}/ || exit 1

src/beacon_based/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ where
775775
sed -i '/SLOT_DURATION_IN_SECONDS/d' {cfg} || exit 1
776776
echo 'export SLOT_DURATION_IN_SECONDS="{0}"' >>{cfg} || exit 1
777777
fi
778-
grep -Po '(?<= SLOT_DURATION_IN_SECONDS=")\d+' {cfg} >{block_itv_cache} || exit 1
778+
grep 'SLOT_DURATION_IN_SECONDS' {cfg} | grep -o '[0-9]\+' >{block_itv_cache} || exit 1
779779
make minimal_prepare || exit 1
780780
make build || exit 1
781781
cp -r {repo}/data/{NODE_HOME_GENESIS_DIR_DST} {1}/ || exit 1

0 commit comments

Comments
 (0)