After the end of PoW blocks, I am unable to mine using PoS. Here is my setup.

1) Server with the following config file.


2) Two clients running from 2 different VPS with individual unique IPs pointed to the server using the following in config file.

addnode=<ip of the server>

3) A Mansternode installed on a separate VPS configured to one of the client VPS above.

4) I set the last block for PoW as 200. After that it must use PoS.

5) I start the mining using the server.

6) I send 100,000 coins each both to the client wallets. In one of them I lock 10,000 coins for Masternode, which works fine.

7) The mining continues and all are updating the blocks properly without any issues.

8) However, I see that none of the wallets report that their coins are enabled for staking. when I check the status using "getstakingstatus", this is what I see.

"validtime" : true,
"haveconnections" : true,
"walletunlocked" : true,
"mintablecoins" : true,
"enoughcoins" : true,
"mnsync" : true,
"staking status" : false

Everything is true, but, "staking status" alone is false.

9) PoW stops at 200 blocks. After that, no blocks are produced and none of the clients are active for staking (PoS).

What am I doing wrong? How do I solve this so that I can test PoS and understand it better? Is there any code that I need to look at and chance some setting in the code? Please let me know.


Ok. For some reason, I got this working when I tried it for the second time. This time, I set the Last PoW block number to 350. I mined first 5 blocks using the server. Then, I setup 4 different wallets in 4 different systems. I sent enough coins to all those 4 different wallets and make it available for staking. All these I did by the first 20 blocks. Then, I started to mine again using the server. Once the block number reached 350, I stopped mining on the server and suddenly, PoS took over and started producing blocks one by one using those 4 wallets. From this experience, I feel that just having 1 server and 2 clients are not enough to simulate PoS. We may need many more wallets connected to the network to get this working. Hope this helps some one.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.