This PR adds some of the UTXO set cache tracepoints proposed in #20981 (comment). The first tracepoints were added in bitcoin#22006.
tracepoint | description |
---|---|
utxocache:flush |
Is called after the caches and indexes are flushed |
utxocache:add |
when a new coin is added to the UTXO cache |
utxocache:spent |
when a coin is spent |
utxocache:uncache |
when coin is removed from the UTXO cache |
The tracepoints are further documented in docs/tracing.md
and the usage is shown via the two newly added example scripts in contrib/tracing/
.