Skip to content

Commit bb9b25a

Browse files
committed
protocol: Remove redunant condition from final else block in datum_protocol_submit_username
1 parent 4c85eeb commit bb9b25a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/datum_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ int datum_protocol_pow(void *arg) {
13301330
} else if (datum_config.datum_pool_pass_full_users && pow->username[0] != '.') {
13311331
// TODO: Make sure the usernames are addresses, and if not use one of the configured addresses
13321332
j = snprintf(username, 385, "%s", pow->username);
1333-
} else if (datum_config.datum_pool_pass_full_users || datum_config.datum_pool_pass_workers) {
1333+
} else {
13341334
// append the miner's username to the configured address as .workername
13351335
j = snprintf(username, 385, "%s%s%s", datum_config.mining_pool_address, (pow->username[0] == '.') ? "" : ".", pow->username);
13361336
}

0 commit comments

Comments
 (0)