mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix : TestRPCGetTransactionReceiptsByBlock
This commit is contained in:
parent
7839c39005
commit
e9916cb555
2 changed files with 1 additions and 11 deletions
|
|
@ -703,12 +703,7 @@ func (s *BlockChainAPI) GetTransactionReceiptsByBlock(ctx context.Context, block
|
||||||
for idx, receipt := range receipts {
|
for idx, receipt := range receipts {
|
||||||
tx := txs[idx]
|
tx := txs[idx]
|
||||||
|
|
||||||
var signer types.Signer = types.FrontierSigner{}
|
signer := types.MakeSigner(s.b.ChainConfig(), block.Number(), block.Time())
|
||||||
|
|
||||||
if tx.Protected() {
|
|
||||||
signer = types.NewEIP155Signer(tx.ChainId())
|
|
||||||
}
|
|
||||||
|
|
||||||
from, _ := types.Sender(signer, tx)
|
from, _ := types.Sender(signer, tx)
|
||||||
|
|
||||||
fields := map[string]interface{}{
|
fields := map[string]interface{}{
|
||||||
|
|
|
||||||
|
|
@ -1737,7 +1737,6 @@ func TestRPCGetTransactionReceiptsByBlock(t *testing.T) {
|
||||||
"blockNumber": "0x1",
|
"blockNumber": "0x1",
|
||||||
"contractAddress": null,
|
"contractAddress": null,
|
||||||
"cumulativeGasUsed": "0x5208",
|
"cumulativeGasUsed": "0x5208",
|
||||||
"effectiveGasPrice": "0x342770c0",
|
|
||||||
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
"gasUsed": "0x5208",
|
"gasUsed": "0x5208",
|
||||||
"logs": [
|
"logs": [
|
||||||
|
|
@ -1774,7 +1773,6 @@ func TestRPCGetTransactionReceiptsByBlock(t *testing.T) {
|
||||||
"blockNumber": "0x1",
|
"blockNumber": "0x1",
|
||||||
"contractAddress": "0xae9bea628c4ce503dcfd7e305cab4e29e7476592",
|
"contractAddress": "0xae9bea628c4ce503dcfd7e305cab4e29e7476592",
|
||||||
"cumulativeGasUsed": "0x12156",
|
"cumulativeGasUsed": "0x12156",
|
||||||
"effectiveGasPrice": "0x342770c0",
|
|
||||||
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
"gasUsed": "0xcf4e",
|
"gasUsed": "0xcf4e",
|
||||||
"logs": [],
|
"logs": [],
|
||||||
|
|
@ -1794,7 +1792,6 @@ func TestRPCGetTransactionReceiptsByBlock(t *testing.T) {
|
||||||
"blockNumber": "0x1",
|
"blockNumber": "0x1",
|
||||||
"contractAddress": null,
|
"contractAddress": null,
|
||||||
"cumulativeGasUsed": "0x17f7e",
|
"cumulativeGasUsed": "0x17f7e",
|
||||||
"effectiveGasPrice": "0x342770c0",
|
|
||||||
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
"gasUsed": "0x5e28",
|
"gasUsed": "0x5e28",
|
||||||
"logs": [
|
"logs": [
|
||||||
|
|
@ -1830,7 +1827,6 @@ func TestRPCGetTransactionReceiptsByBlock(t *testing.T) {
|
||||||
"blockNumber": "0x1",
|
"blockNumber": "0x1",
|
||||||
"contractAddress": null,
|
"contractAddress": null,
|
||||||
"cumulativeGasUsed": "0x1d30b",
|
"cumulativeGasUsed": "0x1d30b",
|
||||||
"effectiveGasPrice": "0x342772b4",
|
|
||||||
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
"gasUsed": "0x538d",
|
"gasUsed": "0x538d",
|
||||||
"logs": [
|
"logs": [
|
||||||
|
|
@ -1867,7 +1863,6 @@ func TestRPCGetTransactionReceiptsByBlock(t *testing.T) {
|
||||||
"blockNumber": "0x1",
|
"blockNumber": "0x1",
|
||||||
"contractAddress": "0xfdaa97661a584d977b4d3abb5370766ff5b86a18",
|
"contractAddress": "0xfdaa97661a584d977b4d3abb5370766ff5b86a18",
|
||||||
"cumulativeGasUsed": "0x2b325",
|
"cumulativeGasUsed": "0x2b325",
|
||||||
"effectiveGasPrice": "0x342770c0",
|
|
||||||
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
"from": "0x703c4b2bd70c169f5717101caee543299fc946c7",
|
||||||
"gasUsed": "0xe01a",
|
"gasUsed": "0xe01a",
|
||||||
"logs": [],
|
"logs": [],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue