Merge pull request #6563 from filecoin-project/asr/batch-starter

Always flush when timer goes off
This commit is contained in:
Łukasz Magiera
2021-06-23 19:19:30 +02:00
committed by GitHub
5 changed files with 9 additions and 21 deletions
-2
View File
@@ -93,7 +93,6 @@ type SealingConfig struct {
BatchPreCommits bool
// maximum precommit batch size - batches will be sent immediately above this size
MaxPreCommitBatch int
MinPreCommitBatch int
// how long to wait before submitting a batch after crossing the minimum batch size
PreCommitBatchWait Duration
// time buffer for forceful batch submission before sectors/deal in batch would start expiring
@@ -285,7 +284,6 @@ func DefaultStorageMiner() *StorageMiner {
FinalizeEarly: false,
BatchPreCommits: true,
MinPreCommitBatch: 1, // we must have at least one precommit to batch
MaxPreCommitBatch: miner5.PreCommitSectorBatchMaxSize, // up to 256 sectors
PreCommitBatchWait: Duration(24 * time.Hour), // this should be less than 31.5 hours, which is the expiration of a precommit ticket
PreCommitBatchSlack: Duration(3 * time.Hour), // time buffer for forceful batch submission before sectors/deals in batch would start expiring, higher value will lower the chances for message fail due to expiration