Check network type at startup

- Make network type part of consensus ID to avoid mixing p2pool nodes from mainnet and testnet/stagenet
- Check that wallet address matches the network type of monerod
This commit is contained in:
SChernykh
2021-08-27 11:25:25 +02:00
parent afca83d6c2
commit 27c2aab145
9 changed files with 110 additions and 30 deletions
+7
View File
@@ -251,6 +251,13 @@ struct ChainMain
hash id;
};
enum class NetworkType {
Invalid,
Mainnet,
Testnet,
Stagenet,
};
} // namespace p2pool
#include "util.h"