diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2016-07-11 17:58:10 +0800 |
---|---|---|
committer | zsfelfoldi <zsfelfoldi@gmail.com> | 2016-07-11 18:35:23 +0800 |
commit | 00787fe7818b7baaa95ef7928b5101df2d052dce (patch) | |
tree | ac4322a7634a9981815098cc91440d6a9156f329 /core/types | |
parent | 2b94d7fc7fa93ecfd5ab6ddaa0c7bf4d2224d2be (diff) | |
download | go-tangerine-00787fe7818b7baaa95ef7928b5101df2d052dce.tar.gz go-tangerine-00787fe7818b7baaa95ef7928b5101df2d052dce.tar.zst go-tangerine-00787fe7818b7baaa95ef7928b5101df2d052dce.zip |
core: added CheckNonce() to Message interface
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/transaction.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index b99d3a716..c71c98aa7 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -113,6 +113,7 @@ func (tx *Transaction) Gas() *big.Int { return new(big.Int).Set(tx.data.Gas func (tx *Transaction) GasPrice() *big.Int { return new(big.Int).Set(tx.data.Price) } func (tx *Transaction) Value() *big.Int { return new(big.Int).Set(tx.data.Amount) } func (tx *Transaction) Nonce() uint64 { return tx.data.AccountNonce } +func (tx *Transaction) CheckNonce() bool { return true } func (tx *Transaction) To() *common.Address { if tx.data.Recipient == nil { |