Wladimir J. van der Laan
17de75b028
Merge #19590 : p2p, refactor: add CInv transaction message helpers; use in net processing
...
c251d710a4 p2p, refactoring: use CInv helpers in net_processing.cpp (Jon Atack)
4254cd9f8f p2p: add CInv transaction message helper methods (Jon Atack)
Pull request description:
Following the merge of wtxid relay in #18044 , this is the first of three refactoring PRs (this one, #19610 , and #19611 ) with no change in behavior, tightly scoped to ease review, to simplify the net processing code and improve encapsulation:
- add `CInv` transaction message helper methods, defined in the class
- use the new helpers in `net_processing.cpp` to simplify the code and improve encapsulation
Test coverage is provided by the functional p2p tests, notably (from seeing which tests failed when breaking things to test coverage) `p2p_segwit`, `p2p_tx_download`, `p2p_feefilter`, and `p2p_permissions`.
ACKs for top commit:
fjahr:
Code review ACK c251d710a4
laanwj:
Code review ACK c251d710a4
vasild:
ACK c251d71
theStack:
Code-Review ACK c251d710a4
hebasto:
ACK c251d710a4 , I have reviewed the code and it looks OK, I agree it can be merged.
Tree-SHA512: ead034b3c9e438909b4c5010c570d7930e69063c114290b051b7cebfd9bd5b19f573218bebe8a521256d32e830797f997adad3d85b4539c64ac5762b698e656d
2020-07-30 16:18:06 +02:00
..
2020-07-30 15:34:17 +02:00
2020-05-20 08:27:07 -04:00
2020-07-22 20:58:55 +02:00
2020-01-28 17:00:01 +01:00
2020-06-29 11:31:17 +08:00
2020-06-27 11:49:28 -04:00
2020-07-23 18:39:42 +02:00
2020-01-28 16:59:07 +01:00
2020-04-30 18:02:04 +08:00
2020-07-19 02:05:29 -04:00
2020-07-05 13:46:38 +03:00
2020-05-20 07:30:29 -04:00
2020-07-23 18:39:42 +02:00
2020-07-26 16:44:07 +02:00
2020-07-19 20:51:06 +02:00
2020-06-09 13:39:09 -07:00
2020-05-29 17:22:07 -04:00
2020-07-29 13:31:16 +02:00
2020-02-09 07:44:29 -08:00
2020-07-23 18:39:42 +02:00
2020-07-22 23:30:19 -04:00
2020-04-16 13:33:09 -04:00
2020-07-06 03:52:37 +02:00
2020-06-22 12:12:22 +02:00
2020-07-03 20:43:55 -07: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
2020-07-08 21:44:45 +08:00
2020-07-03 20:43:55 -07: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-07-05 16:39:17 +02:00
2020-04-16 13:33:09 -04:00
2019-01-30 16:26:52 -05:00
2020-05-25 12:36:48 -04:00
2020-07-11 05:41:12 -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-06-21 06:41:55 -04: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-06-15 18:22:52 +09: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-07-01 14:44:28 -04:00
2020-07-01 14:44:28 -04:00
2019-01-23 16:28:27 +08: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-07-16 21:38:09 +02:00
2020-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2020-07-08 14:26:14 +03:00
2020-05-01 07:39:00 -04:00
2019-02-22 17:38:45 -08:00
2020-05-20 07:30:29 -04:00
2020-06-16 15:15:46 -04: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-06-27 11:49:28 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-07-29 07:53:19 +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-06-27 11:49:35 -04:00
2020-06-13 12:24:18 +02: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-06-29 18:49:13 +01: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-07-30 15:34:17 +02: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-06-15 08:08:19 -04:00
2020-06-15 08:08:19 -04:00
2020-07-09 12:48:05 +02:00
2020-07-09 12:48:05 +02:00
2020-07-30 16:18:06 +02:00
2020-07-24 17:20:58 +02:00
2019-10-29 11:30:12 +02:00
2020-07-23 18:32:59 +02:00
2020-07-23 18:32:59 +02:00
2020-07-27 15:13:24 +02:00
2020-07-27 15:13:24 +02:00
2020-06-22 12:12:22 +02:00
2020-01-08 12:35:59 +00:00
2020-05-11 00:20:57 +02:00
2020-06-27 11:49:28 -04:00
2020-05-05 04:45:59 +03:00
2019-12-30 10:42:20 +13:00
2020-07-01 18:03:12 -04:00
2020-07-01 18:02:38 -04:00
2020-04-30 18:02:03 +08:00
2020-07-19 02:10:41 -04:00
2020-07-27 11:06:39 +02:00
2020-06-24 16:32:19 -04:00
2020-06-24 16:32:19 -04:00
2019-12-30 10:42:20 +13:00
2020-06-10 17:35:43 +03: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-07-26 16:44:07 +02:00
2020-06-21 06:02:59 -04:00
2020-06-21 06:02:59 -04:00
2020-06-22 12:12:22 +02:00
2020-07-19 20:51:06 +02:00
2020-07-26 22:46:28 +03:00
2020-06-25 21:27:34 +03:00
2020-06-11 15:49:39 +03:00
2019-12-30 10:42:20 +13:00
2020-06-11 15:49:39 +03:00
2020-06-27 11:49:28 -04: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-07-29 07:53:19 +02:00
2020-07-01 14:44:24 -04:00
2020-07-18 19:00:01 -04:00
2020-07-18 19:00:01 -04: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-07-29 07:53:19 +02:00
2020-07-29 07:53:19 +02:00
2020-05-22 16:30:07 -04:00
2020-05-22 16:30:07 -04:00
2020-07-19 02:10:41 -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