neo-go/internal
Roman Khimov 8bb1ecb45a network: remove priority queue from block queue
Use circular buffer which is a bit more appropriate. The problem is that
priority queue accepts and stores equal items which wastes memory even in
normal usage scenario, but it's especially dangerous if the node is stuck for
some reason. In this case it'll accept from peers and put into queue the same
blocks again and again leaking memory up to OOM condition.

Notice that queue length calculation might be wrong in case circular buffer
wraps, but it's not very likely to happen (usually blocks not coming from the
queue are added by consensus and it's not very fast in doing so).
2021-11-01 11:49:01 +03:00
..
fakechain network: remove priority queue from block queue 2021-11-01 11:49:01 +03:00
keytestcases core: rename Neo.Crypto.CheckSig interop 2021-05-11 18:37:55 +03:00
random pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
testchain cli,compiler: allow to specify manifest permissions 2021-06-04 11:16:22 +03:00
testserdes stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00