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

feat(all): update bindings based on latest tokenomics changes #367

Merged
merged 28 commits into from
Aug 29, 2023
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0feccbb
feat(all): update bindings based on latest tokenomics changes
davidtaikocha Aug 21, 2023
5fe3ffc
feat(all): offchain prover pool / alpha 5 tokenomics / bindings updat…
cyberhorsey Aug 25, 2023
0bbf349
resolve merge conflicts from main
cyberhorsey Aug 25, 2023
3394c12
remove parentgasused for valid proof checks
cyberhorsey Aug 25, 2023
b9da693
lints + protocol fixes, update bindings to latest
cyberhorsey Aug 25, 2023
898bdc6
fix tests post-merge
cyberhorsey Aug 25, 2023
d9158b2
chainsync tests
cyberhorsey Aug 25, 2023
43d4ca2
add logs
cyberhorsey Aug 25, 2023
f1c5be6
add block proposal fee iterations
cyberhorsey Aug 25, 2023
d4b2c0d
add iterations to tests
cyberhorsey Aug 25, 2023
c9f0335
test fix
cyberhorsey Aug 26, 2023
1fd8be1
check error
cyberhorsey Aug 26, 2023
5091cd2
Flag name
cyberhorsey Aug 26, 2023
0d4778a
taiko token in tests
cyberhorsey Aug 26, 2023
9ef4984
.
cyberhorsey Aug 26, 2023
93db412
depositTaikoToken needs approval beforehand now due to taiko-mono cha…
cyberhorsey Aug 26, 2023
e4ba80a
bindings
cyberhorsey Aug 26, 2023
2975cec
fix: fix synced block check
davidtaikocha Aug 28, 2023
5a50d78
chore: update workflow
davidtaikocha Aug 28, 2023
7af5330
chore: go mod tidy
davidtaikocha Aug 28, 2023
efff3c6
chore: update workflow
davidtaikocha Aug 28, 2023
bf20f25
feat: fix panic
davidtaikocha Aug 28, 2023
56a0c70
feat: more logs
davidtaikocha Aug 28, 2023
a56e03d
feat: add ctx
davidtaikocha Aug 28, 2023
6a5125d
fix: fix proveBlock
davidtaikocha Aug 28, 2023
f05205d
chore: update ci
davidtaikocha Aug 28, 2023
52d298a
fix todo
RogerLamTd Aug 29, 2023
4094c39
test: update comments
davidtaikocha Aug 29, 2023
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
Prev Previous commit
Next Next commit
remove parentgasused for valid proof checks
  • Loading branch information
cyberhorsey committed Aug 25, 2023
commit 3394c1251a09e2013890eb6581fc3b8830729a05
9 changes: 1 addition & 8 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,16 +720,10 @@ func (p *Prover) onBlockProven(ctx context.Context, event *bindings.TaikoL1Clien
return nil
}

block, err := p.rpc.L2ParentByBlockId(ctx, event.BlockId)
if err != nil {
return err
}

// cancel any proofs being generated for this block
isValidProof, err := p.isValidProof(
ctx,
event.BlockId.Uint64(),
block.GasUsed,
event.ParentHash,
event.BlockHash,
)
Expand Down Expand Up @@ -860,7 +854,6 @@ func (p *Prover) checkChainVerification(lastLatestVerifiedL1Height uint64) error
func (p *Prover) isValidProof(
ctx context.Context,
blockID uint64,
parentGasUsed uint64,
parentHash common.Hash,
blockHash common.Hash,
) (bool, error) {
Expand All @@ -874,7 +867,7 @@ func (p *Prover) isValidProof(
return false, err
}

if parent.GasUsed == parentGasUsed && parent.Hash() == parentHash && blockHash == block.Hash() {
if parent.Hash() == parentHash && blockHash == block.Hash() {
return true, nil
}

Expand Down