From 81e2124ea20503b70fac726868e3bbefd8c02d73 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Tue, 28 Jul 2015 17:14:51 +0200 Subject: improved error detection and handling for NewTransactionFromBytes integrated review comments --- core/types/transaction.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core') 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) } -- cgit v1.2.3