MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SubmitBlock

Function SubmitBlock

src/tests/ptests/Mining_tests.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72void SubmitBlock(vector<string> &param) {
73 if(1 != param.size())
74 return;
75 param.insert(param.begin(), "submitblock");
76 param.insert(param.begin(), "rpctest");
77
78 char *argv[param.size()];
79 for(size_t i=0; i<param.size(); ++i) {
80 argv[i] = const_cast<char *>(param[i].c_str());
81 ++i;
82 }
83 CommandLineRPC(param.size(), argv);
84}
85
86bool readblock(const string &filePath)
87{

Callers 1

readblockFunction · 0.85

Calls 4

CommandLineRPCFunction · 0.85
sizeMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected