Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,243 Lines • ▼ Show 20 Lines | while (it != pfrom->vRecvGetData.end()) { | ||||
// pointlessly requiring a round-trip. Note that | // pointlessly requiring a round-trip. Note that | ||||
// there is currently no way for a node to request | // there is currently no way for a node to request | ||||
// any single transactions we didn't send here - | // any single transactions we didn't send here - | ||||
// they must either disconnect and retry or request | // they must either disconnect and retry or request | ||||
// the full block. Thus, the protocol spec specified | // the full block. Thus, the protocol spec specified | ||||
// allows for us to provide duplicate txn here, | // allows for us to provide duplicate txn here, | ||||
// however we MUST always provide at least what the | // however we MUST always provide at least what the | ||||
// remote peer needs. | // remote peer needs. | ||||
typedef std::pair<unsigned int, uint256> PairType; | typedef std::pair<unsigned int, TxId> PairType; | ||||
for (PairType &pair : merkleBlock.vMatchedTxn) { | for (PairType &pair : merkleBlock.vMatchedTxn) { | ||||
connman.PushMessage( | connman.PushMessage( | ||||
pfrom, | pfrom, | ||||
msgMaker.Make(NetMsgType::TX, | msgMaker.Make(NetMsgType::TX, | ||||
*block.vtx[pair.first])); | *block.vtx[pair.first])); | ||||
} | } | ||||
} | } | ||||
// else | // else | ||||
▲ Show 20 Lines • Show All 2,542 Lines • Show Last 20 Lines |