Skip to content

Commit 7a25445

Browse files
author
Naohiro Yoshida
committed
add lorentz ts
Signed-off-by: Naohiro Yoshida <[email protected]>
1 parent e232ac1 commit 7a25445

File tree

7 files changed

+58
-396
lines changed

7 files changed

+58
-396
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ jobs:
5454
run: |
5555
make chain
5656
make contracts
57-
# epoch length is fixed in lorentz HF.
5857
# epoch is 200, 400, 500, 1000
59-
# must wait for 1000 block (1.5sec * 400)
58+
# must wait for 400 block (1.5sec * 400)
6059
sleep 600
6160
make relayer
6261
make test

e2e/chains/bsc/Dockerfile.bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM ghcr.io/foundry-rs/foundry:nightly-462b2ac6c038dc24b8f38b0c59b664d0740604c2
33
RUN apk add --d --no-cache ca-certificates npm nodejs bash alpine-sdk expect jq curl bash python3
44
RUN curl -sSL https://install.python-poetry.org | python3 -
55

6-
RUN git clone https://github.com/bnb-chain/bsc-genesis-contract -b v1.2.4 /root/genesis \
7-
&& cd /root/genesis && npm ci
6+
RUN git clone https://github.com/bnb-chain/bsc-genesis-contract -b develop /root/genesis \
7+
&& cd /root/genesis && git checkout 44ebc6c17a00bd24db3240141a78091528dcebbb && 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/[email protected]

e2e/chains/bsc/docker-compose.bsc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ services:
55
dockerfile: Dockerfile.bsc
66
args:
77
GIT_SOURCE: https://github.com/bnb-chain/bsc
8-
GIT_CHECKOUT_BRANCH: develop
8+
GIT_CHECKOUT_BRANCH: v1.5.9
99
image: bsc-geth:docker-local

e2e/chains/bsc/genesis/contracts/BSCValidatorSet.sol

Lines changed: 52 additions & 384 deletions
Large diffs are not rendered by default.

e2e/chains/bsc/genesis/genesis-template.template

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
"target": 6,
4747
"max": 9,
4848
"baseFeeUpdateFraction": 5007716
49-
},
50-
"lorentz": {
51-
"target": 6,
52-
"max": 9,
53-
"baseFeeUpdateFraction": 5007716
5449
}
5550
},
5651
"parlia": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const web3 = require("web3")
22

33
const addresses = "{{INIT_HOLDER_ADDRESSES}}"
4-
const balance = web3.utils.toBN("{{INIT_HOLDER_BALANCE}}").toString("hex")
4+
const balance = BigInt("{{INIT_HOLDER_BALANCE}}").toString(16)
55
const init_holders = addresses.split(",").map(address => ({ address, balance }));
66

77
exports = module.exports = init_holders

module/fork_spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func GetForkParameters(network Network) []*ForkSpec {
6161
MaxTurnLength: 9,
6262
},
6363
{
64-
HeightOrTimestamp: &ForkSpec_Timestamp{Timestamp: math.MaxUint64},
64+
HeightOrTimestamp: &ForkSpec_Timestamp{Timestamp: 1744097580 * 1000},
6565
AdditionalHeaderItemCount: 1,
6666
EpochLength: 500,
6767
MaxTurnLength: 64,

0 commit comments

Comments
 (0)