fanquake
28ce05d06f
Merge #19260 : p2p: disconnect peers that send filterclear + update existing filter msg disconnect logic
...
3a10d935ac8ebabdfd336569d943f042ff84b13e [p2p/refactor] move disconnect logic and remove misbehaving (gzhao408)
ff8c430c6589ea72b9e169455cf6437c8623cc52 [test] test disconnect for filterclear (gzhao408)
1c6b787e0319c44f0e0bede3f4a77ac7c2089db2 [netprocessing] disconnect node that sends filterclear (gzhao408)
Pull request description:
Nodes that don't have bloomfilters turned on (i.e. no `NODE_BLOOM` service) should disconnect peers that send them `filterclear` P2P messages.
Non-bloomfilter nodes already disconnect peers for [`filteradd` and `filterload`](19e919217e/src/net_processing.cpp (L2218) ), but #8709 removed `filterclear` so it could be used to reset tx relay. This isn't needed now because using `feefilter` message is much better for this purpose (See #19204 ).
Also refactors existing disconnect logic for `filteradd` and `filterload` into respective message handlers and removes banning for them.
ACKs for top commit:
jnewbery:
Code review ACK 3a10d935ac8ebabdfd336569d943f042ff84b13e
naumenkogs:
utACK 3a10d93
gillichu:
tested ACK: quick test_runner on macOS [`3a10d93`](3a10d935ac )
MarcoFalke:
re-ACK 3a10d935ac only change is replacing false with true 🚝
Tree-SHA512: 7aad8b3c0b0e776a47ad52544f0c1250feb242320f9a2962542f5905042f77e297a1486f8cdc3bf0fb93cd00c1ab66a67b2ec426eb6da3fe4cda56b5e623620f
2020-06-16 16:09:22 +08:00
..
2020-06-02 07:32:15 -04:00
2020-05-20 08:27:07 -04:00
2020-05-26 16:05:51 +02:00
2020-01-28 17:00:01 +01:00
2020-04-07 13:57:34 -07:00
2020-06-10 15:01:20 +03:00
2020-06-10 15:01:20 +03:00
2020-01-28 16:59:07 +01:00
2020-04-30 18:02:04 +08:00
2020-05-26 07:33:43 -04:00
2020-03-30 16:10:30 -07:00
2020-05-20 07:30:29 -04:00
2020-06-10 15:01:20 +03:00
2020-06-15 08:13:49 +00:00
2020-06-04 10:05:54 -04:00
2020-06-09 13:39:09 -07:00
2020-05-29 17:22:07 -04:00
2020-06-11 14:05:54 +00:00
2020-02-09 07:44:29 -08:00
2020-06-09 15:39:44 +02:00
2020-06-13 01:09:15 +01:00
2020-04-16 13:33:09 -04:00
2019-10-14 13:24:54 +03:00
2019-12-30 10:42:20 +13:00
2020-01-02 11:05:36 -08:00
2020-05-06 14:59:28 +02:00
2020-03-04 14:24:19 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-03-10 09:52:53 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2020-05-27 07:16:10 -04:00
2020-04-16 13:33:09 -04:00
2020-05-25 12:36:48 -04:00
2020-05-13 16:20:13 -04:00
2020-05-28 09:55:39 +03:00
2020-05-28 09:55:39 +03:00
2020-04-20 14:57:48 +00:00
2020-05-26 17:27:15 -04:00
2020-04-28 19:27:22 +02:00
2020-05-20 07:30:29 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-03 16:29:26 +02:00
2020-04-16 13:33:09 -04:00
2020-05-04 19:53:58 +03:00
2020-05-03 18:42:14 +00:00
2020-05-06 13:15:28 +02:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-05-22 01:40:31 +09:00
2020-05-08 12:19:26 +10:00
2020-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-05-01 07:39:00 -04:00
2020-05-20 07:30:29 -04:00
2020-04-26 12:16:22 +12:00
2019-12-30 10:42:20 +13:00
2019-03-31 11:41:05 -07:00
2020-05-21 06:53:39 -04:00
2020-05-13 16:20:13 -04:00
2020-05-19 10:41:44 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-06-09 15:39:44 +02:00
2020-05-13 16:20:13 -04:00
2019-12-30 10:42:20 +13:00
2020-06-10 18:29:33 -07:00
2019-12-30 10:42:20 +13:00
2020-06-07 17:03:49 +02:00
2020-05-28 09:54:24 +03:00
2020-05-28 02:13:19 -04:00
2020-04-29 00:31:41 -07:00
2020-01-28 17:01:48 +01:00
2020-05-12 18:03:39 +03:00
2020-04-01 12:49:15 +02:00
2020-05-12 09:47:06 -04:00
2019-11-21 21:13:08 +01:00
2020-04-05 01:01:13 +02:00
2020-04-05 10:46:24 +08:00
2020-06-11 14:05:54 +00:00
2020-04-16 13:33:09 -04:00
2020-03-30 16:09:51 -07:00
2020-03-30 16:09:51 -07:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-06-09 15:39:44 +02:00
2020-06-09 15:39:44 +02:00
2020-06-14 11:48:17 -07:00
2020-06-02 01:42:55 +02:00
2019-10-29 11:30:12 +02:00
2020-06-04 16:39:23 -04:00
2020-05-27 19:31:33 -04:00
2020-05-06 14:59:28 +02:00
2020-05-20 07:30:29 -04:00
2020-06-06 17:19:52 +03:00
2020-01-08 12:35:59 +00:00
2020-05-05 04:45:59 +03:00
2020-05-05 04:45:59 +03:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-23 16:35:06 -05:00
2020-04-30 18:02:03 +08:00
2020-06-04 17:16:49 +02:00
2020-05-31 18:20:17 -04:00
2020-04-16 13:33:09 -04:00
2020-05-27 12:37:08 -04:00
2019-12-30 10:42:20 +13:00
2020-04-23 13:59:48 -04:00
2020-05-15 08:58:49 -04:00
2020-04-30 09:19:14 -04:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2020-05-21 06:53:39 -04:00
2020-04-16 13:33:09 -04:00
2020-03-10 09:47:32 -04:00
2020-05-24 10:35:00 -07:00
2020-04-30 11:16:56 +02:00
2019-12-30 10:42:20 +13:00
2020-05-28 09:55:04 +03:00
2020-05-28 09:55:04 +03:00
2019-12-30 10:42:20 +13:00
2020-05-28 09:54:24 +03:00
2020-06-10 15:01:20 +03:00
2019-12-06 10:02:08 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-06-04 10:05:36 -04:00
2020-01-15 02:18:00 +07:00
2020-05-15 09:23:55 -04:00
2020-05-25 11:27:07 -07:00
2020-05-19 02:49:32 +03:00
2020-05-19 02:49:32 +03:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:08 -05:00
2020-04-16 13:33:09 -04:00
2020-06-10 15:01:20 +03:00
2020-06-07 17:50:22 +09:00
2020-05-22 16:30:07 -04:00
2020-05-22 16:30:07 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-06-10 15:01:20 +03:00
2020-06-10 15:01:20 +03:00