Author

Topic: Do i need open wallet to get pos? (Read 499 times)

member
Activity: 112
Merit: 10
June 13, 2014, 07:01:32 AM
#7
as FlyForFun said, there's no need to run your client 24/7 unless you have coins ready for stake minting.

check your ppc fork PoS rules (STAKE_MIN_AGE and STAKE_MAX_AGE) :

If none of your coins are older than STAKE_MIN_AGE then you have nothing to mint.
If some of your coins are older than STAKE_MAX_AGE then they are ready for full pos minting.

To get "ready for minting", your coins must not move for STAKE_MIN_AGE seconds (30 days for PPC).

Hold them for a month (or 3 months for full pos minting) then keep your client running until you find a pos block.

If you want the client to automatically keep a given amount of coins ready for minting, while still using the currency, have a look at the 'reservebalance' option (RPC / cli)
sr. member
Activity: 243
Merit: 250
June 13, 2014, 06:49:20 AM
#6
  i remember blackcoin must need open wallet...

so i want to ask if XC,CRY these coins need open wallet or not?

thanks.
Best

Yes but you don't need to open 24/7 just often.
member
Activity: 112
Merit: 10
June 13, 2014, 06:11:10 AM
#5
 i remember blackcoin must need open wallet...

so i want to ask if XC,CRY these coins need open wallet or not?

thanks.
Best

anyone know the answer?

If these are peercoin forks, then the answer is YES :

the BitcoinMiner() method takes an extra argument, when compared to the original btc implementation : bool fProofOfStake which is set to true when the proof-of-stake mining thread is spawned, on wallet startup.

when this fProofOfStake is true, the BitcoinMiner thread will :

 - check wallet isnt locked (if it is, display a warning and wait 1 second before re-checking)
 - check we are connected to some peers, if not wait 1 second and retry
 - create a new block following the PoS rules
 - then cycle this : increment the extranonce (bignum in coinbase input script), test it to see if we just found a valid PoS block. then wait 500ms before retrying

In a few words : this is a shorter/simple version of BitcoinMiner, with 2 extranonce tests per second, plus the PoS rules checks.

So yes, that BitcoinMiner(pwallet, true) has to be running for you to actually create a PoS block.

Because of the 500ms delay involved, it can take quite some time before you mint a pos block.
that delay allows the client to be running in the background with a barely noticeable cpu usage impact / energy consumption, while still constantly hashing block headers, looking for a valid PoS block.

Running multiple copies of the same wallet may help a bit, by increasing your "chances" of finding a PoS block (you'll hash twice as much pos blocks per second with two clients running on the same wallet). Because of the different ReserveKey(s) then used, block header should differ, actually increasing the chances you have to mint a valid PoS block.
Reducing that 500ms sleep delay could also help, but then the cpu usage impact would grow significantly, going against ppc original low energy consumption goal.
snr
newbie
Activity: 32
Merit: 0
June 12, 2014, 09:59:13 PM
#4
what i know is just open ur wallet and never close it
Right. I think this is certainly the case for all POS coins.
sr. member
Activity: 266
Merit: 250
June 12, 2014, 09:53:37 PM
#3
To tell you the truth...
me too, dont know how PoS works...  Smiley
what i know is just open ur wallet and never close it

nah, assume i'm wrong  Tongue
newbie
Activity: 59
Merit: 0
June 12, 2014, 08:57:45 PM
#2
  i remember blackcoin must need open wallet...

so i want to ask if XC,CRY these coins need open wallet or not?

thanks.
Best

anyone know the answer?
newbie
Activity: 59
Merit: 0
June 12, 2014, 11:02:24 AM
#1
  i remember blackcoin must need open wallet...

so i want to ask if XC,CRY these coins need open wallet or not?

thanks.
Best
Jump to: