This repository was archived by the owner on May 11, 2024. It is now read-only.
File tree 4 files changed +11
-1
lines changed
driver/txlist_decompressor
4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
"github.com/ethereum/go-ethereum/core/types"
7
7
"github.com/ethereum/go-ethereum/log"
8
8
"github.com/ethereum/go-ethereum/rlp"
9
+
9
10
"github.com/taikoxyz/taiko-client/internal/utils"
10
11
)
11
12
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"github.com/ethereum/go-ethereum/params"
14
14
"github.com/ethereum/go-ethereum/rlp"
15
15
"github.com/stretchr/testify/require"
16
+
16
17
"github.com/taikoxyz/taiko-client/internal/utils"
17
18
)
18
19
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ func (p *Prover) initProofSubmitters(
110
110
L1Endpoint : p .cfg .RaikoL1Endpoint ,
111
111
L1BeaconEndpoint : p .cfg .RaikoL1BeaconEndpoint ,
112
112
L2Endpoint : p .cfg .RaikoL2Endpoint ,
113
+ ProofType : proofProducer .ProofTypeSgx ,
113
114
Dummy : p .cfg .Dummy ,
114
115
}
115
116
case encoding .TierGuardianID :
@@ -118,6 +119,7 @@ func (p *Prover) initProofSubmitters(
118
119
L1Endpoint : p .cfg .RaikoL1Endpoint ,
119
120
L1BeaconEndpoint : p .cfg .RaikoL1BeaconEndpoint ,
120
121
L2Endpoint : p .cfg .RaikoL2Endpoint ,
122
+ ProofType : proofProducer .ProofTypeCpu ,
121
123
Dummy : p .cfg .Dummy ,
122
124
}, p .cfg .EnableLivenessBondProof )
123
125
default :
Original file line number Diff line number Diff line change @@ -21,12 +21,18 @@ import (
21
21
"github.com/taikoxyz/taiko-client/internal/metrics"
22
22
)
23
23
24
+ const (
25
+ ProofTypeSgx = "sgx"
26
+ ProofTypeCpu = "native"
27
+ )
28
+
24
29
// SGXProofProducer generates a SGX proof for the given block.
25
30
type SGXProofProducer struct {
26
31
RaikoHostEndpoint string // a proverd RPC endpoint
27
32
L1Endpoint string // a L1 node RPC endpoint
28
33
L1BeaconEndpoint string // a L1 beacon node RPC endpoint
29
34
L2Endpoint string // a L2 execution engine's RPC endpoint
35
+ ProofType string // Proof type
30
36
Dummy bool
31
37
DummyProofProducer
32
38
}
@@ -161,7 +167,7 @@ func (s *SGXProofProducer) requestProof(opts *ProofRequestOptions) (*RaikoHostOu
161
167
ID : common .Big1 ,
162
168
Method : "proof" ,
163
169
Params : []* SGXRequestProofBodyParam {{
164
- Type : "sgx" ,
170
+ Type : s . ProofType ,
165
171
Block : opts .BlockID ,
166
172
L2RPC : s .L2Endpoint ,
167
173
L1RPC : s .L1Endpoint ,
You can’t perform that action at this time.
0 commit comments