Andrew Chow
60f142e395
Merge bitcoin/bitcoin#26531 : mempool: Add mempool tracepoints
...
4b7aec2951 Add mempool tracepoints (virtu)
Pull request description:
This PR adds multiple mempool tracepoints.
| tracepoint | description |
| ------------- | ------------- |
| `mempool:added` | Is called when a transaction enters the mempool |
| `mempool:removed` | ... when a transaction is removed from the mempool |
| `mempool:replaced` | ... when a transaction is replaced in the mempool |
| `mempool:rejected` | ... when a transaction is rejected from entering the mempool |
The tracepoints are further documented in `docs/tracing.md`. Usage is demonstrated in the example script `contrib/tracing/mempool_monitor.py`. Interface tests are provided in `test/functional/interface_usdt_mempool.py`.
The rationale for passing the removal reason as a string instead of numerically is that the benefits of not having to maintain a redundant enum-string mapping seem to outweigh the small cost of string generation. The reject reason is passed as string as well, although in this instance the string does not have to be generated but is readily available.
ACKs for top commit:
0xB10C:
ACK 4b7aec2951
achow101:
ACK 4b7aec2951
Tree-SHA512: 6deb3ba2d1a061292fb9b0f885f7a5c4d11b109b838102d8a8f4828cd68f5cd03fa3fc64adc6fdf54a08a1eaccce261b0aa90c2b8c33cd5fd3828c8f74978958
2023-03-20 12:42:24 -04:00
..
2023-03-06 09:45:40 -03:00
2023-02-28 12:04:47 -05:00
2023-01-04 12:00:25 +00:00
2023-02-06 13:56:51 -05:00
2022-08-13 13:55:38 +01:00
2023-02-15 14:58:47 +00:00
2023-03-13 17:09:54 +01:00
2023-02-27 14:21:13 -05:00
2023-02-07 11:02:01 +01:00
2022-12-24 23:49:50 +00:00
2023-03-16 13:56:35 +00:00
2022-09-29 16:43:30 +01:00
2023-01-31 18:48:50 +01:00
2022-10-23 15:03:04 +01:00
2023-03-16 13:56:35 +00:00
2023-01-31 11:50:10 +00:00
2022-12-24 23:49:50 +00:00
2023-03-14 10:03:31 +00:00
2023-03-15 16:02:47 +01:00
2023-03-13 17:09:54 +01:00
2023-03-08 17:41:24 -05:00
2023-02-23 17:58:40 -05:00
2023-03-15 15:33:12 +01:00
2023-03-03 15:23:43 +01:00
2023-03-14 09:56:40 +01:00
2023-03-19 12:24:21 +00:00
2023-01-31 11:50:10 +00:00
2023-02-01 11:33:35 +01:00
2023-03-13 17:09:54 +01:00
2023-01-26 18:11:13 -05:00
2023-02-17 13:34:40 -05:00
2023-02-01 10:18:08 -05:00
2022-12-24 23:49:50 +00:00
2023-02-01 11:33:35 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-03-16 13:56:35 +00:00
2023-03-13 17:09:47 +01:00
2023-03-13 17:09:47 +01:00
2023-03-13 17:09:47 +01:00
2023-03-13 17:09:47 +01:00
2023-03-13 17:09:47 +01:00
2023-01-26 10:44:05 +01:00
2023-02-15 14:42:28 -08:00
2023-01-31 19:34:35 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-05 09:05:14 +00:00
2023-03-15 16:43:31 +01:00
2023-03-15 16:43:31 +01:00
2022-09-09 10:07:39 +02:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-02-02 09:00:15 -05:00
2023-02-02 09:00:15 -05:00
2023-02-03 18:15:42 +01:00
2023-01-26 10:44:05 +01:00
2023-02-03 18:15:42 +01:00
2023-01-31 11:50:10 +00:00
2023-02-10 04:39:11 -04:00
2023-02-10 04:39:11 -04:00
2023-03-15 16:42:42 +01:00
2023-03-15 16:42:42 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-02-01 11:33:35 +01:00
2023-02-01 11:33:35 +01:00
2022-12-24 23:49:50 +00:00
2023-02-16 12:33:26 +00:00
2023-01-18 15:47:06 +00:00
2022-12-24 23:49:50 +00:00
2023-01-30 15:57:12 +00:00
2022-08-30 12:09:04 -04:00
2022-08-29 08:10:35 -04:00
2023-02-17 13:34:40 -05:00
2023-03-06 19:35:59 -05:00
2022-12-24 23:49:50 +00:00
2023-02-22 17:58:41 +00:00
2022-12-24 23:49:50 +00:00
2023-03-15 15:47:42 +01:00
2022-12-24 23:49:50 +00:00
2023-01-17 18:31:51 +01:00
2023-01-31 19:34:35 +01:00
2023-01-31 11:50:10 +00:00
2022-12-24 23:49:50 +00:00
2023-03-13 17:09:54 +01:00
2023-03-16 13:56:35 +00:00
2022-11-15 19:23:39 -05:00
2022-06-23 15:33:01 +02:00
2022-07-21 10:42:09 +01:00
2023-02-27 13:53:29 +00:00
2022-09-13 17:15:17 +01:00
2022-09-13 17:15:17 +01:00
2022-11-17 14:52:45 +00:00
2023-02-17 17:28:14 -05:00
2023-03-07 13:05:01 -05:00
2023-02-17 13:34:40 -05:00
2023-01-28 15:24:13 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-02-17 13:34:40 -05:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-03-15 20:12:05 +05:30
2023-02-22 17:58:41 +00:00
2023-02-17 13:34:40 -05:00
2023-02-17 13:34:40 -05:00
2023-03-13 17:09:54 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-02-16 10:01:33 +00:00
2023-02-16 09:39:50 +00:00
2023-01-13 09:40:57 +00:00
2023-01-13 09:40:57 +00:00
2023-03-02 14:48:28 +01:00
2023-02-15 14:58:47 +00:00
2023-01-23 16:36:27 +01:00
2023-03-15 19:39:30 -04:00
2023-01-12 13:42:44 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-31 11:50:10 +00:00
2023-02-28 12:04:47 -05:00
2023-01-31 11:50:10 +00:00
2023-02-02 10:47:37 +00:00
2023-01-25 09:33:26 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-31 11:50:10 +00:00
2023-02-17 13:34:40 -05:00
2023-01-31 11:50:10 +00:00
2023-03-13 17:09:54 +01:00
2023-02-10 04:39:11 -04:00
2023-03-20 12:42:24 -04:00
2023-02-01 11:33:35 +01:00
2023-01-26 10:36:18 +00:00
2023-01-26 10:36:18 +00:00
2022-12-10 14:34:44 -06:00
2023-02-06 13:56:51 -05:00
2023-03-20 12:42:24 -04:00
2023-03-16 13:56:35 +00:00
2023-02-01 11:33:35 +01:00
2023-01-05 09:05:14 +00:00
2023-01-03 19:31:29 -06:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00