Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Sep 19, 2023
1 parent 008ef9e commit 6ffe648
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions node/src/exchange/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,54 +58,6 @@ impl HeaderResponseExt for HeaderResponse {
}
}

/*
fn gen_extended_header(height: u64) -> ExtendedHeader {
RawExtendedHeader {
header: Some(
Header {
version: Version { block: 11, app: 1 },
chain_id: "private".to_string().try_into().unwrap(),
height: height.try_into().unwrap(),
time: Time::now(),
last_block_id: None,
last_commit_hash: Hash::default(),
data_hash: Hash::default(),
validators_hash: Hash::default(),
next_validators_hash: Hash::default(),
consensus_hash: Hash::default(),
app_hash: AppHash::default(),
last_results_hash: Hash::default(),
evidence_hash: Hash::default(),
proposer_address: tendermint::account::Id::new([0; 20]),
}
.into(),
),
commit: Some(
Commit {
height: height.try_into().unwrap(),
block_id: tendermint::block::Id {
hash: Hash::Sha256(rand::random()),
..Default::default()
},
..Default::default()
}
.into(),
),
validator_set: Some(ValidatorSet::new(Vec::new(), None).into()),
dah: Some(
DataAvailabilityHeader {
row_roots: Vec::new(),
column_roots: Vec::new(),
hash: [0; 32],
}
.into(),
),
}
.try_into()
.unwrap()
}
*/

pub(super) trait ExtendedHeaderExt {
fn to_header_response(&self) -> HeaderResponse;
}
Expand Down

0 comments on commit 6ffe648

Please sign in to comment.