diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index fad2bc7de..cba9b1232 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -240,6 +240,15 @@ class NetworkConfig { public: NetworkConfig(); + inline bool operator==(const NetworkConfig& nc) const + { + return (memcmp(this, &nc, sizeof(NetworkConfig)) == 0); + } + inline bool operator!=(const NetworkConfig& nc) const + { + return (! (*this == nc)); + } + /** * Write this network config to a dictionary for transport *