Skip to content

Commit

Permalink
fix header hash
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jul 13, 2022
1 parent 50b5e77 commit bb63498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/src/lib/node/ledger/shims/abcipp_shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ impl AbcippShim {
self.begin_block_request.take().unwrap().into();
let hash = self.get_hash();
end_block_request.hash = BlockHash::from(hash.clone());
end_block_request.header.hash = hash;
end_block_request.txs = txs;
self.service
.call(Request::FinalizeBlock(end_block_request))
Expand Down
3 changes: 2 additions & 1 deletion apps/src/lib/node/ledger/shims/abcipp_shim_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ pub mod shim {
FinalizeBlock {
hash: BlockHash::default(),
header: Header {
hash: Hash::default(),
hash: Hash::try_from(header.app_hash.as_slice())
.unwrap_or_default(),
time: DateTimeUtc::try_from(header.time.unwrap())
.unwrap(),
next_validators_hash: Hash::try_from(
Expand Down

0 comments on commit bb63498

Please sign in to comment.