@crowetic
I'm no dev, but the confirmation time for a staked coin pile is 640 blocks (approx 24 hours) and maturity time is 1 hour. Then you can stake the pile again.
I have two piles with 680 confirmations (after over 25 hours) and I still have 'Staking is not active'. I have Win10 and wallet ver. 3.0.0.13. In diamond.conf I have 'staking=1'.
I also get error
every time I close the wallet. My debug.log shows:
2017-09-21 08:56:25 ProcessNewBlock : ACCEPTED
2017-09-21 08:56:25 ProcessNewBlock : ACCEPTED
2017-09-21 08:56:25 ProcessNewBlock : ACCEPTED
2017-09-21 08:57:08 net thread interrupt
2017-09-21 08:57:08 dumpaddr thread stop
2017-09-21 08:57:08 addcon thread interrupt
2017-09-21 08:57:08 msghand thread interrupt
2017-09-21 08:57:09 opencon thread interrupt
2017-09-21 08:57:09 PrepareShutdown: In progress...
2017-09-21 08:57:09 StopNode()
2017-09-21 08:57:09 Verifying mncache.dat format...
2017-09-21 08:57:09 Loaded info from mncache.dat 0ms
2017-09-21 08:57:09 Masternodes: 73, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 3, entries in Masternode list we asked for: 0, nDsqCount: 0
2017-09-21 08:57:09 Writting info to mncache.dat...
2017-09-21 08:57:09 Written info to mncache.dat 16ms
2017-09-21 08:57:09 Masternodes: 74, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 7, entries in Masternode list we asked for: 0, nDsqCount: 0
2017-09-21 08:57:09 Masternode dump finished 16ms
2017-09-21 08:57:09 Verifying budget.dat format...
2017-09-21 08:57:09 Loaded info from budget.dat 0ms
2017-09-21 08:57:09 Proposals: 0, Budgets: 0, Seen Budgets: 0, Seen Budget Votes: 0, Seen Final Budgets: 0, Seen Final Budget Votes: 0
2017-09-21 08:57:09 Writting info to budget.dat...
2017-09-21 08:57:09 Written info to budget.dat 0ms
2017-09-21 08:57:09 Budget dump finished 0ms
2017-09-21 08:57:09 Verifying mnpayments.dat format...
2017-09-21 08:57:09 Loaded info from mnpayments.dat 0ms
2017-09-21 08:57:09 Votes: 793, Blocks: 90
2017-09-21 08:57:09 Writting info to mnpayments.dat...
2017-09-21 08:57:09 Written info to mnpayments.dat 0ms
2017-09-21 08:57:09 Budget dump finished 0ms
2017-09-21 08:57:10 *** System error while flushing: CDB : Error -30974, can't open database
2017-09-21 08:57:14 CDBEnv::EnvShutdown : Error -30974 shutting down database environment: DB_RUNRECOVERY: Fatal error, run database recovery
2017-09-21 08:57:14 Shutdown: done
After that when I try to run the wallet again I get the next error:
Program:
.........\diamond-qt.exe
File: main.cpp, Line 1979
Expression: pindex->GetBlockHash() == view.GetBestBlock()
But I think it's caused by DMD Core didn't exit safely earlier.
I would add that I haven't those errors in 3.0.0.12.
EDIT:
getstakingstatus
{
"validtime" : true,
"haveconnections" : true,
"walletunlocked" : true,
"mintablecoins" : true,
"enoughcoins" : true,
"mnsync" : true
}
and still 'Staking is not active'
EDIT [resolved]I have good news :-). I deleted wallet.dat (before I had dumped priv key, of course) and then I imported private key to new wallet. After that everything works out fine. Maybe it helps others. Sorry for the inconvenience.