Bitcoin Forum
June 20, 2024, 08:35:31 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Do i need open wallet to get pos?  (Read 480 times)
ergou (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 12, 2014, 04:02:24 PM
 #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
ergou (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
June 13, 2014, 01:57:45 AM
 #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?
R4v37
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
June 13, 2014, 02:53:37 AM
 #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
snr
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
June 13, 2014, 02:59:13 AM
 #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.
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 13, 2014, 11:11:10 AM
Last edit: June 13, 2014, 11:24:11 AM by bitcoinreactor
 #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.

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
FlyForFun
Sr. Member
****
Offline Offline

Activity: 243
Merit: 250


View Profile
June 13, 2014, 11: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.

bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 13, 2014, 12:01:32 PM
 #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)

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!