Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
gateway: set uncles_hash to empty list (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjgilbert authored Aug 9, 2019
1 parent 83f72e0 commit a016c4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateway/src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use ethcore::{
use ethereum_types::{H256, H64, U256};
use failure::{format_err, Error, Fallible};
use futures::{future, prelude::*};
use hash::KECCAK_EMPTY_LIST_RLP;
use io_context::Context;
use lazy_static::lazy_static;
use parity_rpc::v1::types::{
Expand Down Expand Up @@ -627,7 +628,7 @@ impl EthereumBlock {
hash: Some(block_hash.as_ref().into()),
size: None,
parent_hash: header.previous_hash.as_ref().into(),
uncles_hash: Default::default(),
uncles_hash: KECCAK_EMPTY_LIST_RLP.into(), /* empty list */
author: Default::default(),
miner: Default::default(),
state_root: header.state_root.as_ref().into(),
Expand Down

0 comments on commit a016c4a

Please sign in to comment.