Skip to content

Commit

Permalink
Merge branch 'main' into change_-authorizePause
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Mar 28, 2024
2 parents 5ad4a2f + 37fa853 commit 86ea122
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require (
gopkg.in/yaml.v3 v3.0.1
gorm.io/datatypes v1.2.0
gorm.io/driver/mysql v1.5.6
gorm.io/gorm v1.25.7
gorm.io/gorm v1.25.8
gotest.tools v2.2.0+incompatible
)

Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,9 @@ gorm.io/driver/sqlserver v1.4.1 h1:t4r4r6Jam5E6ejqP7N82qAJIJAht27EGT41HyPfXRw0=
gorm.io/driver/sqlserver v1.4.1/go.mod h1:DJ4P+MeZbc5rvY58PnmN1Lnyvb5gw5NPzGshHDnJLig=
gorm.io/gorm v1.20.7/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw=
gorm.io/gorm v1.21.3/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw=
gorm.io/gorm v1.25.7 h1:VsD6acwRjz2zFxGO50gPO6AkNs7KKnvfzUjHQhZDz/A=
gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gorm.io/gorm v1.25.8 h1:WAGEZ/aEcznN4D03laj8DKnehe1e9gYQAjW8xyPRdeo=
gorm.io/gorm v1.25.8/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY=
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -435,18 +435,18 @@ library LibProving {
// The highest tier proof can always submit new proofs
if (_tier.contestBond == 0) return;

bool isAssignedPover = msg.sender == _blk.assignedProver;
bool isAssignedProver = msg.sender == _blk.assignedProver;

// The assigned prover can only submit the very first transition.
if (
_tid == 1 && _ts.tier == 0
&& !LibUtils.isPostDeadline(_ts.timestamp, _lastUnpausedAt, _tier.provingWindow)
) {
if (!isAssignedPover) revert L1_NOT_ASSIGNED_PROVER();
if (!isAssignedProver) revert L1_NOT_ASSIGNED_PROVER();
} else {
// Disallow the same address to prove the block so that we can detect that the
// assigned prover should not receive his liveness bond back
if (isAssignedPover) revert L1_ASSIGNED_PROVER_NOT_ALLOWED();
if (isAssignedProver) revert L1_ASSIGNED_PROVER_NOT_ALLOWED();
}
}

Expand Down

0 comments on commit 86ea122

Please sign in to comment.