Bitcoin Forum
April 03, 2026, 09:32:25 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how did POS wallet work?  (Read 730 times)
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
July 18, 2015, 10:58:38 PM
 #1

I try to create a POS coin, after all POW coins mined, if I want the POS coin interest generated ever 1 hour, and keep interest generating forever, should I set nStateMinAge=60*60 //1 hour and also nStateMinAge=-1 ?
Is this correct? Thanks
any other setting?
g3rszpi
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
July 21, 2015, 07:42:18 AM
 #2

I try to create a POS coin, after all POW coins mined, if I want the POS coin interest generated ever 1 hour, and keep interest generating forever, should I set nStateMinAge=60*60 //1 hour and also nStateMinAge=-1 ?
Is this correct? Thanks
any other setting?

there are a lot of pos coin scrypts available on github. check out there
HCLivess
Legendary
*
Offline Offline

Activity: 2114
Merit: 1093


=== NODE IS OK! ==


View Profile WWW
July 21, 2015, 12:43:31 PM
 #3

https://github.com/OpalCoin/OpalCoin/blob/a0285b75c69279b98152a89ff08bc39fd29f2b94/src/main.h

supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
July 21, 2015, 05:20:12 PM
 #4

thanks

1. If all the miners stop, whether the new block will also be generated by POS stake and added to the blockchain?

2. If all the POW coins mined, only left POS coins, the new block will still be generated after some time interval? usually how to set this time interval?

3. unsigned int nTargetSpacing = 1 * 60; // 60 seconds
unsigned int nStakeMinAge = 1 * 30 * 60; // 30 min
unsigned int nStakeMaxAge = -1;           // forever
unsigned int nModifierInterval = 10 * 60; // time to elapse before new modifier is computed

whether the above setting correct? I want the new pure POS block generated every 30 minutes.

also, the setting static const int MODIFIER_INTERVAL_SWITCH = 35; in this way, I can let the stake work after 35 blocks?
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!