@@ -488,8 +488,6 @@ namespace {
488
488
* and we're no longer holding the node's locks.
489
489
*/
490
490
struct CNodeState {
491
- // ! The peer's address
492
- const CService address;
493
491
// ! The best known block we know this peer has announced.
494
492
const CBlockIndex* pindexBestKnownBlock{nullptr };
495
493
// ! The hash of the last unknown block this peer has announced.
@@ -582,8 +580,8 @@ struct CNodeState {
582
580
// ! Whether this peer relays txs via wtxid
583
581
bool m_wtxid_relay{false };
584
582
585
- CNodeState (CAddress addrIn, bool is_inbound)
586
- : address(addrIn), m_is_inbound(is_inbound)
583
+ CNodeState (bool is_inbound)
584
+ : m_is_inbound(is_inbound)
587
585
{
588
586
m_recently_announced_invs.reset ();
589
587
}
@@ -920,12 +918,10 @@ void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds)
920
918
921
919
void PeerManagerImpl::InitializeNode (CNode *pnode)
922
920
{
923
- CAddress addr = pnode->addr ;
924
- std::string addrName = pnode->GetAddrName ();
925
921
NodeId nodeid = pnode->GetId ();
926
922
{
927
923
LOCK (cs_main);
928
- mapNodeState.emplace_hint (mapNodeState.end (), std::piecewise_construct, std::forward_as_tuple (nodeid), std::forward_as_tuple (addr, pnode->IsInboundConn ()));
924
+ mapNodeState.emplace_hint (mapNodeState.end (), std::piecewise_construct, std::forward_as_tuple (nodeid), std::forward_as_tuple (pnode->IsInboundConn ()));
929
925
assert (m_txrequest.Count (nodeid) == 0 );
930
926
}
931
927
{
0 commit comments