neoneo-go/pkg
Roman Khimov cfb5058018 network: batch getdata replies
This is not exactly the protocol-level batching as was tried in #1770 and
proposed by neo-project/neo#2365, but it's a TCP-level change in that we now
Write() a set of messages and given that Go sets up TCP sockets with
TCP_NODELAY by default this is a substantial change, we have less packets
generated with the same amount of data. It doesn't change anything on properly
connected networks, but the ones with delays benefit from it a lot.

This also improves queueing because we no longer generate 32 messages to
deliver on transaction's GetData, it's just one stream of bytes with 32
messages inside.

Do the same with GetBlocksByIndex, we can have a lot of messages there too.

But don't forget about potential peer DoS attacks, if a peer is to request a
lot of big blocks we need to flush them before we process the whole set.
2022-10-21 17:16:32 +03:00
..
compiler smartcontract: define parameter lengths as constants and use them 2022-10-05 10:46:21 +03:00
config network: add BroadcastFactor to control gossip, fix #2678 2022-10-14 15:53:32 +03:00
consensus dbft: rev up, fix context timestamp initialization 2022-10-20 12:38:14 +03:00
core core: close BoltDB on failed root bucket creation 2022-10-10 10:12:34 +03:00
crypto *: use uint*Size and SignatureLen constants where appropriate 2022-10-05 10:45:52 +03:00
encoding fixedn: add a test for empty string 2022-08-19 21:52:43 +03:00
interop interop: refactor address.FromHash160 code 2022-09-27 15:32:57 +03:00
io [#2442] English Check 2022-05-04 19:48:27 +03:00
neorpc golangci: add predeclared linter 2022-09-02 18:36:26 +03:00
neotest core, rpc: move getFakeNextBlock to Blockchain 2022-10-07 15:56:34 +03:00
network network: batch getdata replies 2022-10-21 17:16:32 +03:00
rpcclient *: use uint*Size and SignatureLen constants where appropriate 2022-10-05 10:45:52 +03:00
services services: adjust RPC server's getHistoricParams 2022-10-07 16:06:12 +03:00
smartcontract smartcontract: add comment to GetCompleteTransaction 2022-10-13 16:07:34 +03:00
util slice: add Clean microfunction 2022-09-02 14:44:32 +03:00
vm vm: make LoadFileWithFlags actually load with flags provided 2022-10-13 16:07:34 +03:00
wallet Merge pull request #2725 from nspcc-dev/move-cli-tests 2022-10-06 13:43:39 +07:00