Bitcoin Forum
May 27, 2024, 05:47:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 »
41  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: November 06, 2013, 07:13:13 PM
Ok, rolled back to the primecoin client found at primecoin.org (not the high perf one) and erased all blocks and stuff but not my dat.
Got a new payment in, but the aforementioned stuck deposit is still stuck at 0 confirmations.
Here's the txid: 368f08fc87b8712432be07549201de515122345f26583ba4409bc42f6e78d618-000

Any clues?

Looks like that transaction never made it to the network. Unsent transactions are stored in the wallet.dat file. If you keep the wallet running, it should eventually resend that transaction. Did you check whether the date and time were correct?

If you want to get rid of the unconfirmed transaction, you can use -salvagewallet which will extract only the private keys from your wallet and ignores the transactions. As always, it's best to make a copy of your wallet.dat before doing this.
42  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: November 06, 2013, 11:39:48 AM
The difficulty adjustment works like an oscillator at the stepup/stepdown boundary, so the block spacing target is still maintained. For example it could stabilize at probability(difficulty <=9+255/256) = a, probability(difficulty >= 10) = 1-a. This should allow block spacing target to be maintained at 1 minute. Thus the difficulty jump (up/down) at the boundary has no negative effect on the network.

Thanks Sunny. That's what I suspected would happen.
43  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: November 05, 2013, 04:23:33 PM
Probability of finding a 10th chain link when you have a 9 chain and are sieving on 9-chains: 1 / ln(2^256) = 0.005635

That's not quite right. The primorial that is embedded in the chain origin actually changes the probability a lot. If you filter out the prime p_i, the probability increases by

1 / (1 - 1/p_i)

If you take a product of those up to p_17 which is 59, you get 7.47493. So that's how many times bigger the probability will be if the number is a multiple of 59#. Also, I usually assume that the numbers are about 300 bits in size. So then the probability for the 10th number being prime becomes:

7.47493 * 1/ln(2^300) = 0.0359468

And if I plug that number into your calculations, I get:

Sieve Size 9:
9-chains per day: 0.54 (reported by miner)
10-chains per day: 0.54 * 0.0359468 = 0.0194113
block per day = 0.54*0.04 + 0.0194113 = 0.0410113

And now size 9 wins by a significant margin.
44  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: November 05, 2013, 02:42:52 PM
That's definitely interesting if you are seeing increased block production when targeting length 10 instead of 9.

I'm aware that the distribution of the fractional remainder isn't really uniform. That's one major issue which may be screwing up my calculations. I'll need to check how big the impact is at some point. I'll also need to double check my earlier calculations too. I have already accounted for the fact that lots of 9-chains are found when targeting length 10. In fact, I assumed that ten times more 9-chains are found than 10-chains when targeting length 10.

Also, if you look at the difficulty charts from a historical perspective, once a target length is breeched the network difficulty quickly increases to the x.3-x.4 range - and I expect this to be the case with 10 as well..

I would argue that the difficulty increase to the 9.3 range was caused by the momentum left after the transition to 9.0. The block rate was about 1.5 blocks/minute on July 22 after the transition to 9.0. Cutting that rate by 1/3 brings it to the target rate of 1 block/min. The difficulty rising to about 9.3 does just that. The chart also shows that the block rate was about 3.0 blocks/minute before the transition. That means that going from 8.996 to 9.0 somehow seems to have cut the block rate in half.

This one is an open question for me.. but I think it might be working against us. I see an abnormal number of 9.99999 chains and never see the corresponding 9.000001 chains. But the possible reasons behind that are over my head, other than it is non-linear.

I looked at the fractional remainder a while back. I remember seeing a large number of 0xFFFFFF (this is the 24-bit version of the fractional difficulty) values which should statistically be nearly impossible (if you wanted to assume that it would be uniformly distributed).
45  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: November 05, 2013, 10:16:57 AM
mikaelh, I'm having trouble with the wallet...it stopped syncinc despite me trying the fixes you guys suggested.
Not sure what's up with that, I got stuck with a transaction with 0 of 6 confirmations.

Well, you can try looking at the debug.log file to see if there's a cause there. The file is in the %APPDATA%\Primecoin folder since you're on Windows. If all else fails, you can try deleting the database files in that folder. Make sure to preserve wallet.dat though.

Done that, didn't work...I don't get it. How can I tell if the time is incorrectly set? I have a few coins stuck there. Sad

Check the date (including year), the time and the timezone. Which block are you getting stuck on? You can compare that to the block count here:
http://primecoin.21stcenturymoneytalk.org/
46  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: November 05, 2013, 10:13:27 AM
If my understanding is correct, when we hit 10.000 diff, then the chainsperday value will change to a much lower number since its related directly to the whole integer value of the difficulty.

If you only have one (or a small few) machines then you probably wont see a block each day anymore.

I think it is mistake, because  longer (>9) length chains are ignored when the block-found probability  is calculated. See http://www.peercointalk.org/index.php?topic=695.msg6311#msg6311
If the longer chains are included, there is no jump in block-found difficulty when the network difficulty goes over an integer limit.

Yes, my original formula here actually wasn't accurate for high fractional difficulties. The issue boils down to the probability of the 10th number being prime. I thought that the probability would be negligible but actually it is about 3.5% according to my estimates (this number depends on the primorial used during mining). That means that about 3.5% of 9+-chains turn out to be 10-chains (9+-chains refers to chains at least of length 9). As the fractional difficulty increases, the number of accepted 9-chains diminishes while the 10-chains remain unaffected. Eventually there will be more 10-chains qualifying for blocks than 9-chains.

So my latest estimate for the amount of blocks found is:
blocks/day = chains/day * (1 - fracDiff + 0.035)

There will be a jump in the difficulty when difficulty goes to 10.0. That's because none of the 9-chains will qualify for blocks and we have to start looking for 10+-chains. I've actually been working on a paper related to this. Right now it looks like 10.0 will be more difficult than 9.996 will be which means we could get stuck between 9.996 and 10.0 for a while.

You can actually see that happening before in my charts:
http://xpm.muuttuja.org/charts/

If you look closely enough, the network block rate seems to have dropped when we went from 8.996 to 9.0. Of course we were using an older version of the mining algorithm back then which probably behaved slightly different.
47  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: November 04, 2013, 08:58:58 PM
mikaelh, I'm having trouble with the wallet...it stopped syncinc despite me trying the fixes you guys suggested.
Not sure what's up with that, I got stuck with a transaction with 0 of 6 confirmations.

Well, you can try looking at the debug.log file to see if there's a cause there. The file is in the %APPDATA%\Primecoin folder since you're on Windows. If all else fails, you can try deleting the database files in that folder. Make sure to preserve wallet.dat though.
48  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: November 03, 2013, 11:20:49 AM
Quote
Primecoin is looking for chains that are at least 9 primes long (so k >= 9). The current mining algorithm is producing numbers that are about 300-bits long which is about 90 digits. The origin is always a multiple of the block header hash which is 256 bits long. This hash is then multiplied by a few small prime numbers and a multiplier produced by our sieve algorithm. The miner can occasionally try using big multipliers which may result in a new record if the numbers are primes.

Ah interesting. Sorry I'm not very good in c++ neither can I just simply change the code, compile and then find out. So in the miner you just multiply the block header (which is different to the showed hash in the explorer which is very confusing) which different primes? So the CSieveOfEratosthenes tries just to find this multipliers?

Sorry, I don't want to disturb u all the time. Are there somewhere more informations to the code?

Multiplying the hash with small prime factors is simply a trick to increase the chances of finding a prime chain. Lets say we have a number N such that N = 2 * 3 * 5 * 7 * n, i.e. N is divisible by 2, 3, 5 and 7. Now we know that none of these numbers are divisible by these prime factors: N - 1, N + 1, 2N - 1, 2N + 1, 4N - 1, 4N + 1, ... .

Filtering out the prime factor p_i from a random number M increases the chances M being prime by 1 / (1 - 1/p_i). So if you filter out all even numbers, you double the chances. If you filter all numbers divisible by 3, you increase the chances by 50%. And if you filter out both, the chances are tripled.

CSieveOfEratosthenes is also increasing the chances of finding prime chains by filtering out all numbers divisible by slightly larger primes. The chances of finding a prime chain increase slightly with every prime factor that is filtered out. The details of this process are pretty complicated. I think the only place where the algorithm is described is the code itself.
49  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: November 02, 2013, 09:19:41 AM
Hi, I'm having trouble syncing my wallet now...
I added the muuttuja node, and am still getting crashes and errors when the wallet is about to sync.

Did you have the built-in miner running at the same time? AFAIK, those crashes occur randomly when mining. Also, some of your database files may be corrupt now because of the crash.
50  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 31, 2013, 09:51:47 AM
Hi,

out of curiosity I looked in primecointalk and found this information:

Quote
Yeah big time  Wink

http://users.cybercity.dk/~dsl522332/math/simultprime.htm

We now own the records for 13-primes, 12-primes, 11-primes and 10-primes Grin

I like the idea to use mining for scientific issues. Can you explain to me, what the records mean?

My hypothesis is -- no, I don't have a hypothesis. Looking on http://users.cybercity.dk/~dsl522332/math/simultprime.htm#history I found out there are several records for prime numbers, but primecoin is far away from the records with 17425170 digits. But there are several categories regarding to k. Is k the number of primes?

thanks

Simultaneous primes refers to a cluster of primes that are somehow connected to each other. 'k' is the number of primes in the cluster. Longer primes (in terms of how many digits you would need to write it down) are harder to find and are considered better. The first category where k=1 is equivalent to the largest known prime which is a Mersenne prime with a whopping 17425170 digits.

Primecoin is trying to find Cunningham chains. The primes in a Cunningham chain of the first kind follow the pattern:

n - 1
2n - 1
4n - 1
8n - 1
...
2^i * n - 1

As you can see all the primes are connected to 'n' which is called the origin. A Cunningham chain of the second kind looks like this:

n + 1
2n + 1
4n + 1
8n + 1
...
2^i * n + 1

Primecoin is looking for chains that are at least 9 primes long (so k >= 9). The current mining algorithm is producing numbers that are about 300-bits long which is about 90 digits. The origin is always a multiple of the block header hash which is 256 bits long. This hash is then multiplied by a few small prime numbers and a multiplier produced by our sieve algorithm. The miner can occasionally try using big multipliers which may result in a new record if the numbers are primes.
51  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 30, 2013, 06:21:44 PM
How come a prime chain origin be divisible by any number (except 1 and itself) since it's a prime number ?
What did I get wrong ?

The origin is defined as the number next to the first prime in the chain (either -1 or +1 depending on chain type). In the case Primecoin, the primes are always odd, which means that the origin is even and thus is not a prime.
52  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: October 30, 2013, 05:45:51 PM
Yup, running a reindex should be one way to fix the issue. There's a bug in the Primecoin client which causes a crash if you start the miner when running -reindex. So make sure to specify -gen=0 to avoid that.
53  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 30, 2013, 05:44:19 PM
Ah I think I get it now. So when you try to find a chain, you start with the hash. Let's assume the hash is 100. So then you try 200 as prime origin. If it doesn't work, you try 300. Or maybe you start with 234*100. You always start with a prime origin which can be divided by the hash.

Because now I did some calculations, too. My fallacy was that I thought there are so many big numbers which can be divided by the hash. But now I realize, it is only every 2^256th number. And that is not much...

Ok, thank you guys Wink But that is good news for me, because if I was right this would be a problem.

Actually, there is still a small loophole. It's possible to discovered a prime chain such that the origin has lots of factors in it. Sunny has outlined the idea in the v0.2 protocol proposal:
http://www.peercointalk.org/index.php?topic=453.0

It's not really realistic but the protocol is still getting tightened up in the future.
54  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 30, 2013, 05:40:39 PM
Do I still need a conf file even if I'm mining on ypool? If yes, how does the setup look like? I usually do a conf if I'm solo mining.

Well, you only need to get your wallet connected once and the issue should be fixed. Typing the addnode command in the debugging console should be easier.
55  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: October 30, 2013, 09:39:36 AM
Quick question...I get the following error when querying for mining info on HP11:

"Error: make sure the date is correct yaddayadda, otherwise primecoin might not work correctly"

The date and time is correct, it's an fx8320 running ubuntu 13.04 btw.

That warning is given when no one on the network has a time within 5 minutes of your time. While it's possible you connected to bad peers, it's more likely that there is something wrong about your local date and time.

New error:



{
"blocks" : 234498,
"chainspermin" : 0,
"chainsperday" : 0.00000000,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"difficulty" : 9.94432247,
"errors" : "Warning: checkpoint on different blockchain fork, contact developers to resolve the issue",
"generate" : true,
"genproclimit" : -1,
"primespersec" : 0,
"pooledtx" : 7,
"sieveextensions" : 9,
"sievepercentage" : 10,
"sievesize" : 1000000,
"testnet" : false
}


Any clues?

Can you also post the output of the commands 'getinfo' and 'getcheckpoint'?
56  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 28, 2013, 06:44:26 PM

Ah, you are right and I missed the decimal point when I did the division.

Primecoin actually uses a special block header hash which is different from the "block hash". It's not normally displayed anywhere.

The block header hash of block 200 000 is:
0xc4cb2d790a4edf8a9e11615b22b1c45eb0688c793a1d07a6464704750f6d9448 = 89012302118294945913527852560669227610448148164408794304935511321715883742280

And that does divide the prime origin:
http://www.wolframalpha.com/input/?i=87147097827283387491814940739178353533964145353273967578241214417087984945505448916205980486400+divided+by+89012302118294945913527852560669227610448148164408794304935511321715883742280
57  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 28, 2013, 04:29:35 PM
So then I tried it on block 200 000:
http://primecoin.21stcenturymoneytalk.org/index.php

The prime origin (decimal) is:
8714709782728338749181494073917835353396414535327396757824121441708798494550544 8916205980486400
The hash of block 199 999:
12600527268990194816109317079654455295674413904799950143178505281837028536927

But in the division, there is a remainder:
http://www.wolframalpha.com/input/?i=87147097827283387491814940739178353533964145353273967578241214417087984945505448916205980486400+divided+by+12600527268990194816109317079654455295674413904799950143178505281837028536927

It's not the hash of the previous block, it's the hash of the current block that needs to divide the prime origin.

The hash of block 200 000 is:
0x4669276a932f5b16a718943a4930b5381bf9c7780ed45b2a751171d3feda174c = 31847690383992637018076344290348582925915863984630344106427592361057663457100

That hash divides the prime origin evenly.
58  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: October 28, 2013, 12:00:32 PM
The killall command in the script occasionally kills the script itself (it's supposed to only kill previously started scripts). Try commenting out the line:
Code:
killall --older-than 10s -q run-primecoind primecoind
59  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: October 14, 2013, 11:20:07 AM
Downloaded the primecoin-qt just can't seem to connect to the network

The seed nodes are probably overloaded because of the amount of people joining the network again.

You can use my backup seed node by putting this in your primecoin.conf:
Code:
seednode=primeseed.muuttuja.org
60  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: September 21, 2013, 02:08:31 PM
I've been going for almost 7 days now with HP11 and 0 blocks found with a number of machines running 24x7
1 with 1.5 cpd
1 with 0.9 cpd
4 with 0.2 cpd

Well, your total chains/day is about 3.2 then. Since difficulty is about 9.86, that means only about 14% of chains will result in a block (because 1 - 0.86 = 0.14). Then we can estimate how many blocks you should get in a week:

3.2 chains/day * 7 days/week * 0.14 blocks/chain = 3.136 blocks/week

Of course chains/day isn't completely accurate, so let's assume that in reality it would be 20% lower (this is just a guess).

3.136 blocks/week * 0.8 = 2.5088 blocks/week

2.5 blocks isn't much as far as statistics are concerned. It is still very much possible that you simply got unlucky. That is unfortunately one of the realities of solo mining primecoins. If you want less variance, you can try one of the mining pools.
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!