Skip to content

Commit

Permalink
add Tidecoin
Browse files Browse the repository at this point in the history
  • Loading branch information
likloadm committed Nov 12, 2021
1 parent a5fa9ea commit 761ff25
Show file tree
Hide file tree
Showing 25 changed files with 49 additions and 6,106 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
#
#

FROM ubuntu:16.04
FROM ubuntu@sha256:b722e2654241f9681f4719dce7aa16a2f0c35769e17a636f5b39a33967d1aeb8


RUN apt-get update -qq && \
apt-get install -qqy automake libcurl4-openssl-dev git make gcc build-essential autotools-dev libtool sudo wget libssl-dev
RUN ls
RUN git clone https://github.com/likli/sugarmaker

RUN cd sugarmaker && \
./autogen.sh && \
./configure CFLAGS='-O2 -fomit-frame-pointer' && \
make

WORKDIR /sugarmaker
ENTRYPOINT ["./sugarmaker"]
#ENTRYPOINT ["./sugarmaker"]
CMD ["bash", "build.sh"]
21 changes: 21 additions & 0 deletions Dockerfile_Arm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Dockerfile for sugarmaker
# usage: docker run creack/cpuminer --url xxxx --user xxxx --pass xxxx
# ex: docker run creack/cpuminer --url stratum+tcp://ltc.pool.com:80 --user creack.worker1 --pass abcdef
#
#

FROM ubuntu@sha256:b722e2654241f9681f4719dce7aa16a2f0c35769e17a636f5b39a33967d1aeb8

RUN apt-get update -qq && \
apt-get install -qqy automake libcurl4-openssl-dev git make gcc build-essential autotools-dev libtool sudo wget libssl-dev
RUN ls
RUN git clone https://github.com/likli/sugarmaker

RUN cd sugarmaker && \
./autogen.sh && \
./configure CFLAGS='-O2 -fomit-frame-pointer' && \
make

WORKDIR /sugarmaker
ENTRYPOINT ["./sugarmaker"]
21 changes: 21 additions & 0 deletions Dockerfile_amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Dockerfile for sugarmaker
# usage: docker run creack/cpuminer --url xxxx --user xxxx --pass xxxx
# ex: docker run creack/cpuminer --url stratum+tcp://ltc.pool.com:80 --user creack.worker1 --pass abcdef
#
#

FROM ubuntu@sha256:b722e2654241f9681f4719dce7aa16a2f0c35769e17a636f5b39a33967d1aeb8

RUN apt-get update -qq && \
apt-get install -qqy automake libcurl4-openssl-dev git make gcc build-essential autotools-dev libtool sudo wget libssl-dev
RUN ls
RUN git clone https://github.com/likli/sugarmaker

RUN cd sugarmaker && \
./autogen.sh && \
./configure CFLAGS='-O2 -fomit-frame-pointer' && \
make

WORKDIR /sugarmaker
ENTRYPOINT ["./sugarmaker"]
2 changes: 0 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ sugarmaker_SOURCES = elist.h miner.h compat.h \
YespowerLitb.c \
YespowerIots.c \
YespowerItc.c \
yespower-1.0.1-power2b/sha256-p2b.c yespower-1.0.1-power2b/yespower-opt-p2b.c yespower-1.0.1-power2b/blake2b.c \
YespowerMbc.c \
YespowerYtn.c

sugarmaker_LDFLAGS = $(PTHREAD_FLAGS)
Expand Down
84 changes: 0 additions & 84 deletions YespowerMbc.c

This file was deleted.

2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rm -f config.status

# BUILD
./autogen.sh
./configure CFLAGS="-Wall -O2 -fomit-frame-pointer" target_os="x86_64-pc-linux-gnu"
./configure --with-curl="/usr/local/" --with-crypto="/usr/local/" CFLAGS="-Wall -O2 -fomit-frame-pointer" CXXFLAGS="$CFLAGS -std=gnu++11" LDFLAGS="-static" LIBS="-ldl -lz"
make -j$(nproc)
strip -s sugarmaker

Expand Down
15 changes: 2 additions & 13 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ enum algos {
ALGO_LITB_YESPOWER_1_0_1,
ALGO_IOTS_YESPOWER_1_0_1,
ALGO_ITC_YESPOWER_1_0_1,
ALGO_MBC_YESPOWER_1_0_1,
ALGO_YTN_YESPOWER_1_0_1,
ALGO_TDC_YESPOWER_1_0_1,
};
Expand All @@ -121,9 +120,8 @@ static const char *algo_names[] = {
[ALGO_LITB_YESPOWER_1_0_1] = "YespowerLitb",
[ALGO_IOTS_YESPOWER_1_0_1] = "YespowerIots",
[ALGO_ITC_YESPOWER_1_0_1] = "YespowerItc",
[ALGO_MBC_YESPOWER_1_0_1] = "YespowerMbc",
[ALGO_YTN_YESPOWER_1_0_1] = "YespowerYtn",
[ALGO_TDC_YESPOWER_1_0_1] = "YespowerTdc",
[ALGO_TDC_YESPOWER_1_0_1] = "YespowerTIDE",
};

bool opt_debug = false;
Expand Down Expand Up @@ -191,7 +189,7 @@ Options:\n\
YespowerLitb: LightBit\n\
YespowerIots: IOTS\n\
YespowerItc: Intercoin\n\
YespowerTdc: Tidecoin\n\
YespowerTIDE: Tidecoin\n\
YespowerMbc: power2b for MicroBitcoin\n\
YespowerYtn: Yenten (N4096, r16, NULL)\n\
-o, --url=URL URL of mining server\n\
Expand Down Expand Up @@ -1222,9 +1220,6 @@ static void *miner_thread(void *userdata)
case ALGO_ITC_YESPOWER_1_0_1:
max64 = 499;
break;
case ALGO_MBC_YESPOWER_1_0_1:
max64 = 499;
break;
case ALGO_YTN_YESPOWER_1_0_1:
max64 = 499;
break;
Expand Down Expand Up @@ -1286,12 +1281,6 @@ static void *miner_thread(void *userdata)
);
break;

case ALGO_MBC_YESPOWER_1_0_1:
rc = scanhash_mbc_yespower(
thr_id, work.data, work.target, max_nonce, &hashes_done
);
break;

case ALGO_YTN_YESPOWER_1_0_1:
rc = scanhash_ytn_yespower(
thr_id, work.data, work.target, max_nonce, &hashes_done
Expand Down
4 changes: 0 additions & 4 deletions miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ extern int scanhash_itc_yespower(int thr_id, uint32_t *pdata,
const uint32_t *ptarget,
uint32_t max_nonce, unsigned long *hashes_done);

extern int scanhash_mbc_yespower(int thr_id, uint32_t *pdata,
const uint32_t *ptarget,
uint32_t max_nonce, unsigned long *hashes_done);

extern int scanhash_ytn_yespower(int thr_id, uint32_t *pdata,
const uint32_t *ptarget,
uint32_t max_nonce, unsigned long *hashes_done);
Expand Down
18 changes: 0 additions & 18 deletions yespower-1.0.1-power2b/CHANGES

This file was deleted.

95 changes: 0 additions & 95 deletions yespower-1.0.1-power2b/PERFORMANCE

This file was deleted.

Loading

0 comments on commit 761ff25

Please sign in to comment.