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
co-authored by Aayush Rajasekaran
parent 78171055e7
commit 92bb874327
+1 -1
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)
}
maxFee := b.feeCfg.MaxPreCommitBatchGasFee.FeeForSectors(len(infos))
maxFee := b.feeCfg.MaxCommitBatchGasFee.FeeForSectors(len(infos))
goodFunds := big.Add(maxFee, collateral)
from, _, err := b.addrSel(b.mctx, mi, api.CommitAddr, goodFunds, collateral)