From 6292056503173aca7e3d47f33365b32b7ac17479 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Wed, 23 Jun 2021 15:52:31 +0100 Subject: [PATCH] Remove root from eth_getTransactionReceipt (#2211) * Remove root from eth_getTransactionReceipt * Simplifaction of status Co-authored-by: Alex Sharp Co-authored-by: Alexey Sharp --- cmd/rpcdaemon/commands/eth_receipts.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/rpcdaemon/commands/eth_receipts.go b/cmd/rpcdaemon/commands/eth_receipts.go index a964bc0f6..690c8e9f9 100644 --- a/cmd/rpcdaemon/commands/eth_receipts.go +++ b/cmd/rpcdaemon/commands/eth_receipts.go @@ -304,12 +304,8 @@ func marshalReceipt(receipt *types.Receipt, txn types.Transaction) map[string]in "logsBloom": types.CreateBloom(types.Receipts{receipt}), } - // Assign receipt status or post state. - if len(receipt.PostState) > 0 { - fields["root"] = hexutil.Bytes(receipt.PostState) - } else { - fields["status"] = hexutil.Uint(receipt.Status) - } + // Assign receipt status. + fields["status"] = receipt.Status if receipt.Logs == nil { fields["logs"] = [][]*types.Log{} }