From f6390b3c930a1561713fe2064f5f2e16eac4d3ec Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 7 Feb 2018 10:32:09 +1100 Subject: [PATCH] Remove length restriction on checking usernames for btc address to be compatible with segwit addresses. --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 1032a36f..e1344f17 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5314,7 +5314,7 @@ static user_instance_t *generate_user(ckpool_t *ckp, stratum_instance_t *client, ck_wunlock(&sdata->instance_lock); /* Is this a btc address based username? */ - if (!ckp->proxy && (new_user || !user->btcaddress) && (len > 26 && len < 35)) + if (!ckp->proxy && (new_user || !user->btcaddress)) user->btcaddress = generator_checkaddr(ckp, username, &user->script, &user->segwit); if (new_user) { LOGNOTICE("Added new user %s%s", username, user->btcaddress ?