File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -552,14 +552,13 @@ Network CNode::ConnectedThroughNetwork() const
552
552
553
553
#undef X
554
554
#define X (name ) stats.name = name
555
- void CNode::CopyStats (CNodeStats& stats, const std::vector< bool >& asmap )
555
+ void CNode::CopyStats (CNodeStats& stats)
556
556
{
557
557
stats.nodeid = this ->GetId ();
558
558
X (nServices);
559
559
X (addr);
560
560
X (addrBind);
561
561
stats.m_network = ConnectedThroughNetwork ();
562
- stats.m_mapped_as = addr.GetMappedAS (asmap);
563
562
if (m_tx_relay != nullptr ) {
564
563
LOCK (m_tx_relay->cs_filter );
565
564
stats.fRelayTxes = m_tx_relay->fRelayTxes ;
@@ -2804,7 +2803,8 @@ void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats) const
2804
2803
vstats.reserve (vNodes.size ());
2805
2804
for (CNode* pnode : vNodes) {
2806
2805
vstats.emplace_back ();
2807
- pnode->CopyStats (vstats.back (), addrman.GetAsmap ());
2806
+ pnode->CopyStats (vstats.back ());
2807
+ vstats.back ().m_mapped_as = pnode->addr .GetMappedAS (addrman.GetAsmap ());
2808
2808
}
2809
2809
}
2810
2810
Original file line number Diff line number Diff line change @@ -652,7 +652,7 @@ class CNode
652
652
653
653
void CloseSocketDisconnect ();
654
654
655
- void CopyStats (CNodeStats& stats, const std::vector< bool >& asmap );
655
+ void CopyStats (CNodeStats& stats);
656
656
657
657
ServiceFlags GetLocalServices () const
658
658
{
Original file line number Diff line number Diff line change @@ -39,12 +39,8 @@ FUZZ_TARGET_INIT(net, initialize_net)
39
39
node.CloseSocketDisconnect ();
40
40
},
41
41
[&] {
42
- const std::vector<bool > asmap = ConsumeRandomLengthBitVector (fuzzed_data_provider);
43
- if (!SanityCheckASMap (asmap, 128 )) {
44
- return ;
45
- }
46
42
CNodeStats stats;
47
- node.CopyStats (stats, asmap );
43
+ node.CopyStats (stats);
48
44
},
49
45
[&] {
50
46
const CNode* add_ref_node = node.AddRef ();
You can’t perform that action at this time.
0 commit comments