- Edited
I didn't look over it but it might be possible to refactor miner.cpp to gdscript. And soon hopefully mono so we can just copy-paste a working implementation.
https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp
I think it's a great alternative to showing ads. I also remember seeing discussion about the morality and feasibility of it on another engine's forum but I don't remember specifics.