Repository navigation
refactor: Pass block reference instead of pointer to PeerManagerImpl::BlockRequested - #22221
Conversation
|
From #22141 (comment) |
|
Code review ACK fa334b4 |
|
crACK fa334b4 |
|
Concept ACK Candidates for similar treatment can be found using the |
|
This change may not be entirely without consequence (though I'm not sure if it really matters): #20295 (comment) |
|
There was an |
(from #20295 (comment)) I think this is fine. Since headers-first syncing, we'll never attempt to download a block if we don't already have its header. Adding the assert in #22141 didn't add any new assumptions. All callers of |
This allows to remove an assert and at the same time make it more obvious that the block is never nullptr.
Also, add missing
{}while touching the function.