Andrew Chow 7be62df80f
Merge bitcoin/bitcoin#26078: p2p: return CSubNet in LookupSubNet
fb3e812277041f239b97b88689a5076796d75b9b p2p: return `CSubNet` in `LookupSubNet` (brunoerg)

Pull request description:

  Analyzing the usage of `LookupSubNet`, noticed that most cases uses check if the subnet is valid by calling `subnet.IsValid()`, and the boolean returned by `LookupSubNet` hasn't been used so much, see:
  29d540b7ad/src/httpserver.cpp (L172-L174)
  29d540b7ad/src/net_permissions.cpp (L114-L116)

  It makes sense to return `CSubNet` instead of `bool`.

ACKs for top commit:
  achow101:
    ACK fb3e812277041f239b97b88689a5076796d75b9b
  vasild:
    ACK fb3e812277041f239b97b88689a5076796d75b9b
  theStack:
    Code-review ACK fb3e812277041f239b97b88689a5076796d75b9b
  stickies-v:
    Concept ACK, but Approach ~0 (for now). Reviewed the code (fb3e812277041f239b97b88689a5076796d75b9b) and it all looks good to me.

Tree-SHA512: ba50d6bd5d58dfdbe1ce1faebd80dd8cf8c92ac53ef33519860b83399afffab482d5658cb6921b849d7a3df6d5cea911412850e08f3f4e27f7af510fbde4b254
2023-10-26 14:29:47 -04:00
..
2023-09-13 16:12:51 +02:00
2023-09-12 12:14:31 -04:00
2023-10-12 11:27:19 +02:00
2021-09-22 10:39:08 +02:00
2023-03-23 19:38:38 +01:00
2023-01-26 10:44:05 +01:00
2023-01-26 10:44:05 +01:00
2023-01-26 10:44:05 +01:00
2023-10-12 11:56:37 +01:00