mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Adjust Extensible verification height interval #1309
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AnnaShaleva on GitHub (May 28, 2024).
Based on the recent experiments with time-constrained dBFT, the following behaviour pattern was discovered: with low MillisecondsPerBlock setting often CVs happen due to peer disconnections:
It's caused by the lack of synchronization between peers and by the fact that network delays are comparable with MillisecondsPerBlock. We need to adjust the rule for Extensible verification and likely do not disconnect from peers that are not far ahead from the node:
nspcc-dev/neo-go@0b136c1c9c/pkg/network/extpool/pool.go (L83-L91)@roman-khimov commented on GitHub (Jun 24, 2024):
ValidBlockStartis always zero for us, so it's just aboutValidBlockEnd, additional tolerance is needed or better a counter of errors (in the upper layer). The purpose of disconnect is mostly to avoid malicious nodes spamming us with bad things. We can tolerate some amount of some errors per some amount of time. There are grave protocol violations (like not performing a handshake properly) and there are these softer ones like someone can send a stale transaction or a too new extensible.@roman-khimov commented on GitHub (Dec 9, 2025):
Mainnet:
The problem is slow local processing and some network issues at the same time, but these disconnects then aren't very helpful.