aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeremy Rubin <jeremy.l.rubin@gmail.com>2016-06-15 19:28:04 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-09-08 13:06:05 -0400
commitd1a2295f0d58423652b124b48fc887a9721b765c (patch)
tree72922e98c159106a37c8efdc2670630ab814f8cf /src/main.cpp
parent98591c50273b13cfc5419548b527280d6a84a43d (diff)
downloadbitcoin-d1a2295f0d58423652b124b48fc887a9721b765c.tar.xz
Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1835d9712b..e4c9ce5626 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3091,7 +3091,6 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
pnode->PushBlockHash(hash);
}
}
- return true;
});
}
// Notify external listeners about the new tip.
@@ -4727,7 +4726,6 @@ static void RelayTransaction(const CTransaction& tx, CConnman& connman)
connman.ForEachNode([&inv](CNode* pnode)
{
pnode->PushInventory(inv);
- return true;
});
}
@@ -4749,7 +4747,6 @@ static void RelayAddress(const CAddress& addr, bool fReachable, CConnman& connma
uint64_t hashKey = CSipHasher(hasher).Write(pnode->id).Finalize();
mapMix.emplace(hashKey, pnode);
}
- return true;
};
auto pushfunc = [&addr, &mapMix, &nRelayNodes] {