Skip to content

Commit 9cd6c55

Browse files
author
Naohiro Yoshida
committed
fix
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
1 parent a6ed1c7 commit 9cd6c55

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
make chain
5656
make contracts
5757
# epoch is 200, 400, 500, 1000
58-
# must wait for 400 block (1.5sec * 400)
58+
# Since we want the previous epoch to be before HF we wait for 800 block (0.75sec * 800)
5959
sleep 600
6060
make relayer
6161
make test

e2e/chains/bsc/Dockerfile.bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apk add --d --no-cache npm nodejs bash alpine-sdk expect jq curl bash python
44
RUN curl -sSL https://install.python-poetry.org | python3 -
55

66
RUN git clone https://github.com/bnb-chain/bsc-genesis-contract -b develop /root/genesis \
7-
&& cd /root/genesis && git checkout 44ebc6c17a00bd24db3240141a78091528dcebbb && npm ci
7+
&& cd /root/genesis && git checkout bf3ac733f8aaf93ed88ca0ad2dcddd051166e4e1 && npm ci
88

99
RUN cd /root/genesis && /root/.local/bin/poetry install
1010
RUN cd /root/genesis && forge install --no-git --no-commit foundry-rs/forge-std@v1.7.3

e2e/chains/bsc/scripts/bootstrap.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function generate_genesis() {
5656
echo "start generate process"
5757
/root/.local/bin/poetry run python3 scripts/generate.py dev
5858

59+
echo "move generate-dev.json to genesis.json"
60+
mv genesis-dev.json genesis.json
5961
}
6062

6163
function init_genesis_data() {

module/fork_spec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ func GetForkParameters(network Network) []*ForkSpec {
7777
case Testnet:
7878
hardForks[indexPascalHF].HeightOrTimestamp = &ForkSpec_Height{Height: 48576786}
7979
hardForks[indexLorentzHF].HeightOrTimestamp = &ForkSpec_Height{Height: 49791365}
80-
// https: //github.com/bnb-chain/bsc/blob/256d8811f441c29cb0812943dc660ac13192829c/params/config.go#L239
81-
hardForks[indexLorentzHF].HeightOrTimestamp = &ForkSpec_Timestamp{Timestamp: 1748243100 * 1000}
80+
// https://github.com/bnb-chain/bsc/blob/256d8811f441c29cb0812943dc660ac13192829c/params/config.go#L239
81+
hardForks[indexMaxwellHF].HeightOrTimestamp = &ForkSpec_Timestamp{Timestamp: 1748243100 * 1000}
8282
return hardForks
8383
case Mainnet:
8484
hardForks[indexPascalHF].HeightOrTimestamp = &ForkSpec_Height{Height: 47618307}

0 commit comments

Comments
 (0)