test: use fixed 0g binary (#218)

* test: use latest 0g binary

* feat: use bug fixed 0g binary
This commit is contained in:
MiniFrenchBread 2024-09-30 14:56:38 +08:00 committed by GitHub
parent 69b71fc0b2
commit 07ac814e57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -28,7 +28,7 @@ for ((i=0; i<$NUM_NODES; i++)) do
TMP_GENESIS=$ROOT_DIR/node$i/config/tmp_genesis.json TMP_GENESIS=$ROOT_DIR/node$i/config/tmp_genesis.json
# Replace stake with neuron # Replace stake with neuron
$SED_I 's/stake/ua0gi/g' "$GENESIS" $SED_I 's/"stake"/"ua0gi"/g' "$GENESIS"
# Replace the default evm denom of aphoton with neuron # Replace the default evm denom of aphoton with neuron
$SED_I 's/aphoton/neuron/g' "$GENESIS" $SED_I 's/aphoton/neuron/g' "$GENESIS"

View File

@ -16,7 +16,6 @@ BSC_BINARY = "geth.exe" if is_windows_platform() else "geth"
ZG_BINARY = "0gchaind.exe" if is_windows_platform() else "0gchaind" ZG_BINARY = "0gchaind.exe" if is_windows_platform() else "0gchaind"
CLIENT_BINARY = "0g-storage-client.exe" if is_windows_platform() else "0g-storage-client" CLIENT_BINARY = "0g-storage-client.exe" if is_windows_platform() else "0g-storage-client"
ZG_GIT_REV = "7bc25a060fab9c17bc9942b6747cd07a668d3042" # v0.1.0
CLI_GIT_REV = "98d74b7e7e6084fc986cb43ce2c66692dac094a6" CLI_GIT_REV = "98d74b7e7e6084fc986cb43ce2c66692dac094a6"
@unique @unique
@ -76,8 +75,7 @@ def build_zg(dir: str) -> BuildBinaryResult:
dir=dir, dir=dir,
binary_name=ZG_BINARY, binary_name=ZG_BINARY,
github_url="https://github.com/0glabs/0g-chain.git", github_url="https://github.com/0glabs/0g-chain.git",
git_rev=ZG_GIT_REV, build_cmd="git fetch origin pull/74/head:pr-74; git checkout pr-74; make install; cp $(go env GOPATH)/bin/0gchaind .",
build_cmd="make install; cp $(go env GOPATH)/bin/0gchaind .",
compiled_relative_path=[], compiled_relative_path=[],
) )