Merge pull request #3182 from poanetwork/besu-revert-reason

Besu: support revertReason key in eth_getTransactionReceipt endpoint
pull/3203/head
Victor Baranov 4 years ago committed by GitHub
commit 3907fa0c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex
  3. 2
      apps/indexer/lib/indexer/block/fetcher.ex

@ -11,6 +11,7 @@
- [#3192](https://github.com/poanetwork/blockscout/pull/3192) - Dropdown menu doesn't open at "not found" page
- [#3190](https://github.com/poanetwork/blockscout/pull/3190) - Contract log/method decoded view improvements: eliminate horizontal scroll, remove excess borders, whitespaces
- [#3185](https://github.com/poanetwork/blockscout/pull/3185) - Transaction page: decoding logs from nested contracts calls
- [#3182](https://github.com/poanetwork/blockscout/pull/3182) - Besu: support revertReason key in eth_getTransactionReceipt endpoint
- [#3178](https://github.com/poanetwork/blockscout/pull/3178) - Fix permanent fetching tokens... when read/write proxy tab is active
- [#3178](https://github.com/poanetwork/blockscout/pull/3178) - Fix unavailable navbar menu when read/write proxy tab is active

@ -253,7 +253,7 @@ defmodule EthereumJSONRPC.Receipt do
# hash format
# gas is passed in from the `t:EthereumJSONRPC.Transaction.params/0` to allow pre-Byzantium status to be derived
defp entry_to_elixir({key, _} = entry)
when key in ~w(blockHash contractAddress from gas logsBloom root to transactionHash),
when key in ~w(blockHash contractAddress from gas logsBloom root to transactionHash revertReason),
do: {:ok, entry}
defp entry_to_elixir({key, quantity})

@ -434,7 +434,7 @@ defmodule Indexer.Block.Fetcher do
{:ok, beneficiary_address} = Chain.string_to_address_hash(beneficiary.address_hash)
"0x" <> minted_hex = beneficiary.reward
{minted, _} = Integer.parse(minted_hex, 16)
{minted, _} = if minted_hex == "", do: {0, ""}, else: Integer.parse(minted_hex, 16)
if block_miner_payout_address && beneficiary_address.bytes == block_miner_payout_address.bytes do
gas_payment = gas_payment(beneficiary, transactions_by_block_number)

Loading…
Cancel
Save