Skip to content

Commit

Permalink
require construction seal with at least 1 approval by default (#998)
Browse files Browse the repository at this point in the history
* set default construction seal

* update default chunk alpha
  • Loading branch information
zhangchiqing authored Jul 20, 2021
1 parent f6abaa4 commit cfa08e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion engine/consensus/sealing/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import (

// DefaultRequiredApprovalsForSealConstruction is the default number of approvals required to construct a candidate seal
// for subsequent inclusion in block.
const DefaultRequiredApprovalsForSealConstruction = 0
// when set to 1, it requires at least 1 approval to build a seal
// when set to 0, it can build seal without any approval
const DefaultRequiredApprovalsForSealConstruction = 1

// DefaultEmergencySealingActive is a flag which indicates when emergency sealing is active, this is a temporary measure
// to make fire fighting easier while seal & verification is under development.
Expand Down
3 changes: 1 addition & 2 deletions module/chunks/chunk_assigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import (

// DefaultChunkAssignmentAlpha is the default number of verifiers that should be
// assigned to each chunk.
// DISCLAIMER: the current value is not necessarily suitable for production
const DefaultChunkAssignmentAlpha = 20
const DefaultChunkAssignmentAlpha = 3

// ChunkAssigner implements an instance of the Public Chunk Assignment
// algorithm for assigning chunks to verifier nodes in a deterministic but
Expand Down

0 comments on commit cfa08e7

Please sign in to comment.