Use correct batch fee config in commit batcher

Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
This commit is contained in:
Łukasz Magiera 2021-06-09 12:17:18 +02:00 committed by GitHub
parent 78171055e7
commit 92bb874327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ func (b *CommitBatcher) processBatch(cfg sealiface.Config) ([]sealiface.CommitBa
return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get miner info: %w", err) return []sealiface.CommitBatchRes{res}, xerrors.Errorf("couldn't get miner info: %w", err)
} }
maxFee := b.feeCfg.MaxPreCommitBatchGasFee.FeeForSectors(len(infos)) maxFee := b.feeCfg.MaxCommitBatchGasFee.FeeForSectors(len(infos))
goodFunds := big.Add(maxFee, collateral) goodFunds := big.Add(maxFee, collateral)
from, _, err := b.addrSel(b.mctx, mi, api.CommitAddr, goodFunds, collateral) from, _, err := b.addrSel(b.mctx, mi, api.CommitAddr, goodFunds, collateral)