Browse Source

Merge branch 'master' into vmask

master
Con Kolivas 7 years ago
parent
commit
323373a70c
  1. 3
      src/ckpmsg.c
  2. 2
      src/stratifier.c

3
src/ckpmsg.c

@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 Con Kolivas * Copyright 2014-2018 Con Kolivas
* Copyright 2014-2016 Andrew Smith * Copyright 2014-2016 Andrew Smith
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
@ -16,6 +16,7 @@
#include <string.h> #include <string.h>
#include <termios.h> #include <termios.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h>
#include "libckpool.h" #include "libckpool.h"
#include "utlist.h" #include "utlist.h"

2
src/stratifier.c

@ -5343,7 +5343,7 @@ static user_instance_t *generate_user(ckpool_t *ckp, stratum_instance_t *client,
ck_wunlock(&sdata->instance_lock); ck_wunlock(&sdata->instance_lock);
/* Is this a btc address based username? */ /* 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); user->btcaddress = generator_checkaddr(ckp, username, &user->script, &user->segwit);
if (new_user) { if (new_user) {
LOGNOTICE("Added new user %s%s", username, user->btcaddress ? LOGNOTICE("Added new user %s%s", username, user->btcaddress ?

Loading…
Cancel
Save