Commit 0bf6139
p2p: Avoid an IsAncestorOfBestHeaderOrTip call
Just don't call this function when it won't have any effect.
Note that we can't remove the LookupBlockIndex call, since `last_received_header`
is needed to check if new headers were received (`received_new_header`).1 parent 25c45bb commit 0bf6139
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2919 | 2919 | | |
2920 | 2920 | | |
2921 | 2921 | | |
2922 | | - | |
2923 | | - | |
2924 | | - | |
| 2922 | + | |
2925 | 2923 | | |
2926 | 2924 | | |
2927 | 2925 | | |
| |||
0 commit comments