core, eth, rpc: proper gas used. Closes #1417

Added some additional backward compatibility code for old receipts
This commit is contained in:
Jeffrey Wilcke
2015-07-06 20:59:12 +02:00
parent 4c30f0f9ac
commit 666a7dda36
6 changed files with 13 additions and 9 deletions

View File

@ -615,7 +615,6 @@ func (self *ethApi) GetTransactionReceipt(req *shared.Request) (interface{}, err
v := NewReceiptRes(rec)
v.BlockHash = newHexData(bhash)
v.BlockNumber = newHexNum(bnum)
v.GasUsed = newHexNum(tx.Gas().Bytes())
v.TransactionIndex = newHexNum(txi)
return v, nil
}