@@ -701,8 +701,6 @@ namespace {
701
701
* and we're no longer holding the node's locks.
702
702
*/
703
703
struct CNodeState {
704
- // ! The peer's address
705
- const CService address;
706
704
// ! The best known block we know this peer has announced.
707
705
const CBlockIndex *pindexBestKnownBlock;
708
706
// ! The hash of the last unknown block this peer has announced.
@@ -849,8 +847,8 @@ struct CNodeState {
849
847
// ! A rolling bloom filter of all announced tx CInvs to this peer.
850
848
CRollingBloomFilter m_recently_announced_invs = CRollingBloomFilter{INVENTORY_MAX_RECENT_RELAY, 0.000001 };
851
849
852
- CNodeState (CAddress addrIn, bool is_inbound) :
853
- address (addrIn), m_is_inbound(is_inbound)
850
+ CNodeState (bool is_inbound) :
851
+ m_is_inbound (is_inbound)
854
852
{
855
853
pindexBestKnownBlock = nullptr ;
856
854
hashLastUnknownBlock.SetNull ();
@@ -1352,11 +1350,10 @@ void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds)
1352
1350
}
1353
1351
1354
1352
void PeerManagerImpl::InitializeNode (CNode *pnode) {
1355
- CAddress addr = pnode->addr ;
1356
1353
NodeId nodeid = pnode->GetId ();
1357
1354
{
1358
1355
LOCK (cs_main);
1359
- mapNodeState.emplace_hint (mapNodeState.end (), std::piecewise_construct, std::forward_as_tuple (nodeid), std::forward_as_tuple (addr, pnode->IsInboundConn ()));
1356
+ mapNodeState.emplace_hint (mapNodeState.end (), std::piecewise_construct, std::forward_as_tuple (nodeid), std::forward_as_tuple (pnode->IsInboundConn ()));
1360
1357
}
1361
1358
{
1362
1359
PeerRef peer = std::make_shared<Peer>(nodeid);
0 commit comments