Merge pull request #9037 from filecoin-project/asr/implicit-limit

FVM: Use MaxInt64 for Implicit Message gas limits
This commit is contained in:
Aayush Rajasekaran 2022-07-15 15:28:31 -04:00 committed by GitHub
commit e950421e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import (
"context" "context"
"fmt" "fmt"
"io" "io"
"math"
"os" "os"
"sort" "sort"
"sync" "sync"
@ -481,6 +482,7 @@ func (vm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet
func (vm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg *types.Message) (*ApplyRet, error) { func (vm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg *types.Message) (*ApplyRet, error) {
start := build.Clock.Now() start := build.Clock.Now()
cmsg.GasLimit = math.MaxInt64 / 2
vmMsg := cmsg.VMMessage() vmMsg := cmsg.VMMessage()
msgBytes, err := vmMsg.Serialize() msgBytes, err := vmMsg.Serialize()
if err != nil { if err != nil {