Files
bitcoin/src/test/streams_tests.cpp
Lőrinc 31ce729b28 streams: add ScopedDataStreamUsage
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.
2026-04-28 10:37:15 +02:00

29 KiB