>>kalenv+(OP)
Your post, most of your comments here, and much of the source code looks AI generated; I get the feeling you lack sufficient understanding of what you're even trying to achieve here.
Also regarding the code, why are you defining private?
#define private public
(
https://github.com/Dealta-Foundation/DealtaCore/blob/e1598d3...)
This is a massive code smell.