Author

Topic: Setgenerate removed from latest source? (Read 103 times)

newbie
Activity: 27
Merit: 0
September 08, 2020, 10:41:42 PM
#2
They have removed those commands. Manual mining should work.

Thanks.
newbie
Activity: 27
Merit: 0
September 08, 2020, 10:58:23 AM
#1
Hello,

In older versions of POS staking coins these commands use to work perfectly(./coin setgenerate true).
Code:
#ifdef ENABLE_WALLET
        /* Coin generation */
        {"generating", "getgenerate", &getgenerate, true, false, false},
        {"generating", "gethashespersec", &gethashespersec, true, false, false},
        {"generating", "setgenerate", &setgenerate, true, true, false},
#endif

Code:
#ifdef ENABLE_WALLET
        /* Coin generation */
        {"generating", "getgenerate", &getgenerate, true },
        {"generating", "gethashespersec", &gethashespersec, true },
        {"generating", "setgenerate", &setgenerate, true },
        {"generating", "generate", &generate, true },
#endif

Code:
#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"

Code:
rpc/server.cpp:258:1: error: could not convert ‘{"generating", "setgenerate", , {"true"}’ from ‘’ to ‘CRPCCommand’

another way I tried
Code:
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.
Jump to: