diff --git a/pkg/consensus/payload.go b/pkg/consensus/payload.go index 80f56f0f7..5bfde2a75 100644 --- a/pkg/consensus/payload.go +++ b/pkg/consensus/payload.go @@ -49,6 +49,8 @@ const ( commitType messageType = 0x30 recoveryRequestType messageType = 0x40 recoveryMessageType messageType = 0x41 + + payloadGasLimit = 2000000 // 0.02 GAS ) // ViewNumber implements payload.ConsensusPayload interface. @@ -221,6 +223,7 @@ func (p *Payload) Verify(scriptHash util.Uint160) bool { } v := vm.New() + v.GasLimit = payloadGasLimit v.RegisterInteropGetter(crypto.GetInterop(&interop.Context{Container: p})) v.LoadScript(verification) v.LoadScript(p.Witness.InvocationScript)