aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-14 20:43:22 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-14 21:16:06 +0800
commitb10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5 (patch)
tree9acc32d1edca04b8a2b2894b3177f31c78f8298f /light
parentd8e2e9a41fa0283c8e757a6149c0257d2f8a1ad9 (diff)
downloadgo-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.gz
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.bz2
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.lz
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.xz
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.zst
go-tangerine-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.zip
core/types: turn off nonce checking for Call messages
Diffstat (limited to 'light')
-rw-r--r--light/odr_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/light/odr_test.go b/light/odr_test.go
index 1f6bcaeb1..50255a7f3 100644
--- a/light/odr_test.go
+++ b/light/odr_test.go
@@ -167,7 +167,7 @@ func odrContractCall(ctx context.Context, db ethdb.Database, bc *core.BlockChain
from := statedb.GetOrNewStateObject(testBankAddress)
from.SetBalance(common.MaxBig)
- msg := callmsg{types.NewMessage(from.Address(), &testContractAddr, 0, new(big.Int), big.NewInt(1000000), new(big.Int), data)}
+ msg := callmsg{types.NewMessage(from.Address(), &testContractAddr, 0, new(big.Int), big.NewInt(1000000), new(big.Int), data, false)}
vmenv := core.NewEnv(statedb, testChainConfig(), bc, msg, header, vm.Config{})
gp := new(core.GasPool).AddGas(common.MaxBig)
ret, _, _ := core.ApplyMessage(vmenv, msg, gp)
@@ -180,7 +180,7 @@ func odrContractCall(ctx context.Context, db ethdb.Database, bc *core.BlockChain
if err == nil {
from.SetBalance(common.MaxBig)
- msg := callmsg{types.NewMessage(from.Address(), &testContractAddr, 0, new(big.Int), big.NewInt(1000000), new(big.Int), data)}
+ msg := callmsg{types.NewMessage(from.Address(), &testContractAddr, 0, new(big.Int), big.NewInt(1000000), new(big.Int), data, false)}
vmenv := NewEnv(ctx, state, testChainConfig(), lc, msg, header, vm.Config{})
gp := new(core.GasPool).AddGas(common.MaxBig)
ret, _, _ := core.ApplyMessage(vmenv, msg, gp)