fix(sync): don't lose nodes on single download err
All threads resolved!
All threads resolved!
Compare changes
There are no changes yet
No changes between pini and dev
P2pCandidate.dlPromise
promise doesn't resolve on download errors
such as socket timeouts. Each time such an error occurs, the node is lost
for the sync because the 'this.dlPromise.isResolved()' check used for
testing the node's availability never succeeds anymore for this node.
This patch hardens the blocks downloading in two ways:
P2pCandidate.addFailure()
function.No changes between pini and dev