Skip to content

Commit

Permalink
eliminate default developer supplied infura web3 endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mining-visualizer committed Jul 18, 2019
1 parent ccff1be commit e114997
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions ethminer/MinerAux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/*-----------------------------------------------------------------------------------
Expand Down Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions tokenminer.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit e114997

Please sign in to comment.