Skip to content

Commit

Permalink
message-generator failing test - fix attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGab19 committed Sep 28, 2023
1 parent 7c5df35 commit 8635c61
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
48 changes: 48 additions & 0 deletions test/config/tproxy-config-no-jd-sv1-cpu-md.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Braiins Pool Upstream Connection
# upstream_authority_pubkey = "u95GEReVMjK6k5YqiSFNqqTnKU4ypU2Wm8awa6tmbmDmk1bWt"
# upstream_address = "18.196.32.109"
# upstream_port = 3336

# Local SRI Pool Upstream Connection
upstream_address = "127.0.0.1"
upstream_port = 34254
upstream_authority_pubkey = "2di19GHYQnAZJmEpoUeP7C3Eg9TCcksHr23rZCC83dvUiZgiDL"

# Local Mining Device Downstream Connection
downstream_address = "0.0.0.0"
downstream_port = 34255

# When testing we need to make sure that the tproxy is able to send valid solution to the TP, so we
# force the tproxy to not set the solution to the pool so that only the tproxy can send it to the TP
test_only_share_withhold=true

# Version support
max_supported_version = 2
min_supported_version = 2

# Minimum extranonce2 size for downstream
# Max value: 16 (leaves 0 bytes for search space splitting of downstreams)
# Max value for CGminer: 8
# Min value: 2
min_extranonce2_size = 8
coinbase_reward_sat = 5_000_000_000

# optional jn config, if set the tproxy start on JN mode
#[jn_config]
#jn_address = "127.0.0.1:34264"
#tp_address = "127.0.0.1:8442"

# Difficulty params
[downstream_difficulty_config]
# hashes/s of the weakest miner that will be connecting
min_individual_miner_hashrate=100_000.0
# minimum number of shares needed before a mining.set_difficulty is sent for updating targets
miner_num_submits_before_update=5
# target number of shares per minute the miner should be sending
shares_per_minute = 100.0

[upstream_difficulty_config]
# interval in seconds to elapse before updating channel hashrate with the pool
channel_diff_update_interval = 60
# estimated accumulated hashrate of all downstream miners
channel_nominal_hashrate = 500.0
4 changes: 2 additions & 2 deletions test/message-generator/mock/template-provider-mock0.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"coinbase_tx_version": 2,
"coinbase_prefix": [1,16,0],
"coinbase_tx_input_sequence": 4294967295,
"coinbase_tx_value_remaining": 5000000000,
"coinbase_tx_value_remaining": 625000000,
"coinbase_tx_outputs_count": 0,
"coinbase_tx_outputs": [],
"coinbase_tx_locktime": 0,
Expand Down Expand Up @@ -45,7 +45,7 @@
"coinbase_tx_version": 2,
"coinbase_prefix": [1,16,0],
"coinbase_tx_input_sequence": 4294967295,
"coinbase_tx_value_remaining": 5000000000,
"coinbase_tx_value_remaining": 625000000,
"coinbase_tx_outputs_count": 0,
"coinbase_tx_outputs": [],
"coinbase_tx_locktime": 0,
Expand Down
4 changes: 2 additions & 2 deletions test/message-generator/test/pool-sri-test-1-standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"channel_id": 1,
"sequence_number": 0,
"job_id": 0,
"nonce": 341808546,
"ntime": 1695837693,
"nonce": 927894720,
"ntime": 1671039088,
"version": 536870912
},
"id": "submit_shares"
Expand Down

0 comments on commit 8635c61

Please sign in to comment.