Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,998 Lines • ▼ Show 20 Lines | : nTimeConnected(GetSystemTimeInSeconds()), addr(addrIn), | ||||
id(idIn), nLocalHostNonce(nLocalHostNonceIn), | id(idIn), nLocalHostNonce(nLocalHostNonceIn), | ||||
nLocalExtraEntropy(nLocalExtraEntropyIn), m_conn_type(conn_type_in), | nLocalExtraEntropy(nLocalExtraEntropyIn), m_conn_type(conn_type_in), | ||||
nLocalServices(nLocalServicesIn), nMyStartingHeight(nMyStartingHeightIn) { | nLocalServices(nLocalServicesIn), nMyStartingHeight(nMyStartingHeightIn) { | ||||
hSocket = hSocketIn; | hSocket = hSocketIn; | ||||
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn; | addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn; | ||||
hashContinue = BlockHash(); | hashContinue = BlockHash(); | ||||
if (conn_type_in != ConnectionType::BLOCK_RELAY) { | if (conn_type_in != ConnectionType::BLOCK_RELAY) { | ||||
m_tx_relay = std::make_unique<TxRelay>(); | m_tx_relay = std::make_unique<TxRelay>(); | ||||
m_proof_relay = std::make_unique<ProofRelay>(); | |||||
deadalnix: That doesn't sound like something you want to do unconditionally on all nodes. | |||||
PiRKAuthorUnsubmitted Done Inline Actions
The way I see the problem, we either need to make nodes signal with a service flag that they are willing to relay proofs, or we need to relay proofs to all nodes unconditionally. PiRK: > That doesn't sound like something you want to do unconditionally on all nodes.
The way I see… | |||||
m_addr_known = std::make_unique<CRollingBloomFilter>(5000, 0.001); | m_addr_known = std::make_unique<CRollingBloomFilter>(5000, 0.001); | ||||
} | } | ||||
for (const std::string &msg : getAllNetMessageTypes()) { | for (const std::string &msg : getAllNetMessageTypes()) { | ||||
mapRecvBytesPerMsgCmd[msg] = 0; | mapRecvBytesPerMsgCmd[msg] = 0; | ||||
} | } | ||||
mapRecvBytesPerMsgCmd[NET_MESSAGE_COMMAND_OTHER] = 0; | mapRecvBytesPerMsgCmd[NET_MESSAGE_COMMAND_OTHER] = 0; | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |
That doesn't sound like something you want to do unconditionally on all nodes.