Commit dbb89dc
committed
Eliminate unnecessary call to CheckBlock
ProcessNewBlock would return failure early if CheckBlock failed, before
calling AcceptBlock. AcceptBlock also calls CheckBlock, and upon failure
would update mapBlockIndex to indicate that a block was failed. By returning
early in ProcessNewBlock, we were not marking blocks that fail a check in
CheckBlock as permanently failed, and thus would continue to re-request and
reprocess them.1 parent 196ad69 commit dbb89dc
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3171 | 3171 | | |
3172 | 3172 | | |
3173 | 3173 | | |
3174 | | - | |
3175 | | - | |
3176 | | - | |
3177 | 3174 | | |
3178 | 3175 | | |
3179 | 3176 | | |
3180 | 3177 | | |
3181 | | - | |
3182 | | - | |
3183 | | - | |
3184 | 3178 | | |
3185 | 3179 | | |
3186 | 3180 | | |
| |||
0 commit comments