diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-29 06:36:00 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-29 20:24:33 +0800 |
commit | 7f83e68b13d573a532dd907a7ff2252241de36e4 (patch) | |
tree | 1950fe312ac37fd75fd979d80c2fff76243a934e /rpc/api/parsing.go | |
parent | 5570b1139839ab48af6c851de809c90920e1e739 (diff) | |
download | go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar.gz go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar.bz2 go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar.lz go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar.xz go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.tar.zst go-tangerine-7f83e68b13d573a532dd907a7ff2252241de36e4.zip |
[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
Diffstat (limited to 'rpc/api/parsing.go')
-rw-r--r-- | rpc/api/parsing.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |