aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2015-07-28 23:14:51 +0800
committerBas van Kervel <bas@ethdev.com>2015-07-29 16:30:00 +0800
commit81e2124ea20503b70fac726868e3bbefd8c02d73 (patch)
tree3098746ba76729dbf19e1e04ce7fa091054436e4 /core
parenta281df783d32270c188d05872b8008eb0b74d042 (diff)
downloaddexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar.gz
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar.bz2
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar.lz
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar.xz
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.tar.zst
dexon-81e2124ea20503b70fac726868e3bbefd8c02d73.zip
improved error detection and handling for NewTransactionFromBytes
integrated review comments
Diffstat (limited to 'core')
-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 cc1793112..85b4c6119 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -97,15 +97,6 @@ func NewTransaction(nonce uint64, to common.Address, amount, gasLimit, gasPrice
return &Transaction{data: d}
}
-func NewTransactionFromBytes(data []byte) *Transaction {
- // TODO: remove this function if possible. callers would
- // much better off decoding into transaction directly.
- // it's not that hard.
- tx := new(Transaction)
- rlp.DecodeBytes(data, tx)
- return tx
-}
-
func (tx *Transaction) EncodeRLP(w io.Writer) error {
return rlp.Encode(w, &tx.data)
}