Merge pull request #3702 from filecoin-project/steb/remove-hard-coded-late-fee

Remove hard-coded late-fee in window PoSt
This commit is contained in:
Łukasz Magiera 2020-09-09 20:50:57 +02:00 committed by GitHub
commit 311d20eeb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -490,7 +490,7 @@ func (s *WindowPoStScheduler) submitPost(ctx context.Context, proof *miner.Submi
From: s.worker,
Method: builtin.MethodsMiner.SubmitWindowedPoSt,
Params: enc,
Value: types.NewInt(1000), // currently hard-coded late fee in actor, returned if not late
Value: types.NewInt(0),
}
spec := &api.MessageSendSpec{MaxFee: abi.TokenAmount(s.feeCfg.MaxWindowPoStGasFee)}
s.setSender(ctx, msg, spec)