Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(prover): updates based on protocol proofTimeTarget changes #227

Merged
merged 2 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e8ba7168231f9a8bbef1378fa93448b11c4267ac
77dfb8c39126fd4a42be70eff2d497c7e622b967
211 changes: 183 additions & 28 deletions bindings/gen_taiko_l1.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions integration_test/nodes/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ cd $TAIKO_MONO_DIR/packages/protocol &&
SOLO_PROPOSER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
OWNER=0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC \
TREASURE=0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC \
INITIAL_PROOF_TIME_TARGET=101 \
TAIKO_L2_ADDRESS=0x1000777700000000000000000000000000000001 \
L2_SIGNAL_SERVICE=0x1000777700000000000000000000000000000007 \
SHARED_SIGNAL_SERVICE=0x0000000000000000000000000000000000000000 \
Expand Down
4 changes: 0 additions & 4 deletions prover/proof_producer/special_proof_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"math/big"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
Expand All @@ -28,7 +27,6 @@ type SpecialProofProducer struct {
rpc *rpc.Client
proverPrivKey *ecdsa.PrivateKey
anchorTxValidator *anchorTxValidator.AnchorTxValidator
proofTimeTarget time.Duration
graffiti [32]byte
isSystemProver bool
}
Expand All @@ -39,7 +37,6 @@ func NewSpecialProofProducer(
rpcClient *rpc.Client,
proverPrivKey *ecdsa.PrivateKey,
taikoL2Address common.Address,
proofTimeTarget time.Duration,
protocolSpecialProverAddress common.Address,
graffiti string,
isSystemProver bool,
Expand All @@ -58,7 +55,6 @@ func NewSpecialProofProducer(
rpcClient,
proverPrivKey,
anchorValidator,
proofTimeTarget,
rpc.StringToBytes32(graffiti),
isSystemProver,
}, nil
Expand Down
1 change: 0 additions & 1 deletion prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ func InitFromConfig(ctx context.Context, p *Prover, cfg *Config) (err error) {
p.rpc,
privateKey,
p.cfg.TaikoL2Address,
time.Duration(p.protocolConfigs.ProofTimeTarget)*time.Second,
specialProverAddress,
p.cfg.Graffiti,
isSystemProver,
Expand Down