aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2016-07-11 17:58:10 +0800
committerzsfelfoldi <zsfelfoldi@gmail.com>2016-07-11 18:35:23 +0800
commit00787fe7818b7baaa95ef7928b5101df2d052dce (patch)
treeac4322a7634a9981815098cc91440d6a9156f329 /eth
parent2b94d7fc7fa93ecfd5ab6ddaa0c7bf4d2224d2be (diff)
downloaddexon-00787fe7818b7baaa95ef7928b5101df2d052dce.tar.gz
dexon-00787fe7818b7baaa95ef7928b5101df2d052dce.tar.zst
dexon-00787fe7818b7baaa95ef7928b5101df2d052dce.zip
core: added CheckNonce() to Message interface
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api.go b/eth/api.go
index 74a815100..3b7abb69a 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -424,7 +424,6 @@ func (api *PrivateDebugAPI) traceBlock(block *types.Block, config *vm.Config) (b
// callmsg is the message type used for call transations.
type callmsg struct {
addr common.Address
- nonce uint64
to *common.Address
gas, gasPrice *big.Int
value *big.Int
@@ -434,7 +433,8 @@ type callmsg struct {
// accessor boilerplate to implement core.Message
func (m callmsg) From() (common.Address, error) { return m.addr, nil }
func (m callmsg) FromFrontier() (common.Address, error) { return m.addr, nil }
-func (m callmsg) Nonce() uint64 { return m.nonce }
+func (m callmsg) Nonce() uint64 { return 0 }
+func (m callmsg) CheckNonce() bool { return false }
func (m callmsg) To() *common.Address { return m.to }
func (m callmsg) GasPrice() *big.Int { return m.gasPrice }
func (m callmsg) Gas() *big.Int { return m.gas }