Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-sjtu committed Jun 24, 2024
1 parent b2562e0 commit 4a28993
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (
monitoredIDFormat = "proof-from-%v-to-%v"

forkId9 = uint64(9)

minParaCount = 2
)

type finalProofMsg struct {
Expand Down Expand Up @@ -209,8 +211,8 @@ func (a *Aggregator) channelParallel(stream prover.AggregatorService_ChannelServ

// We start multi batch proof routines, one aggregate proof routine and one final proof routine in parallel.
paraCount := a.cfg.ParaCount
if paraCount < 2 {
paraCount = 2
if paraCount < minParaCount {
paraCount = minParaCount
}
for i := uint64(0); i < paraCount; i++ {
go a.generateBatchProofRoutine(ctx, prover)
Expand Down
10 changes: 10 additions & 0 deletions docs/config-file/node-config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,16 @@
"description": "Port for the grpc server",
"default": 50081
},
"Parallel": {
"type": "boolean",
"description": "Parallel means send requests to prover in parallel",
"default": false
},
"ParaCount": {
"type": "integer",
"description": "Parallel count for sending requests to prover",
"default": 2
},
"RetryTime": {
"type": "string",
"title": "Duration",
Expand Down

0 comments on commit 4a28993

Please sign in to comment.