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

Function RelayTransaction

src/net.cpp:1474–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472instance_of_cnetcleanup;
1473
1474void RelayTransaction(CBaseTx* pBaseTx, const uint256& hash) {
1475 CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
1476 ss.reserve(1000);
1477 auto pTx = pBaseTx->GetNewInstance();
1478 ss << pTx;
1479 RelayTransaction(pBaseTx, hash, ss);
1480}
1481
1482void RelayTransaction(CBaseTx* pBaseTx, const uint256& hash, const CDataStream& ss) {
1483 CInv inv(MSG_TX, hash);

Callers 3

CommitTxMethod · 0.85
ThreadRelayTxFunction · 0.85
ProcessTxMessageFunction · 0.85

Calls 10

GetTimeFunction · 0.85
reserveMethod · 0.80
push_backMethod · 0.80
IsRelevantAndUpdateMethod · 0.80
PushInventoryMethod · 0.80
GetNewInstanceMethod · 0.45
emptyMethod · 0.45
eraseMethod · 0.45
insertMethod · 0.45
GetHexMethod · 0.45

Tested by

no test coverage detected