From 7f83e68b13d573a532dd907a7ff2252241de36e4 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Sun, 28 Feb 2016 23:36:00 +0100 Subject: [release/1.3.4] eth: fixed homestead tx check When a block is queried for retrieval we should add a check whether the block falls within the frontier rules. If we'd always use `From` retrieving transaction might fail. This PR temporarily changes everything to `FromFrontier` (safe!). This is a backport of c616391df2dda2c21b0a8eed03531a7d44669421 --- rpc/api/parsing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/api/parsing.go') diff --git a/rpc/api/parsing.go b/rpc/api/parsing.go index 7667616ff..21ece355e 100644 --- a/rpc/api/parsing.go +++ b/rpc/api/parsing.go @@ -349,7 +349,7 @@ func NewTransactionRes(tx *types.Transaction) *TransactionRes { // v.BlockHash = // v.BlockNumber = // v.TxIndex = - from, _ := tx.From() + from, _ := tx.FromFrontier() v.From = newHexData(from) v.To = newHexData(tx.To()) v.Value = newHexNum(tx.Value()) -- cgit v1.2.3