fix priority forkchoice, in case some nodes are faster than others
This commit is contained in:
@@ -73,10 +73,10 @@ abstract class AbstractHead @JvmOverloads constructor(
|
|||||||
completed = false
|
completed = false
|
||||||
}
|
}
|
||||||
return source
|
return source
|
||||||
.distinctUntilChanged {
|
.filter {
|
||||||
it.hash
|
log.debug("Filtering block $upstreamId block $it")
|
||||||
|
forkChoice.filter(it)
|
||||||
}
|
}
|
||||||
.filter { forkChoice.filter(it) }
|
|
||||||
.doFinally {
|
.doFinally {
|
||||||
// close internal stream if upstream is finished, otherwise it gets stuck,
|
// close internal stream if upstream is finished, otherwise it gets stuck,
|
||||||
// but technically it should never happen during normal work, only when the Head
|
// but technically it should never happen during normal work, only when the Head
|
||||||
|
|||||||
Reference in New Issue
Block a user