You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
[CSL-1822] Print header of received block less often
Before this commit online and up-to-date node was printing header of a
newly created block received from the network 5 times. It's quite a lot,
especially considering that each header takes about 9 lines.
Few observations:
1. Printing header in 'handleUnsolicitedHeader' makes more sense than
in 'addHeaderToBlockRequestQueue', because it's called earlier
and allows us to inspect header before we do something with it.
2. Printing header after we processed it is not useful, because we must
have printed it already. Printing hash is enough.
3. 'handleContinues' and 'handleAlternative' are called after we receive an
unsolicited header. It implies that we have printed it already, so we can
print its hash.
0 commit comments