diff --git a/doc/tracing.md b/doc/tracing.md index 5b9369f0b91..184f6b01002 100644 --- a/doc/tracing.md +++ b/doc/tracing.md @@ -245,14 +245,15 @@ Arguments passed: 2. Replaced transaction virtual size as `int32` 3. Replaced transaction fee as `int64` 4. Replaced transaction mempool entry time (epoch) as `uint64` -5. Replacement transaction ID (hash) as `pointer to unsigned chars` (i.e. 32 bytes in little-endian) +5. Replacement transaction ID or package hash as `pointer to unsigned chars` (i.e. 32 bytes in little-endian) 6. Replacement transaction virtual size as `int32` 7. Replacement transaction fee as `int64` +8. `bool` indicating if the argument 5. is a transaction ID or package hash (true if it's a transaction ID) -Note: In cases where a single replacement transaction replaces multiple +Note: In cases where a replacement transaction or package replaces multiple existing transactions in the mempool, the tracepoint is called once for each -replaced transaction, with data of the replacement transaction being the same -in each call. +replaced transaction, with data of the replacement transaction or package +being the same in each call. #### Tracepoint `mempool:rejected` diff --git a/src/bench/mempool_ephemeral_spends.cpp b/src/bench/mempool_ephemeral_spends.cpp index e867c61752c..f34664a736b 100644 --- a/src/bench/mempool_ephemeral_spends.cpp +++ b/src/bench/mempool_ephemeral_spends.cpp @@ -11,6 +11,7 @@ #include