From e114997c256ea02e8cbc735caaa454b700b34244 Mon Sep 17 00:00:00 2001 From: mvis Date: Thu, 18 Jul 2019 15:04:08 -0700 Subject: [PATCH] eliminate default developer supplied infura web3 endpoint --- CMakeLists.txt | 2 +- README.md | 8 ++++++++ ethminer/MinerAux.h | 4 ++-- tokenminer.ini | 9 ++++++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc6d309..0d497be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # cmake global cmake_minimum_required(VERSION 2.8.12) -set(PROJECT_VERSION "2.1.18") +set(PROJECT_VERSION "2.1.19") if (${CMAKE_VERSION} VERSION_GREATER 3.0) cmake_policy(SET CMP0042 OLD) # fix MACOSX_RPATH cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project() diff --git a/README.md b/README.md index d71ccc1..c3d8e76 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,14 @@ Node configuration: ``` [General] +; Optional: uncomment this to specify your own web3 endpoint. you don't need +; this to mine successfully. it is only used to display your token balance +; on screen. you can get a web3 endpoint URL from https://infura.io/ or run +; your own light node. + +; Web3Url=https://mainnet.infura.io/v3/_your_infura_id_ +; Web3Url=http://127.0.0.1:8545 + ;-------------------------------------------------------- [Node] diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 05d94e2..12b1f23 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -124,7 +124,7 @@ class MinerCLI node.stratumPwd = ProgOpt::Get("Node2", "StratumPwd"); m_nodes.push_back(node); - m_web3Url = ProgOpt::Get("General", "Web3Url", "https://mainnet.infura.io/v3/7d1d166f63d84fc0865e5e410f583564"); + m_web3Url = ProgOpt::Get("General", "Web3Url"); } /*----------------------------------------------------------------------------------- @@ -854,7 +854,7 @@ class MinerCLI LogS << "Connecting to " << _nodeURL + ":" + _rpcPort << " ..."; // workRPC is used to get work and submit solutions - // nodeRPC is used to retrieve current ETH block number and query token balance + // nodeRPC is used to retrieve current ETH block number (solo mining only) and query token balance // if solo mining, both workRPC and nodeRPC point to the mainNet node (whatever the user specifies) // if pool mining, workRPC points to the mining pool, and nodeRPC points to Infura diff --git a/tokenminer.ini b/tokenminer.ini index b3eb87a..79024f6 100644 --- a/tokenminer.ini +++ b/tokenminer.ini @@ -1,10 +1,13 @@ [General] -; uncomment this to specify your own web3 endpoint, otherwise the miner -; will use it's own internal infura endpoint +; Optional: uncomment this to specify your own web3 endpoint. you don't need +; this to mine successfully. it is only used to display your token balance +; on screen. you can get a web3 endpoint URL from https://infura.io/ or run +; your own light node. -; Web3Url=https://mainnet.infura.io/v3/0000000000000000000000000000000 +; Web3Url=https://mainnet.infura.io/v3/_your_infura_id_ +; Web3Url=http://127.0.0.1:8545 ;-------------------------------------------------------- [Node]