what am i doing wrong?
cpu is working hard. i can hear it
anyone an idea?
Have you tried to remove the white plastic?
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
#!/usr/bin/env python
import subprocess
import sys
from decimal import Decimal
daemon, addr = sys.argv[1], sys.argv[2]
balance = Decimal(subprocess.check_output([daemon, 'getbalance']))
if balance > Decimal('1'):
cansend = balance - Decimal('0.01')
subprocess.check_call([daemon, 'sendtoaddress', addr, str(cansend)])
./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar
while sleep 1h; do python ./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar; done
#!/usr/bin/env python
import subprocess
import sys
from decimal import Decimal
daemon, addr = sys.argv[1], sys.argv[2]
balance = Decimal(subprocess.check_output([daemon, 'getbalance']))
if balance > Decimal('1'):
cansend = balance - Decimal('0.01')
subprocess.check_call([daemon, 'sendtoaddress', addr, str(cansend)])
./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar
while sleep 1h; do python ./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar; done
./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar
while sleep 1h; do python ./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar; done
./bal.py ./primecoind Aa43L3vExxLSLBLvj3NdRdaPzm2ZVUwXxE
while sleep 1h; do python ./bal.py ./primecoind Aa43L3vExxLSLBLvj3NdRdaPzm2ZVUwXxE; done
#!/usr/bin/env python
import subprocess
import sys
from decimal import Decimal
daemon, addr = sys.argv[1], sys.argv[2]
balance = Decimal(subprocess.check_output([daemon, 'getbalance']))
if balance > Decimal('1'):
cansend = balance - Decimal('0.01')
subprocess.check_call([daemon, 'sendtoaddress', addr, str(cansend)])
./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar
while sleep 1h; do python ./bal.py ./primecoind AQF7TMJxsjk7tjEs1BJTtxazbJtCk9Eaar; done
main.cpp
4610: uint256 phash = pblock->GetHeaderHash();
4611 - 4614: while ((phash < hashBlockHeaderLimit || CBigNum(phash) % bnHashFactor != 0) && pblock->nNonce < 0xffff0000){
pblock->nNonce++;
phash = pblock->GetHeaderHash();
}
4644: CBigNum bnMultiplierMin = bnPrimeMin * bnHashFactor / CBigNum(phash) + 1;
4655: if (MineProbablePrimeChain(*pblock, bnFixedMultiplier, fNewBlock, nTriedMultiplier, nProbableChainLength, nTests, nPrimesHit,phash))
prime.h
10: static const unsigned int nMaxSieveSize = 500000u;
60: bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit,uint256& headerhash);
prime.cpp
342: bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit,uint256& headerhash)
360: psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, headerhash, bnFixedMultiplier));
380: bnChainOrigin = CBigNum(headerhash) * bnFixedMultiplier * nTriedMultiplier;
Binary files primecoin-old/.git/index and primecoin-new/.git/index differ
diff -Nr -U1 primecoin-old/src/main.cpp primecoin-new/src/main.cpp
--- primecoin-old/src/main.cpp 2013-07-09 15:42:09.386735930 +0100
+++ primecoin-new/src/main.cpp 2013-07-09 16:00:21.617092110 +0100
@@ -4609,4 +4609,7 @@
Primorial(nPrimorialHashFactor, bnHashFactor);
- while ((pblock->GetHeaderHash() < hashBlockHeaderLimit || CBigNum(pblock->GetHeaderHash()) % bnHashFactor != 0) && pblock->nNonce < 0xffff0000)
- pblock->nNonce++;
+ uint256 phash = pblock->GetHeaderHash();
+ while ((phash < hashBlockHeaderLimit || CBigNum(phash) % bnHashFactor != 0) && pblock->nNonce < 0xffff0000) {
+ pblock->nNonce++;
+ phash = pblock->GetHeaderHash();
+ }
if (pblock->nNonce >= 0xffff0000)
@@ -4639,3 +4642,3 @@
- CBigNum bnMultiplierMin = bnPrimeMin * bnHashFactor / CBigNum(pblock->GetHeaderHash()) + 1;
+ CBigNum bnMultiplierMin = bnPrimeMin * bnHashFactor / CBigNum(phash) + 1;
while (bnPrimorial < bnMultiplierMin)
@@ -4650,3 +4653,3 @@
unsigned int nProbableChainLength;
- if (MineProbablePrimeChain(*pblock, bnFixedMultiplier, fNewBlock, nTriedMultiplier, nProbableChainLength, nTests, nPrimesHit))
+ if (MineProbablePrimeChain(*pblock, bnFixedMultiplier, fNewBlock, nTriedMultiplier, nProbableChainLength, nTests, nPrimesHit, phash))
{
diff -Nr -U1 primecoin-old/src/makefile.unix primecoin-new/src/makefile.unix
--- primecoin-old/src/makefile.unix 2013-07-09 15:42:09.390069265 +0100
+++ primecoin-new/src/makefile.unix 2013-07-09 16:05:11.093853175 +0100
@@ -8,3 +8,3 @@
# :=- --> No UPnP support - miniupnp not required
-USE_UPNP:=0
+USE_UPNP:=1
@@ -106,3 +106,4 @@
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
-xCXXFLAGS=-O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
+xCXXFLAGS=-O3 -march=native -fomit-frame-pointer -mfpmath=sse -Ofast -funroll-loops \
+ -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
diff -Nr -U1 primecoin-old/src/prime.cpp primecoin-new/src/prime.cpp
--- primecoin-old/src/prime.cpp 2013-07-09 15:42:09.390069265 +0100
+++ primecoin-new/src/prime.cpp 2013-07-09 16:02:22.720464935 +0100
@@ -341,3 +341,3 @@
// Mine probable prime chain of form: n = h * p# +/- 1
-bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit)
+bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit, uint256& headerhash)
{
@@ -359,3 +359,3 @@
nStart = GetTimeMicros();
- psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, block.GetHeaderHash(), bnFixedMultiplier));
+ psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, headerhash, bnFixedMultiplier));
while (psieve->Weave());
@@ -379,3 +379,3 @@
}
- bnChainOrigin = CBigNum(block.GetHeaderHash()) * bnFixedMultiplier * nTriedMultiplier;
+ bnChainOrigin = CBigNum(headerhash) * bnFixedMultiplier * nTriedMultiplier;
unsigned int nChainLengthCunningham1 = 0;
diff -Nr -U1 primecoin-old/src/prime.h primecoin-new/src/prime.h
--- primecoin-old/src/prime.h 2013-07-09 15:42:09.390069265 +0100
+++ primecoin-new/src/prime.h 2013-07-09 16:08:53.507259038 +0100
@@ -9,3 +9,3 @@
-static const unsigned int nMaxSieveSize = 1000000u;
+static const unsigned int nMaxSieveSize = 500000u;
static const uint256 hashBlockHeaderLimit = (uint256(1) << 255);
@@ -59,3 +59,3 @@
// Mine probable prime chain of form: n = h * p# +/- 1
-bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit);
+bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit, uint256& headerhash);
main.cpp
4610: uint256 phash = pblock->GetHeaderHash();
4611 - 4614: while ((phash < hashBlockHeaderLimit || CBigNum(phash) % bnHashFactor != 0) && pblock->nNonce < 0xffff0000){
pblock->nNonce++;
phash = pblock->GetHeaderHash();
}
4644: CBigNum bnMultiplierMin = bnPrimeMin * bnHashFactor / CBigNum(phash) + 1;
4655: if (MineProbablePrimeChain(*pblock, bnFixedMultiplier, fNewBlock, nTriedMultiplier, nProbableChainLength, nTests, nPrimesHit,phash))
prime.h
10: static const unsigned int nMaxSieveSize = 500000u;
60: bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit,uint256& headerhash);
prime.cpp
342: bool MineProbablePrimeChain(CBlock& block, CBigNum& bnFixedMultiplier, bool& fNewBlock, unsigned int& nTriedMultiplier, unsigned int& nProbableChainLength, unsigned int& nTests, unsigned int& nPrimesHit,uint256& headerhash)
360: psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, headerhash, bnFixedMultiplier));
380: bnChainOrigin = CBigNum(headerhash) * bnFixedMultiplier * nTriedMultiplier;