-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make base node support 1 click mining (#6019)
Description --- On startup make the basenode ask you if you want to run mining or not. Add a flag `--enable-mining` Fix base node flag `--enable-grpc` Motivation and Context --- This will make it easier to mine from a 1-click perspective where a new miner does not need to edit confiles in order to mine How Has This Been Tested? --- manual
- Loading branch information
1 parent
a68d0dd
commit d377269
Showing
12 changed files
with
213 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
######################################################################################################################## | ||
# # | ||
# Base Node Configuration Options (BaseNodeConfig) # | ||
# # | ||
######################################################################################################################## | ||
|
||
# If you are not running a Minotari Base node, you can simply leave everything in this section commented out. Base nodes | ||
# help maintain the security of the Minotari token and are the surest way to preserve your privacy and be 100% sure that | ||
# no-one is cheating you out of your money. | ||
|
||
[dibbler.base_node] | ||
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json") | ||
identity_file = "config/base_node_id_dibbler.json" | ||
|
||
[igor.base_node] | ||
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json") | ||
identity_file = "config/base_node_id_igor.json" | ||
|
||
[esmeralda.base_node] | ||
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json") | ||
identity_file = "config/base_node_id_esmeralda.json" | ||
|
||
[stagenet.base_node] | ||
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json") | ||
identity_file = "config/base_node_id_stagenet.json" | ||
|
||
[nextnet.base_node] | ||
# A path to the file that stores your node identity and secret key (default = "config/base_node_id.json") | ||
identity_file = "config/base_node_id_nextnet.json" | ||
|
||
[base_node] | ||
# Set to false to disable the base node GRPC server (default = true) | ||
#grpc_enabled = true | ||
|
||
# The socket to expose for the gRPC base node server (default = "/ip4/127.0.0.1/tcp/18142") | ||
#grpc_address = "/ip4/127.0.0.1/tcp/18142" | ||
|
||
# gRPC authentication method (default = "none") | ||
#grpc_authentication = { username = "admin", password = "xxxx" } | ||
|
||
# Use gRPC over TLS (default = false) | ||
#grpc_tls_enabled = false |
38 changes: 38 additions & 0 deletions
38
common/config/presets/c_base_node_b_mining_deny_methods.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Uncomment all gRPC server methods that should be denied default (only active when `grpc_enabled = true`) | ||
grpc_server_deny_methods = [ | ||
"get_version", | ||
"check_for_updates", | ||
"get_sync_info", | ||
"get_sync_progress", | ||
#"get_tip_info", | ||
"identify", | ||
"get_network_status", | ||
#"list_headers", | ||
"get_header_by_hash", | ||
"get_blocks", | ||
"get_block_timing", | ||
"get_constants", | ||
"get_block_size", | ||
"get_block_fees", | ||
#"get_tokens_in_circulation", | ||
#"get_network_difficulty", | ||
#"get_new_block_template", | ||
#"get_new_block", | ||
#"get_new_block_blob", | ||
#"submit_block", | ||
#"submit_block_blob", | ||
#"submit_transaction", | ||
#"search_kernels", | ||
#"search_utxos", | ||
#"fetch_matching_utxos", | ||
"get_peers", | ||
"get_mempool_transactions", | ||
#"transaction_state", | ||
#"list_connected_peers", | ||
#"get_mempool_stats", | ||
#"get_active_validator_nodes", | ||
#"get_shard_key", | ||
#"get_template_registrations", | ||
#"get_side_chain_utxos", | ||
] |
37 changes: 37 additions & 0 deletions
37
common/config/presets/c_base_node_b_non_mining_deny_methods.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Uncomment all gRPC server methods that should be denied default (only active when `grpc_enabled = true`) | ||
grpc_server_deny_methods = [ | ||
"get_version", | ||
"check_for_updates", | ||
"get_sync_info", | ||
"get_sync_progress", | ||
"get_tip_info", | ||
"identify", | ||
"get_network_status", | ||
#"list_headers", | ||
"get_header_by_hash", | ||
"get_blocks", | ||
"get_block_timing", | ||
"get_constants", | ||
"get_block_size", | ||
"get_block_fees", | ||
#"get_tokens_in_circulation", | ||
#"get_network_difficulty", | ||
"get_new_block_template", | ||
"get_new_block", | ||
"get_new_block_blob", | ||
#"submit_block", | ||
#"submit_block_blob", | ||
#"submit_transaction", | ||
#"search_kernels," | ||
#"search_utxos", | ||
#"fetch_matching_utxos", | ||
"get_peers", | ||
"get_mempool_transactions", | ||
#"transaction_state", | ||
#"list_connected_peers", | ||
#"get_mempool_stats", | ||
#"get_active_validator_nodes", | ||
#"get_shard_key", | ||
#"get_template_registrations", | ||
#"get_side_chain_utxos", | ||
] |
Oops, something went wrong.