Skip to content

Commit

Permalink
Merge pull request #228 from ethstorage/zkey_update
Browse files Browse the repository at this point in the history
replace zkey
  • Loading branch information
syntrust authored Mar 7, 2024
2 parents a9c781b + 1aa7247 commit 82dfc06
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/es-node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
var (
GitCommit = ""
GitDate = ""
Version = "v0.1.7"
Version = "v0.1.8"
Meta = "dev"
BuildTime = ""
systemVersion = fmt.Sprintf("%s/%s", runtime.GOARCH, runtime.GOOS)
Expand Down
2 changes: 2 additions & 0 deletions cmd/es-utils/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func SendBlobTx(
}
nonce = int64(pendingNonce)
}
log.Info("SendBlobTx", "nonce", nonce)

var gasPrice256 *uint256.Int
if gasPrice == "" {
Expand All @@ -109,6 +110,7 @@ func SendBlobTx(
if nok {
log.Crit("Gas price is too high!", "value", val.String())
}
log.Info("SendBlobTx", "gasPriceSuggested", gasPrice256)
} else {
gasPrice256, err = DecodeUint256String(gasPrice)
if err != nil {
Expand Down
Binary file modified ethstorage/prover/snarkjs/blob_poseidon2.wasm
Binary file not shown.
5 changes: 3 additions & 2 deletions integration_tests/kzg_prover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ func uploadBlob(t *testing.T, data []byte) common.Hash {
Data: calldata,
})
if err != nil {
lg.Crit("Estimate gas failed", "error", err.Error())
// estimate gas of blobhash does not work correctly but exec works
lg.Warn("Estimate gas failed", "error", err.Error())
}
lg.Info("Estimated gas done", "gas", estimatedGas)

Expand All @@ -139,7 +140,7 @@ func uploadBlob(t *testing.T, data []byte) common.Hash {
510000,
"",
"",
"100000000",
"40000000000",
chainID.String(),
"0x"+common.Bytes2Hex(calldata),
)
Expand Down
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ echo "zk prover mode is $zkp_mode"

# download zkey if not yet
zkey_name="blob_poseidon2.zkey"
zkey_size=560300809
zkey_url="https://drive.usercontent.google.com/download?id=1olfJvXPJ25Rbcjj9udFlIVr08cUCgE4l&export=download&confirm=t&uuid=724a4ed0-c344-4cc1-9078-f50751028725"
zkey_size=560301223
zkey_url="https://drive.usercontent.google.com/download?id=1G7LmOx7hNE5GHc-M6yOjVB3ZZ4J6xUYO&export=download&confirm=t&uuid=d605a067-612f-41d0-b004-21ee6f0ec858"
if [ "$zkp_mode" = 1 ]; then
zkey_name="blob_poseidon.zkey"
zkey_size=280151245
Expand Down

0 comments on commit 82dfc06

Please sign in to comment.