diff options
| author | Cory Fields <[email protected]> | 2017-02-08 01:02:49 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2017-02-13 18:55:35 -0500 |
| commit | 8502e7acbe0f42fd6e6979681bc9c4610c4fb8cb (patch) | |
| tree | 97a314e94a2d0fc3915fb0f62003c2b1cc67f122 /src/test/DoS_tests.cpp | |
| parent | net: correctly ban before the handshake is complete (diff) | |
| download | discoin-8502e7acbe0f42fd6e6979681bc9c4610c4fb8cb.tar.xz discoin-8502e7acbe0f42fd6e6979681bc9c4610c4fb8cb.zip | |
net: parse reject earlier
Prior to this change, all messages were ignored until a VERSION message was
received, as well as possibly incurring a ban score.
Since REJECT messages can be sent at any time (including as a response to a bad
VERSION message), make sure to always parse them.
Moving this parsing up keeps it from being caught in the
if (pfrom->nVersion == 0) check below.
Diffstat (limited to 'src/test/DoS_tests.cpp')
0 files changed, 0 insertions, 0 deletions