MCPcopy Create free account
hub / github.com/ElementsProject/elements / RegisterMiningRPCCommands

Function RegisterMiningRPCCommands

src/rpc/mining.cpp:1794–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792//
1793
1794void RegisterMiningRPCCommands(CRPCTable &t)
1795{
1796// clang-format off
1797
1798static const CRPCCommand commands[] =
1799{ // category actor (function)
1800 // --------------------- ------------------------
1801 { "mining", &getnetworkhashps, },
1802 { "mining", &getmininginfo, },
1803 { "mining", &prioritisetransaction, },
1804 { "mining", &getblocktemplate, },
1805 { "generating", &combineblocksigs, },
1806 { "mining", &submitheader, },
1807 { "generating", &getnewblockhex, },
1808 { "generating", &getcompactsketch, },
1809 { "generating", &consumecompactsketch, },
1810 { "generating", &consumegetblocktxn, },
1811 { "generating", &finalizecompactblock, },
1812 { "mining", &testproposedblock, },
1813
1814 { "mining", &submitblock, },
1815
1816 { "hidden", &generatetoaddress, },
1817 { "hidden", &generatetodescriptor, },
1818 { "hidden", &generateblock, },
1819
1820 { "util", &estimatesmartfee, },
1821
1822 { "hidden", &estimaterawfee, },
1823 { "hidden", &generate, },
1824};
1825// clang-format on
1826 for (const auto& c : commands) {
1827 t.appendCommand(c.name, &c);
1828 }
1829}

Callers 1

Calls 1

appendCommandMethod · 0.80

Tested by

no test coverage detected