Skip to content

Commit

Permalink
Don't ban when sending pruned blocks (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
someone235 authored Feb 15, 2021
1 parent e78cdff commit 2908a46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/protocol/flows/blockrelay/handle_relay_invs.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ func (flow *handleRelayInvsFlow) start() error {
log.Debugf("Processing block %s", inv.Hash)
missingParents, blockInsertionResult, err := flow.processBlock(block)
if err != nil {
if errors.Is(err, ruleerrors.ErrPrunedBlock) {
log.Infof("Ignoring pruned block %s", inv.Hash)
continue
}

if errors.Is(err, ruleerrors.ErrDuplicateBlock) {
log.Infof("Ignoring duplicate block %s", inv.Hash)
continue
Expand Down

0 comments on commit 2908a46

Please sign in to comment.