@@ -8,24 +8,24 @@ import (
8
8
"github.com/ethereum/go-ethereum/log"
9
9
"github.com/taikoxyz/taiko-client/bindings"
10
10
"github.com/taikoxyz/taiko-client/pkg/rpc"
11
- proofSubmitter "github.com/taikoxyz/taiko-client/prover/proof_submitter "
11
+ proofProducer "github.com/taikoxyz/taiko-client/prover/proof_producer "
12
12
)
13
13
14
14
// AssignmentExpiredEventHandler is responsible for handling the expiration of proof assignments.
15
15
type AssignmentExpiredEventHandler struct {
16
16
rpc * rpc.Client
17
17
proverAddress common.Address
18
- proofSubmissionCh chan <- * proofSubmitter .ProofRequestBody
19
- proofContestCh chan <- * proofSubmitter .ContestRequestBody
18
+ proofSubmissionCh chan <- * proofProducer .ProofRequestBody
19
+ proofContestCh chan <- * proofProducer .ContestRequestBody
20
20
contesterMode bool
21
21
}
22
22
23
23
// NewAssignmentExpiredEventHandler creates a new AssignmentExpiredEventHandler instance.
24
24
func NewAssignmentExpiredEventHandler (
25
25
rpc * rpc.Client ,
26
26
proverAddress common.Address ,
27
- proofSubmissionCh chan * proofSubmitter .ProofRequestBody ,
28
- proofContestCh chan * proofSubmitter .ContestRequestBody ,
27
+ proofSubmissionCh chan * proofProducer .ProofRequestBody ,
28
+ proofContestCh chan * proofProducer .ContestRequestBody ,
29
29
contesterMode bool ,
30
30
) * AssignmentExpiredEventHandler {
31
31
return & AssignmentExpiredEventHandler {rpc , proverAddress , proofSubmissionCh , proofContestCh , contesterMode }
@@ -60,7 +60,7 @@ func (h *AssignmentExpiredEventHandler) Handle(
60
60
61
61
// If there is no contester, we submit a contest to protocol.
62
62
if proofStatus .CurrentTransitionState .Contester == rpc .ZeroAddress {
63
- h .proofContestCh <- & proofSubmitter .ContestRequestBody {
63
+ h .proofContestCh <- & proofProducer .ContestRequestBody {
64
64
BlockID : e .BlockId ,
65
65
ProposedIn : new (big.Int ).SetUint64 (e .Raw .BlockNumber ),
66
66
ParentHash : proofStatus .ParentHeader .Hash (),
@@ -72,7 +72,7 @@ func (h *AssignmentExpiredEventHandler) Handle(
72
72
}
73
73
74
74
go func () {
75
- h .proofSubmissionCh <- & proofSubmitter .ProofRequestBody {
75
+ h .proofSubmissionCh <- & proofProducer .ProofRequestBody {
76
76
Tier : proofStatus .CurrentTransitionState .Tier + 1 ,
77
77
Event : e ,
78
78
}
@@ -82,7 +82,7 @@ func (h *AssignmentExpiredEventHandler) Handle(
82
82
}
83
83
84
84
go func () {
85
- h .proofSubmissionCh <- & proofSubmitter .ProofRequestBody {Tier : e .Meta .MinTier , Event : e }
85
+ h .proofSubmissionCh <- & proofProducer .ProofRequestBody {Tier : e .Meta .MinTier , Event : e }
86
86
}()
87
87
return nil
88
88
}
0 commit comments