mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 21:52:53 +02:00
Some DB paths reuse caller-owned `DataStream` scratch buffers across calls. Add a small RAII helper that asserts the stream is empty on entry and clears it on exit. This preserves the old temporary-stream contract while making accidental nested reuse fail fast in debug builds.
29 KiB
29 KiB