Hello,
In older versions of POS staking coins these commands use to work perfectly(./coin setgenerate true).
#ifdef ENABLE_WALLET
/* Coin generation */
{"generating", "getgenerate", &getgenerate, true, false, false},
{"generating", "gethashespersec", &gethashespersec, true, false, false},
{"generating", "setgenerate", &setgenerate, true, true, false},
#endif
#ifdef ENABLE_WALLET
/* Coin generation */
{"generating", "getgenerate", &getgenerate, true },
{"generating", "gethashespersec", &gethashespersec, true },
{"generating", "setgenerate", &setgenerate, true },
{"generating", "generate", &generate, true },
#endif
#ifdef ENABLE_WALLET
/* Coin generation */
{"generating", "getgenerate", &getgenerate, true, {} },
{"generating", "gethashespersec", &gethashespersec, true, {} },
{"generating", "setgenerate", &setgenerate, true, {} },
{"generating", "generate", &generate, true, {} },
#endif
This is removed from (CRPCCommand command []) Latest, new version of POS coins.
When I try to add the in net.cpp or server.cpp it giving error says "could not convert"
rpc/server.cpp:258:1: error: could not convert ‘{"generating", "setgenerate", , {"true"}’ from ‘’ to ‘CRPCCommand’
another way I tried
rpc/server.cpp:259:1: error: could not convert ‘{"generating", "setgenerate", , true, true, false}’ from ‘’ to ‘CRPCCommand’
How to solve this? Did they removed the code?
Thanks.