Moved from https://github.com/bitcoin/bitcoin/issues/33285.
Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Running the GUI on mainnet, I open the console, run:
getblocktemplate '{"rules": ["segwit"]}'
everything acts normally until then. If I then try to copy the test, memory usage blows out:
on release build, jumps from <2GB to >7GB memory
on debug build, it jumps to dozens of GB, often causing OOM and kills the process.
Expected behaviour
I expect the memory usage to not blow up on basic operations.
Steps to reproduce
Already detailed.
Relevant log output
No logs after the block generated is tested for validity.
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@7e58c94112d0
Operating system and version
Ubuntu 24.04.2 LTS
Machine specifications
64GB of memory