merge-script
25c45bb0d0
Merge bitcoin/bitcoin#33567 : node: change a tx-relay on/off flag to enum
...
07a926474b5a6fa1d3d4656362a0117611f6da2f node: change a tx-relay on/off flag to enum (Vasil Dimov)
Pull request description:
Previously the `bool relay` argument to `BroadcastTransaction()` designated:
```
relay=true: add to the mempool and broadcast to all peers
relay=false: add to the mempool
```
Change this to an `enum`, so it is more readable and easier to extend with a 3rd option. Consider these example call sites:
```cpp
Paint(true);
// Or
Paint(/*is_red=*/true);
```
vs
```cpp
Paint(RED);
```
The idea for putting `TxBroadcastMethod` into `node/types.h` by Ryan.
---
This is part of [#29415 Broadcast own transactions only via short-lived Tor or I2P connections](https://github.com/bitcoin/bitcoin/pull/29415 ). Putting it in its own PR to reduce the size of #29415 and because it does not logically depend on the other commits from there.
ACKs for top commit:
optout21:
ACK 07a926474b5a6fa1d3d4656362a0117611f6da2f
kevkevinpal:
ACK [07a9264](07a926474b )
laanwj:
Concept and code review ACK 07a926474b5a6fa1d3d4656362a0117611f6da2f. Agree with the general reasoning and the change in #29415 is a valid motivation to change this interface.
glozow:
utACK 07a926474b5a6fa1d3d4656362a0117611f6da2f
Tree-SHA512: ec8f6fa56a6d2422a0fbd5941ff2792685e8d8e7b9dd50bba9f3e21ed9b4a4a26c89b0d7e4895d48f30b7a635f2eddd894af26b5266410952cbdaf5c40b42966
2025-10-31 14:59:58 -04:00
..
2025-10-28 22:41:07 +00:00
2025-10-28 22:41:07 +00:00
2025-09-16 06:26:01 -04:00
2025-08-14 10:17:32 +10:00
2025-08-07 09:27:25 +01:00
2025-09-09 11:25:55 +01:00
2025-09-09 12:34:30 +01:00
2025-09-17 04:57:09 -04:00
2025-10-15 08:52:48 +02:00
2025-10-10 21:20:50 +00:00
2025-10-31 13:13:53 -04:00
2025-10-16 13:49:49 +01:00
2025-02-21 10:43:01 +01:00
2025-05-13 18:07:47 +01:00
2025-10-31 14:59:58 -04:00
2025-10-27 10:44:18 +01:00
2025-08-11 16:47:51 +01:00
2025-10-28 22:41:07 +00:00
2025-10-31 14:59:58 -04:00
2025-10-24 10:33:51 -07:00
2025-10-15 09:49:11 +01:00
2025-05-23 10:09:39 +01:00
2025-10-31 10:02:48 +00:00
2025-07-23 13:29:07 -07:00
2025-10-29 16:53:42 +00:00
2025-10-31 14:59:58 -04:00
2025-08-11 16:47:43 +01:00
2025-09-01 15:10:24 -07:00
2025-06-03 15:13:54 +02:00
2025-07-10 11:24:40 +02:00
2025-03-23 21:58:39 +01:00
2024-09-20 12:55:22 -04:00
2024-11-11 12:47:53 -03:00
2024-11-11 12:47:53 -03:00
2025-01-09 10:11:46 -05:00
2025-09-12 22:28:41 +02:00
2025-07-25 09:50:50 +02:00
2025-05-19 16:40:33 +01:00
2025-06-03 15:13:54 +02:00
2025-03-12 19:46:54 +01:00
2025-06-03 15:13:57 +02:00
2025-06-03 15:13:57 +02:00
2025-06-03 19:56:55 +02:00
2025-03-12 19:46:54 +01:00
2025-09-05 15:46:44 +01:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-06-10 15:14:24 +02:00
2025-06-10 15:14:24 +02:00
2025-05-17 09:36:25 +02:00
2025-06-10 15:14:24 +02:00
2025-01-15 12:15:40 +01:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-10-28 22:41:07 +00:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-08-27 03:33:32 +10:00
2025-08-27 03:33:32 +10:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-10-02 10:34:12 -04:00
2025-10-27 12:17:37 -04:00
2025-07-25 09:50:50 +02:00
2025-06-03 15:13:57 +02:00
2024-11-14 13:41:02 -05:00
2025-09-03 11:23:30 +01:00
2025-05-19 22:06:48 +00:00
2025-05-20 09:30:41 +01:00
2025-05-29 11:18:36 +01:00
2025-10-11 17:25:09 -04:00
2025-10-28 22:41:07 +00:00
2025-10-12 12:37:45 -04:00
2025-10-11 21:48:04 -04:00
2025-03-12 19:46:54 +01:00
2024-11-26 20:47:08 -05:00
2025-04-22 13:16:54 +01:00
2025-01-22 17:31:22 -05:00
2025-05-19 16:40:33 +01:00
2025-08-06 15:46:18 -07:00
2025-07-22 10:26:15 -07:00
2025-04-30 14:51:21 +02:00
2025-08-14 10:17:30 +10:00
2025-02-21 10:41:27 +01:00
2025-01-21 00:38:03 +10:00
2025-07-25 09:50:50 +02:00
2025-06-16 15:33:19 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-09-12 22:28:41 +02:00
2025-09-12 22:28:41 +02:00
2025-07-03 06:26:23 -04:00
2025-09-16 06:26:01 -04:00
2024-11-04 17:08:21 +01:00
2025-06-09 14:17:33 +02:00
2025-06-09 14:17:33 +02:00
2025-10-31 13:13:53 -04:00
2025-01-16 21:06:21 +00:00
2025-06-03 15:13:57 +02:00
2025-10-14 16:25:52 -04:00
2025-09-30 11:06:43 -07:00
2025-08-12 11:28:36 -04:00
2025-08-12 11:28:36 -04:00
2025-09-08 11:18:51 +02:00
2025-07-17 12:43:04 -04:00
2024-11-04 18:46:40 +01:00
2025-08-11 15:53:34 +01:00
2025-08-11 16:47:51 +01:00
2025-09-30 11:06:43 -07:00
2025-10-14 16:25:52 -04:00
2025-02-21 10:41:27 +01:00
2025-10-27 10:41:02 +01:00
2025-09-22 10:46:26 +10:00
2025-10-24 10:33:51 -07:00
2025-10-24 10:33:51 -07:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-09-16 06:26:01 -04:00
2025-08-04 13:38:26 -04:00
2025-07-25 09:50:50 +02:00
2025-07-25 09:50:50 +02:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-04-22 17:11:24 +10:00
2025-06-03 15:13:57 +02:00
2025-07-25 16:23:37 -07:00
2025-07-08 20:00:51 +01:00
2025-07-08 20:00:51 +01:00
2025-09-30 11:06:43 -07:00
2025-09-30 11:06:43 -07:00
2025-09-30 11:06:09 -07:00
2025-09-30 11:06:09 -07:00
2025-07-25 09:50:50 +02:00
2025-07-16 13:19:18 -07:00
2025-10-14 10:24:08 -04:00
2025-10-24 17:41:05 +01:00
2025-06-16 18:09:14 +00:00
2025-05-10 03:31:30 +00:00
2025-07-29 16:25:47 -07:00
2025-08-14 10:17:32 +10:00
2025-03-12 19:46:54 +01:00
2025-07-16 14:33:07 -07:00
2025-07-16 14:33:07 -07:00
2025-08-22 14:25:39 +00:00
2025-08-22 14:25:39 +00:00
2025-05-08 20:13:46 +00:00
2025-01-15 12:16:08 +01:00
2025-05-13 12:09:40 +02:00
2025-05-13 12:09:40 +02:00
2025-04-07 15:59:41 +02:00
2025-08-28 10:09:32 -07:00
2025-10-14 12:44:57 -04:00
2025-10-11 17:25:09 -04:00
2025-08-27 03:33:32 +10:00
2025-08-27 03:33:32 +10:00
2025-07-23 15:01:18 +01:00
2025-07-23 15:01:18 +01:00
2025-04-09 15:59:59 +01:00
2025-04-09 15:59:59 +01:00
2025-10-27 12:17:37 -04:00
2025-10-27 12:17:37 -04:00
2025-08-01 15:12:37 +02:00
2025-08-01 15:12:37 +02:00
2025-01-21 00:38:03 +10:00
2025-04-30 14:51:21 +02:00
2025-04-30 14:51:21 +02:00