feat(lotus-sim): completely pack block
Instead of packing till we see "full". Prove-commits are large, we may have room for some more pre-commits.
This commit is contained in:
parent
dfdafa3c15
commit
0725019bdb
@ -246,10 +246,11 @@ func (ss *simulationState) packMessages(ctx context.Context, cb packFunc) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, mgen := range messageGenerators {
|
for _, mgen := range messageGenerators {
|
||||||
if full, err := mgen(ctx, cb); err != nil {
|
// We're intentionally ignoring the "full" signal so we can try to pack a few more
|
||||||
|
// messages.
|
||||||
|
_, err := mgen(ctx, cb)
|
||||||
|
if err != nil {
|
||||||
return xerrors.Errorf("when packing messages with %s: %w", functionName(mgen), err)
|
return xerrors.Errorf("when packing messages with %s: %w", functionName(mgen), err)
|
||||||
} else if full {
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user