neo-go/pkg
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
..
compiler compiler: check correctness of emitted bytecode 2021-10-25 13:55:55 +03:00
config rpc: implement findstates RPC handler 2021-10-13 11:41:05 +03:00
consensus rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
core network: remove priority queue from block queue 2021-11-01 11:49:01 +03:00
crypto keys: reuse coordLen where appropriate 2021-08-26 17:30:04 +03:00
encoding util: move ArrayReverse into package of its own 2021-07-19 22:57:55 +03:00
interop compiler: remove custom logic for util builtins 2021-10-23 16:12:47 +03:00
io *: make tests use TempDir(), fix #1319 2021-08-26 17:29:40 +03:00
network network: remove priority queue from block queue 2021-11-01 11:49:01 +03:00
rpc rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
services rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
smartcontract nef: add Source field 2021-09-24 00:19:37 +03:00
util util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00
vm vm: wait more for a test prog execution ending 2021-10-22 12:14:37 +03:00
wallet wallet: do not store file handle 2021-10-06 15:29:52 +03:00