Skip to content

Commit e114997

Browse files
eliminate default developer supplied infura web3 endpoint
1 parent ccff1be commit e114997

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# cmake global
22
cmake_minimum_required(VERSION 2.8.12)
33

4-
set(PROJECT_VERSION "2.1.18")
4+
set(PROJECT_VERSION "2.1.19")
55
if (${CMAKE_VERSION} VERSION_GREATER 3.0)
66
cmake_policy(SET CMP0042 OLD) # fix MACOSX_RPATH
77
cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project()

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ Node configuration:
9393
```
9494
[General]
9595
96+
; Optional: uncomment this to specify your own web3 endpoint. you don't need
97+
; this to mine successfully. it is only used to display your token balance
98+
; on screen. you can get a web3 endpoint URL from https://infura.io/ or run
99+
; your own light node.
100+
101+
; Web3Url=https://mainnet.infura.io/v3/_your_infura_id_
102+
; Web3Url=http://127.0.0.1:8545
103+
96104
;--------------------------------------------------------
97105
[Node]
98106

ethminer/MinerAux.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class MinerCLI
124124
node.stratumPwd = ProgOpt::Get("Node2", "StratumPwd");
125125
m_nodes.push_back(node);
126126

127-
m_web3Url = ProgOpt::Get("General", "Web3Url", "https://mainnet.infura.io/v3/7d1d166f63d84fc0865e5e410f583564");
127+
m_web3Url = ProgOpt::Get("General", "Web3Url");
128128
}
129129

130130
/*-----------------------------------------------------------------------------------
@@ -854,7 +854,7 @@ class MinerCLI
854854
LogS << "Connecting to " << _nodeURL + ":" + _rpcPort << " ...";
855855

856856
// workRPC is used to get work and submit solutions
857-
// nodeRPC is used to retrieve current ETH block number and query token balance
857+
// nodeRPC is used to retrieve current ETH block number (solo mining only) and query token balance
858858

859859
// if solo mining, both workRPC and nodeRPC point to the mainNet node (whatever the user specifies)
860860
// if pool mining, workRPC points to the mining pool, and nodeRPC points to Infura

tokenminer.ini

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11

22
[General]
33

4-
; uncomment this to specify your own web3 endpoint, otherwise the miner
5-
; will use it's own internal infura endpoint
4+
; Optional: uncomment this to specify your own web3 endpoint. you don't need
5+
; this to mine successfully. it is only used to display your token balance
6+
; on screen. you can get a web3 endpoint URL from https://infura.io/ or run
7+
; your own light node.
68

7-
; Web3Url=https://mainnet.infura.io/v3/0000000000000000000000000000000
9+
; Web3Url=https://mainnet.infura.io/v3/_your_infura_id_
10+
; Web3Url=http://127.0.0.1:8545
811

912
;--------------------------------------------------------
1013
[Node]

0 commit comments

Comments
 (0)