Skip to content

Commit

Permalink
FVM: Use MaxInt64 for Implicit Message gas limits
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jul 15, 2022
1 parent d4cdd82 commit 7cd0ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chain/vm/fvm.go
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"fmt"
"io"
"math"
"os"
"sort"
"sync"
Expand Down Expand Up @@ -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) {
start := build.Clock.Now()
cmsg.GasLimit = math.MaxInt64 / 2
vmMsg := cmsg.VMMessage()
msgBytes, err := vmMsg.Serialize()
if err != nil {
Expand Down

0 comments on commit 7cd0ce4

Please sign in to comment.