aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-07-12 21:07:15 +0800
committerGitHub <noreply@github.com>2016-07-12 21:07:15 +0800
commitf970610c0442a7a4582529c01fb67403cea8bcd6 (patch)
tree332e554e86c45fb116a8f4337877356e7f79a46d /internal
parent68b48cc045c31a3ae321e923194007ad036cf3f0 (diff)
parent00787fe7818b7baaa95ef7928b5101df2d052dce (diff)
downloadgo-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar.gz
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar.bz2
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar.lz
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar.xz
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.tar.zst
go-tangerine-f970610c0442a7a4582529c01fb67403cea8bcd6.zip
Merge pull request #2799 from zsfelfoldi/api-nonce-fix2
core: added CheckNonce() to Message interface
Diffstat (limited to 'internal')
-rw-r--r--internal/ethapi/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 6e888fc93..f604a0ef2 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -534,7 +534,6 @@ func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.A
// 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
@@ -544,7 +543,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 }