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:
@@ -251,6 +251,13 @@ struct ChainMain
|
||||
hash id;
|
||||
};
|
||||
|
||||
enum class NetworkType {
|
||||
Invalid,
|
||||
Mainnet,
|
||||
Testnet,
|
||||
Stagenet,
|
||||
};
|
||||
|
||||
} // namespace p2pool
|
||||
|
||||
#include "util.h"
|
||||
|
||||
Reference in New Issue
Block a user