From 92bb8743274f47618712800ce83a1945f50b66a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 9 Jun 2021 12:17:18 +0200 Subject: [PATCH] Use correct batch fee config in commit batcher Co-authored-by: Aayush Rajasekaran --- extern/storage-sealing/commit_batch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/storage-sealing/commit_batch.go b/extern/storage-sealing/commit_batch.go index d025dc655..b991eaa8d 100644 --- a/extern/storage-sealing/commit_batch.go +++ b/extern/storage-sealing/commit_batch.go @@ -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)