MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / NetMagic

Function NetMagic

src/bitcoin-util.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static int NetMagic(const std::vector<std::string>& args, std::string& strPrint)
155{
156 if (!args.empty()) {
157 strPrint = "netmagic does not take arguments";
158 return EXIT_FAILURE;
159 }
160
161 strPrint = HexStr(Params().MessageStart());
162 return EXIT_SUCCESS;
163}
164
165MAIN_FUNCTION
166{

Callers 1

bitcoin-util.cppFile · 0.85

Calls 3

ParamsClass · 0.70
HexStrFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected