Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Note potential elimination of deserialization step
Browse files Browse the repository at this point in the history
  • Loading branch information
xandkar committed May 16, 2022
1 parent c1ae2b7 commit 7ddc188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blockchain.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,8 @@ build(Height, Blockchain, N, Acc) ->
) ->
[H, ...] when H :: blockchain_block:hash().
build_hash_chain(StopHash, StartBlock, #blockchain{db=DB}, CF) ->
%% TODO Can the following deserialization step be eliminated, if we
%% maintain a rocksdb CF of ChildHash->ParentHash.
Parents =
maps:from_list(
data_stream:pmap_to_bag(
Expand Down

0 comments on commit 7ddc188

Please sign in to comment.