Address comments
This commit is contained in:
parent
96ddd756f8
commit
9653584d73
@ -401,11 +401,11 @@
|
|||||||
# env var: LOTUS_PROVING_MAXPARTITIONSPERRECOVERYMESSAGE
|
# env var: LOTUS_PROVING_MAXPARTITIONSPERRECOVERYMESSAGE
|
||||||
#MaxPartitionsPerRecoveryMessage = 0
|
#MaxPartitionsPerRecoveryMessage = 0
|
||||||
|
|
||||||
# Enable single partition per Post Message for partitions containing recovery sectors
|
# Enable single partition per PoSt Message for partitions containing recovery sectors
|
||||||
#
|
#
|
||||||
# In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
# In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
||||||
# too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
# too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
||||||
# with recovery sectors in the post message
|
# with recovering sectors in the post message
|
||||||
#
|
#
|
||||||
# Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
# Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
||||||
# to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)
|
# to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)
|
||||||
|
@ -719,11 +719,11 @@ resulting in more total gas use (but each message will have lower gas limit)`,
|
|||||||
Name: "SingleRecoveringPartitionPerPostMessage",
|
Name: "SingleRecoveringPartitionPerPostMessage",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
|
|
||||||
Comment: `Enable single partition per Post Message for partitions containing recovery sectors
|
Comment: `Enable single partition per PoSt Message for partitions containing recovery sectors
|
||||||
|
|
||||||
In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
||||||
too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
||||||
with recovery sectors in the post message
|
with recovering sectors in the post message
|
||||||
|
|
||||||
Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
||||||
to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)`,
|
to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)`,
|
||||||
|
@ -293,11 +293,11 @@ type ProvingConfig struct {
|
|||||||
// resulting in more total gas use (but each message will have lower gas limit)
|
// resulting in more total gas use (but each message will have lower gas limit)
|
||||||
MaxPartitionsPerRecoveryMessage int
|
MaxPartitionsPerRecoveryMessage int
|
||||||
|
|
||||||
// Enable single partition per Post Message for partitions containing recovery sectors
|
// Enable single partition per PoSt Message for partitions containing recovery sectors
|
||||||
//
|
//
|
||||||
// In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
// In cases when submitting PoSt messages which contain recovering sectors, the default network limit may still be
|
||||||
// too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
// too high to fit in the block gas limit. In those cases, it becomes useful to only house the single partition
|
||||||
// with recovery sectors in the post message
|
// with recovering sectors in the post message
|
||||||
//
|
//
|
||||||
// Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
// Note that setting this value lower may result in less efficient gas use - more messages will be sent,
|
||||||
// to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)
|
// to prove each deadline, resulting in more total gas use (but each message will have lower gas limit)
|
||||||
|
@ -529,8 +529,8 @@ func (s *WindowPoStScheduler) BatchPartitions(partitions []api.Partition, nv net
|
|||||||
batches := [][]api.Partition{}
|
batches := [][]api.Partition{}
|
||||||
|
|
||||||
currBatch := []api.Partition{}
|
currBatch := []api.Partition{}
|
||||||
for i := 0; i < len(partitions); i++ {
|
for _, partition := range partitions {
|
||||||
recSectors, err := partitions[i].RecoveringSectors.Count()
|
recSectors, err := partition.RecoveringSectors.Count()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -542,13 +542,13 @@ func (s *WindowPoStScheduler) BatchPartitions(partitions []api.Partition, nv net
|
|||||||
batches = append(batches, currBatch)
|
batches = append(batches, currBatch)
|
||||||
currBatch = []api.Partition{}
|
currBatch = []api.Partition{}
|
||||||
}
|
}
|
||||||
batches = append(batches, []api.Partition{partitions[i]})
|
batches = append(batches, []api.Partition{partition})
|
||||||
} else {
|
} else {
|
||||||
if len(currBatch) >= partitionsPerMsg {
|
if len(currBatch) >= partitionsPerMsg {
|
||||||
batches = append(batches, currBatch)
|
batches = append(batches, currBatch)
|
||||||
currBatch = []api.Partition{}
|
currBatch = []api.Partition{}
|
||||||
}
|
}
|
||||||
currBatch = append(currBatch, partitions[i])
|
currBatch = append(currBatch, partition)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(currBatch) > 0 {
|
if len(currBatch) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user