Merge pull request #1836 from waynewyang/Wdpost-Gaslimit
Set largest gaslimit for wdpost
This commit is contained in:
commit
9641d93615
@ -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),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user