You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- in order to stop populating userpass over and over again, populate once and reuse
- in order to eliminate discrepancies between char array sizes, use sizeof() in max_string_length of datum_config_options
- introduce a warning in case a config option is truncated
- where userpass was reused for a filepath, create a separate variable
- reduce user and pass to 128 bytes
- exit during config upon parsing error, makes more sense to me
{ .var_type=DATUM_CONF_STRING, .category="bitcoind", .name="rpcurl", .description="RPC URL for communication with local bitcoind. (GBT Template Source)",
{ .var_type=DATUM_CONF_INT, .category="bitcoind", .name="work_update_seconds", .description="How many seconds between normal work updates? (5-120, 40 suggested)",
{ .var_type=DATUM_CONF_BOOL, .category="bitcoind", .name="notify_fallback", .description="Fall back to less efficient methods for new block notifications. Can disable if you use blocknotify.",
{ .var_type=DATUM_CONF_STRING, .category="mining", .name="coinbase_tag_primary", .description="Text to have in the primary coinbase tag when not using pool (overridden by DATUM Pool)",
{ .var_type=DATUM_CONF_STRING, .category="mining", .name="coinbase_tag_secondary", .description="Text to have in the secondary coinbase tag (Short name/identifier)",
{ .var_type=DATUM_CONF_INT, .category="mining", .name="coinbase_unique_id", .description="A unique ID between 1 and 65535. This is appended to the coinbase. Make unique per instance of datum with the same coinbase tags.",
{ .var_type=DATUM_CONF_STRING, .category="mining", .name="save_submitblocks_dir", .description="Directory to save all submitted blocks to as submitblock JSON files",
{ .var_type=DATUM_CONF_STRING_ARRAY, .category="extra_block_submissions", .name="urls", .description="Array of bitcoind RPC URLs to submit our blocks to directly. Include auth info: http://user:pass@IP",
{ .var_type=DATUM_CONF_STRING, .category="datum", .name="pool_host", .description="Remote DATUM server host/ip to use for decentralized pooled mining (set to \"\" to disable pooled mining)",
{ .var_type=DATUM_CONF_STRING, .category="datum", .name="pool_pubkey", .description="Public key of the DATUM server for initiating encrypted connection. Get from secure location, or set to empty to auto-fetch.",
{ .var_type=DATUM_CONF_BOOL, .category="datum", .name="pool_pass_workers", .description="Pass stratum miner usernames as sub-worker names to the pool (pool_username.miner's username)",
{ .var_type=DATUM_CONF_BOOL, .category="datum", .name="pool_pass_full_users", .description="Pass stratum miner usernames as raw usernames to the pool (use if putting multiple payout addresses on miners behind this gateway)",
DLOG_ERROR("Could not parse configuration option %s.%s. Type should be %s", datum_config_options[i].category, datum_config_options[i].name, (datum_config_options[i].var_type<DATUM_CONF_TYPES)?datum_conf_var_type_text[datum_config_options[i].var_type]:"UNKNOWN");
296
+
return-1;
297
+
} elseif (j==-2) {
298
+
DLOG_ERROR("Configuration option %s.%s exceeds maximum length of %d", datum_config_options[i].category, datum_config_options[i].name, datum_config_options[i].max_string_len);
2024-12-15 19:00:08.570 [ datum_logger_thread] DEBUG: Logging thread started! (Approximately 32 MB of RAM allocated for up to 116507 entries per cycle)
2
+
2024-12-15 19:00:08.570 [ main] INFO: Waiting on DATUM server... 15
3
+
2024-12-15 19:00:08.570 [ datum_coinbaser_thread] DEBUG: Coinbaser thread active
4
+
2024-12-15 19:00:08.570 [ datum_api_thread] INFO: API listening on port 13335
2024-12-15 19:00:08.862 [ datum_protocol_handshake_response] INFO: DATUM Server MOTD: DATUM Prime - v0.2 - "They aint gonna sink this battleship, no way"
9
+
2024-12-15 19:00:08.863 [ datum_protocol_client_configure] DEBUG: client configuration cmd received from DATUM server
10
+
2024-12-15 19:00:08.863 [ datum_protocol_client_configure] DEBUG: DATUM Pool Payout Scriptsig: (len 23) a914413b5901fe4e591c95405fd446b5b002da575bf087
11
+
2024-12-15 19:00:08.863 [ datum_protocol_client_configure] DEBUG: DATUM Pool Coinbase Tag: "< OCEAN.XYZ >"
12
+
2024-12-15 19:00:08.863 [ datum_protocol_client_configure] DEBUG: DATUM Pool Prime ID: 5d969e58
13
+
2024-12-15 19:00:08.863 [ datum_protocol_client_configure] DEBUG: DATUM Pool Min Diff: 131072
0 commit comments