MCPcopy Create free account
hub / github.com/LUX-Core/lux / RelayDarkSendIn

Function RelayDarkSendIn

src/net.cpp:2136–2149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2134}
2135
2136void RelayDarkSendIn(const std::vector<CTxIn>& in, const int64_t& nAmount, const CTransaction& txCollateral, const std::vector<CTxOut>& out)
2137{
2138 vector<CNode*> vNodesCopy;
2139 {
2140 LOCK(cs_vNodes);
2141 vNodesCopy = vNodes;
2142 }
2143
2144 for (CNode* pnode : vNodesCopy) {
2145 if(!pnode || (CNetAddr)darkSendPool.submittedToMasternode != (CNetAddr)pnode->addr) continue;
2146 LogPrintf("RelayDarkSendIn - found master, relaying message - %s \n", pnode->addr.ToString().c_str());
2147 pnode->PushMessage("dsi", in, nAmount, txCollateral, out);
2148 }
2149}
2150
2151void RelayDarkSendStatus(const int sessionID, const int newState, const int newEntriesCount, const int newAccepted, const std::string error)
2152{

Callers 1

Calls 2

PushMessageMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected