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

gateway: set uncles_hash to empty list #874

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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