Anton Kaliaev
8f463cf35c
to prevent malicious nodes from sending us large messages (~21MB, which is the default `RecvMessageCapacity`) This allows us to remove unnecessary `maxMsgSize` check in `decodeMsg`. Since each channel has a msg capacity set to `maxMsgSize`, there's no need to check it again in `decodeMsg`. Closes #1503 |
5 years ago | |
---|---|---|
.. | ||
addrbook.go | cannot decrease ban time | 5 years ago |
addrbook_test.go | format: add format cmd & goimport repo (#4586) | 5 years ago |
codec.go | lint: Enable Golint (#4212) | 5 years ago |
errors.go | p2p: PEX message abuse should ban as well as disconnect (#4621) | 5 years ago |
file.go | libs/common: Refactor libs/common 4 (#4237) | 5 years ago |
known_address.go | cannot decrease ban time | 5 years ago |
params.go | fix build and test | 7 years ago |
pex_reactor.go | p2p: set RecvMessageCapacity to maxMsgSize in all reactors | 5 years ago |
pex_reactor_test.go | p2p/pex: fix DATA RACE | 5 years ago |