diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-08-20 15:26:27 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-09-02 17:18:22 -0700 |
commit | eb1c5d090f4ef844dabc1e8bf3864c1afe1c791c (patch) | |
tree | d071056bacc764caff867d31d8d1b7f7cde527d9 /src/net.h | |
parent | d5a57cef62ee9e9d30f7e3b80e178149ceeef67c (diff) | |
download | bitcoin-eb1c5d090f4ef844dabc1e8bf3864c1afe1c791c.tar.xz |
[doc] Follow developer notes, add comment about missing default.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -874,7 +874,7 @@ public: case ConnectionType::ADDR_FETCH: case ConnectionType::FEELER: return false; - } + } // no default case, so the compiler can warn about missing cases assert(false); } @@ -919,7 +919,7 @@ public: case ConnectionType::BLOCK_RELAY: case ConnectionType::ADDR_FETCH: return true; - } + } // no default case, so the compiler can warn about missing cases assert(false); } |