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.