Stricter wallet address checks
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "p2p_server.h"
|
||||
#include "params.h"
|
||||
#include "console_commands.h"
|
||||
#include "crypto.h"
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
|
||||
@@ -51,6 +52,14 @@ p2pool::p2pool(int argc, char* argv[])
|
||||
panic();
|
||||
}
|
||||
|
||||
hash pub, sec, eph_public_key;
|
||||
generate_keys(pub, sec);
|
||||
|
||||
if (!m_params->m_wallet.get_eph_public_key(sec, 0, eph_public_key)) {
|
||||
LOGERR(1, "Invalid wallet address: get_eph_public_key failed");
|
||||
panic();
|
||||
}
|
||||
|
||||
const NetworkType type = m_params->m_wallet.type();
|
||||
|
||||
if (type == NetworkType::Testnet) {
|
||||
|
||||
Reference in New Issue
Block a user