Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 1,381 Lines • ▼ Show 20 Lines | static UniValue sendrawtransaction(const Config &config, | ||||
} | } | ||||
CInv inv(MSG_TX, txid); | CInv inv(MSG_TX, txid); | ||||
g_connman->ForEachNode([&inv](CNode *pnode) { pnode->PushInventory(inv); }); | g_connman->ForEachNode([&inv](CNode *pnode) { pnode->PushInventory(inv); }); | ||||
return txid.GetHex(); | return txid.GetHex(); | ||||
} | } | ||||
UniValue testmempoolaccept(const Config &config, | static UniValue testmempoolaccept(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() < 1 || | if (request.fHelp || request.params.size() < 1 || | ||||
request.params.size() > 2) { | request.params.size() > 2) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
// clang-format off | // clang-format off | ||||
"testmempoolaccept [\"rawtxs\"] ( allowhighfees )\n" | "testmempoolaccept [\"rawtxs\"] ( allowhighfees )\n" | ||||
"\nReturns if raw transaction (serialized, hex-encoded) would be accepted by mempool.\n" | "\nReturns if raw transaction (serialized, hex-encoded) would be accepted by mempool.\n" | ||||
"\nThis checks if the transaction violates the consensus or policy rules.\n" | "\nThis checks if the transaction violates the consensus or policy rules.\n" | ||||
"\nSee sendrawtransaction call.\n" | "\nSee sendrawtransaction call.\n" | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |