|
|
@ -26,6 +26,7 @@
|
|
|
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/dns_utils.h"
|
|
|
|
#include "common/command_line.h"
|
|
|
|
#include "common/command_line.h"
|
|
|
|
#include "daemon/command_parser_executor.h"
|
|
|
|
#include "daemon/command_parser_executor.h"
|
|
|
|
|
|
|
|
|
|
|
@ -344,7 +345,8 @@ bool t_command_parser_executor::start_mining(const std::vector<std::string>& arg
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::STAGENET, args.front()))
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::STAGENET, args.front()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool dnssec_valid;
|
|
|
|
bool dnssec_valid;
|
|
|
|
std::string address_str;
|
|
|
|
std::string address_str = tools::dns_utils::get_account_address_as_str_from_url(args.front(), dnssec_valid,
|
|
|
|
|
|
|
|
[](const std::string &url, const std::vector<std::string> &addresses, bool dnssec_valid){return addresses[0];});
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::MAINNET, address_str))
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::MAINNET, address_str))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::TESTNET, address_str))
|
|
|
|
if(!cryptonote::get_account_address_from_str(info, cryptonote::TESTNET, address_str))
|
|
|
|