From dcc03233d07ca4f6c404dca9bf3bfa447629375a Mon Sep 17 00:00:00 2001 From: K1773R Date: Sat, 18 Jan 2014 00:22:04 +0100 Subject: [PATCH 1/5] adding working dnsseed --- src/net.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net.cpp b/src/net.cpp index 569da7c0..4c684737 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1196,6 +1196,7 @@ static const char *strMainNetDNSSeed[][2] = { {"xpm.altcointech.net", "dnsseed.xpm.altcointech.net"}, {"xpm2.altcointech.net", "dnsseed.xpm2.altcointech.net"}, {"primeseed.muuttuja.org", "primeseed.muuttuja.org"},*/ + {"datacoin.darkgamex.ch", "dtc.dnsseed01.datacoin.darkgamex.ch"}, {NULL, NULL} }; From 8cf1953dea256542d2ff5e48aed13b981874f039 Mon Sep 17 00:00:00 2001 From: K1773R Date: Sun, 19 Jan 2014 00:07:43 +0100 Subject: [PATCH 2/5] trying to fix compilation for PPC32/64 platforms --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1553d149..d72e9e75 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4684,6 +4684,15 @@ void static BitcoinMiner(CWallet *pwallet) else { #ifdef __GNUC__ + #ifdef CONFIG_PPC32 + nPrimeCounter += nPrimesHit; + nTestCounter += nTests; + nChainCounter += nChainsHit; + #elif CONFIG_PPC64 + nPrimeCounter += nPrimesHit; + nTestCounter += nTests; + nChainCounter += nChainsHit; + #else // Use atomic increment __sync_add_and_fetch(&nPrimeCounter, nPrimesHit); __sync_add_and_fetch(&nTestCounter, nTests); From 3dc9e8e2ce846be82c6e0f01debadeb72eb8d147 Mon Sep 17 00:00:00 2001 From: K1773R Date: Sun, 19 Jan 2014 00:10:16 +0100 Subject: [PATCH 3/5] forgot #endif --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d72e9e75..4e0cc8c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4684,19 +4684,20 @@ void static BitcoinMiner(CWallet *pwallet) else { #ifdef __GNUC__ - #ifdef CONFIG_PPC32 + #ifdef CONFIG_PPC32 nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit; - #elif CONFIG_PPC64 + #elif CONFIG_PPC64 nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit; - #else + #else // Use atomic increment __sync_add_and_fetch(&nPrimeCounter, nPrimesHit); __sync_add_and_fetch(&nTestCounter, nTests); __sync_add_and_fetch(&nChainCounter, nChainsHit); + #endif #else nPrimeCounter += nPrimesHit; nTestCounter += nTests; From 2bea2dc3d7675d0264577f1577cc8439091c42a6 Mon Sep 17 00:00:00 2001 From: K1773R Date: Sun, 19 Jan 2014 00:16:21 +0100 Subject: [PATCH 4/5] __ppc__ seems to be default, copied definition --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e0cc8c4..e13c0eb4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4684,11 +4684,11 @@ void static BitcoinMiner(CWallet *pwallet) else { #ifdef __GNUC__ - #ifdef CONFIG_PPC32 + #ifdef __ppc__ nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit; - #elif CONFIG_PPC64 + #elif __ppc64__ nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit; From f215b9a469bd99ef873f1d3adb27fe820617c86f Mon Sep 17 00:00:00 2001 From: K1773R Date: Sun, 19 Jan 2014 00:31:15 +0100 Subject: [PATCH 5/5] __ppc__ didnt work, but __powerpc__ does. but seems some other things needed to be fixed for a working PPC version --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e13c0eb4..30512d3e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4684,11 +4684,11 @@ void static BitcoinMiner(CWallet *pwallet) else { #ifdef __GNUC__ - #ifdef __ppc__ + #ifdef __powerpc__ nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit; - #elif __ppc64__ + #elif __powerpc64__ nPrimeCounter += nPrimesHit; nTestCounter += nTests; nChainCounter += nChainsHit;