aboutsummaryrefslogtreecommitdiffstats
path: root/core/types
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-19 04:58:26 +0800
committerobscuren <geffobscura@gmail.com>2014-12-19 04:58:26 +0800
commit198cc69357a0f25ae486a041786e1239c6f5ab0f (patch)
tree39f4b8c4a8b8360d2fe2fc5583438f948e095524 /core/types
parent5ad473d7581b92811c3a3e035274a82fc5568f57 (diff)
downloadgo-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar.gz
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar.bz2
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar.lz
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar.xz
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.tar.zst
go-tangerine-198cc69357a0f25ae486a041786e1239c6f5ab0f.zip
Gas corrections and vm fixes
Diffstat (limited to 'core/types')
-rw-r--r--core/types/transaction.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 21d455f2e..c64fb69f0 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -46,15 +46,6 @@ func NewTransactionFromValue(val *ethutil.Value) *Transaction {
return tx
}
-func (self *Transaction) GasValue() *big.Int {
- return new(big.Int).Mul(self.gas, self.gasPrice)
-}
-
-func (self *Transaction) TotalValue() *big.Int {
- v := self.GasValue()
- return v.Add(v, self.value)
-}
-
func (tx *Transaction) Hash() []byte {
data := []interface{}{tx.Nonce, tx.gasPrice, tx.gas, tx.recipient, tx.Value, tx.Data}