Skip to content

Commit

Permalink
add support for fairbrix and tenebrix
Browse files Browse the repository at this point in the history
  • Loading branch information
wiggi committed Jul 17, 2013
1 parent 4d6e2a2 commit 57f3965
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ INC = \
-I. \
-DNDEBUG \
# -DLITECOIN \
# -DFAIRBRIX \
# -DTENEBRIX \
COPT = \
-g0 \
Expand Down
6 changes: 6 additions & 0 deletions cb/transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ struct Transactions:public Callback
#if defined(LITECOIN)
const char *addr = "LKvTVnkK2rAkJXfgPdkaDRgvEGvazxWS9o";
warning("no addresses specified, using popular address %s", addr);
#elif defined(FAIRBRIX)
const char *addr = "fca1JykZfJ85MiX8JfGuyKYQ3pkpjsafBg";
warning("no addresses specified, using example address %s", addr);
#elif defined(TENEBRIX)
const char *addr = "tJNrBA3j92GcU3yon7mhmKAUVyUeRYaHMD";
warning("no addresses specified, using example address %s", addr);
#else
const char *addr = "1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp";
warning("no addresses specified, using satoshi's dice address %s", addr);
Expand Down
8 changes: 8 additions & 0 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ static void mapBlockChainFiles()
std::string coinName(
#if defined LITECOIN
"/.litecoin/"
#elif defined FAIRBRIX
"/.fairbrix/"
#elif defined TENEBRIX
"/.tenebrix/"
#else
"/.bitcoin/"
#endif
Expand Down Expand Up @@ -516,6 +520,10 @@ static bool buildBlock(
static const uint32_t expected =
#if defined(LITECOIN)
0xdbb6c0fb
#elif defined(FAIRBRIX)
0xdbf9dbf9
#elif defined(TENEBRIX)
0xd9b4daf9
#else
0xd9b4bef9
#endif
Expand Down
4 changes: 4 additions & 0 deletions util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ bool addrToHash160(
memcpy(1+data, hash160, kRIPEMD160ByteSize);
#if defined(LITECOIN)
data[0] = 48;
#elif defined(FAIRBRIX)
data[0] = 95;
#elif defined(TENEBRIX)
data[0] = 127;
#else
data[0] = 0;
#endif
Expand Down
4 changes: 4 additions & 0 deletions util.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@
const uint8_t *hash160,
#if defined(LITECOIN)
uint8_t type = 48
#elif defined(FAIRBRIX)
uint8_t type = 95
#elif defined(TENEBRIX)
uint8_t type = 127
#else
uint8_t type = 0
#endif
Expand Down

0 comments on commit 57f3965

Please sign in to comment.