Merge pull request #1836 from waynewyang/Wdpost-Gaslimit

Set largest gaslimit for wdpost
This commit is contained in:
Łukasz Magiera 2020-05-26 08:53:59 +02:00 committed by GitHub
commit 9641d93615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ import (
"go.opencensus.io/trace"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/types"
)
@ -341,7 +342,8 @@ func (s *WindowPoStScheduler) submitPost(ctx context.Context, proof *miner.Submi
Method: builtin.MethodsMiner.SubmitWindowedPoSt,
Params: enc,
Value: types.NewInt(1000), // currently hard-coded late fee in actor, returned if not late
GasLimit: 10000000, // i dont know help
// TODO: Gaslimit needs to be calculated accurately. Before that, use the largest Gaslimit
GasLimit: build.BlockGasLimit,
GasPrice: types.NewInt(1),
}