fanquake
0f2fa599ae
Merge #18931 : net: use CMessageHeader::HEADER_SIZE, add missing include
...
83da576f4416c64b5d520819208a722b2273739a net: use CMessageHeader::HEADER_SIZE, add missing include (Jon Atack)
Pull request description:
as suggested 16 months ago by Gleb Naumenko in https://github.com/bitcoin/bitcoin/pull/15197#issuecomment-456181865 .
`static constexpr CMessageHeader::HEADER_SIZE` is already used in this file, `src/net.cpp`, in 2 instances. This commit replaces the remaining 2 integer values in the file with it and adds the explicit include header.
Co-authored by: Gleb Naumenko <naumenko.gs@gmail.com>
ACKs for top commit:
naumenkogs:
utACK 83da576
practicalswift:
ACK 83da576f4416c64b5d520819208a722b2273739a -- patch looks correct
theStack:
ACK 83da576f4416c64b5d520819208a722b2273739a -- verified that its just magic number elimination refactoring and additionally checked that all tests pass 👍
Tree-SHA512: 5b915483bca4ea162c259865a1b615d73b88a1b1db3f82db05f770d10b8a42494d948f5b21badbcce2d9efa5915b8cbb6af83073867c23d2f152c0d35ac37b96
2020-05-12 17:05:40 +08:00
..
2020-05-03 18:42:14 +00:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-28 17:00:01 +01:00
2020-04-07 13:57:34 -07:00
2020-05-05 04:45:59 +03:00
2020-05-11 13:34:07 -04:00
2020-01-28 16:59:07 +01:00
2020-04-30 18:02:04 +08:00
2020-04-29 16:32:37 +08:00
2020-01-15 02:18:00 +07:00
2020-05-03 18:42:14 +00:00
2020-05-11 13:34:07 -04:00
2020-04-30 07:20:14 -04:00
2020-05-08 10:37:05 +03:00
2020-05-04 16:31:07 +02:00
2020-05-11 12:20:25 +08:00
2020-02-09 07:44:29 -08:00
2020-05-09 00:20:00 -07:00
2020-05-08 11:18:43 -07: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-04-19 10:05:29 +08:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-05-05 04:46:04 +03:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-20 14:57:48 +00:00
2019-12-30 10:42:20 +13:00
2020-04-28 19:27:22 +02:00
2020-04-28 19:27:22 +02: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-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-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13: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-04-16 13:33:09 -04:00
2020-01-04 20:18:28 +02:00
2019-12-30 10:42:20 +13:00
2020-05-05 04:45:59 +03:00
2019-12-30 10:42:20 +13:00
2020-05-05 04:45:59 +03:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-05-05 04:46:04 +03: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
2019-12-30 10:42:20 +13:00
2020-04-16 11:08:46 -04:00
2020-04-16 11:08:46 -04:00
2020-04-20 15:32:41 -04:00
2020-04-21 15:06:59 +02:00
2020-01-28 17:01:48 +01:00
2020-05-03 17:21:45 +02:00
2020-04-01 12:49:15 +02:00
2020-04-10 19:38:21 -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-05-06 14:59:28 +02:00
2020-04-16 13:33:09 -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-01-08 12:35:59 +00:00
2020-04-16 13:33:09 -04:00
2020-05-12 09:13:48 +08:00
2020-04-29 16:32:37 +08:00
2019-10-29 11:30:12 +02:00
2020-05-10 15:58:42 +02:00
2020-05-05 04:45:59 +03:00
2020-05-06 14:59:28 +02:00
2020-05-06 14:59:28 +02:00
2020-01-22 20:20:45 +01: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-04-16 13:33:09 -04:00
2020-02-06 13:24:40 +01:00
2020-04-16 13:33:09 -04:00
2020-04-23 13:16:23 +12:00
2019-12-30 10:42:20 +13:00
2020-04-23 13:59:48 -04:00
2020-05-03 17:21:45 +02:00
2020-04-29 16:32:37 +08:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2020-04-30 11:45:06 +02:00
2020-04-16 13:33:09 -04:00
2020-03-10 09:47:32 -04:00
2020-04-16 13:33:09 -04:00
2020-04-30 11:16:56 +02:00
2019-12-30 10:42:20 +13:00
2020-03-27 08:59:06 -04:00
2020-03-31 08:36:02 -05:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-05-05 04:45:59 +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-04-16 13:33:09 -04:00
2020-01-15 02:18:00 +07:00
2020-04-29 16:32:37 +08:00
2020-04-23 14:42:25 -07:00
2020-05-05 04:46:04 +03:00
2020-05-05 04:46:04 +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-05-08 12:17:55 -04:00
2020-05-04 16:06:42 +02:00
2020-04-07 12:53:40 -07:00
2020-04-04 11:44:39 -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
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00