Skip to content

Commit

Permalink
Avoid shadow error in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Jan 2, 2025
1 parent a448e4c commit 962a393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silkworm/sync/internals/chain_elements.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ struct Link {
bool persisted = false; // Whether this link comes from the database record
bool preverified = false; // Ancestor of pre-verified header

Link(BlockHeader h, bool persisted)
Link(BlockHeader h, bool persist)
: block_num{h.number},
hash{h.hash()}, // save computation
persisted{persisted} {
persisted{persist} {
header = std::make_shared<BlockHeader>(std::move(h));
}

Expand Down

0 comments on commit 962a393

Please sign in to comment.