Closed dmaltsiniotis closed 2 years ago
The stacking algorithm involves the "outputs" of your transactions. Exits are blocked when creating a block for several hours as a guarantee of your work - a PoS transaction is generated in the created block that contains your blocked funds + remuneration. The log displays information about the number of outputs available for this algorithm. The minimum allowable output size is 5 PKOIN
Does your address containing coins start with the letter P? In the network (by analogy with bitcoin) there are several types of public keys - P, Z
Thank you for the reply @andyoknen.
1. The stacking algorithm involves the "outputs" of your transactions. Exits are blocked when creating a block for several hours as a guarantee of your work - a PoS transaction is generated in the created block that contains your blocked funds + remuneration. The log displays information about the number of outputs available for this algorithm. The minimum allowable output size is 5 PKOIN
Interesting, thank you for the info, I'm still trying to wrap my head around the algorithm.
2. Does your address containing coins start with the letter P? In the network (by analogy with bitcoin) there are several types of public keys - P***, Z***
The address holding the coins starts with Z. At the recommendation of another node owner, I created a another wallet with the cli, and a new address, and transferred the coins from the Z address to the new one, which now starts with P. I am not sure what the difference is between the Z and P addresses. However, after doing this getstakinginfo
returns "staking": false
, and the Available Coins message in the logs shows 1.
Available Coins message in the logs shows 1.
- I believe this is due to the fact that you transferred all the funds in one transaction with one output.
As for "staking": false
- two options immediately come to mind: either an encrypted wallet, or the coins to the addresses did not lie for several hours before you checked the status.
An update on this: Staking unfortunately continues to be a problem. Sanity check: The transaction to new address has over 5k confirmations now, and I'm on the correct chain, and the coins are visible from other nodes.
The issue now is that running getstakinginfo is flip-flopping between "staking": false
and "staking": true
every few minutes. Something seems to very wrong here even though my setup is as vanilla as they come.
Hypothetically speaking, lets say someone just installed a fresh new node, synced it up, and is now fully participating in the network. What would be the steps to enable staking "from scratch" using only the pocketcoind and pocketcoin-cli commands (I'm in a headless environment)? I'm trying to see if there's any discrepancy between my setup and "established practice."
Do you have the above ports forwarding from your router to your node?
Do you have the above ports forwarding from your router to your node?
Yes, the relevant ports are open and the node is fully connected to other nodes. It also shows up in the node list on block explorer as well as the bastyon client.
The only thing different between your config and my config is this portion. rpcbind=127.0.0.1 rpcbind=LAN_IP_OF_NODE rpcallowip=127.0.0.1/24 # for access from only localhost rpcallowip=192.168.11.0/0 # for access from local network. CHANGE THIS TO MATCH YOUR LAN SUBNET rpchost=localhost
The only thing different between your config and my config is this portion. rpcbind=127.0.0.1 rpcbind=LAN_IP_OF_NODE rpcallowip=127.0.0.1/24 # for access from only localhost rpcallowip=192.168.11.0/0 # for access from local network. CHANGE THIS TO MATCH YOUR LAN SUBNET rpchost=localhost
Thanks for comparing, I don't currently have any problems with connectivity/issuing RPC commands or having nodes connect to me. The issue I'm experiencing is around wallet setup and staking I think.
My only other suggestion (as a noob when it comes to blockchain) is to run the daemon in debug mode. pocketcoind -debug See if that gives you any insights or more information you can post here for troubleshooting.
Update:
My node was able to stake, finally, today. I think the wallet/address issues (switching from a Z to a P address) helped resolve this part of it.
The last remaining issue I have now is that getstakinginfo
reports "staking": false
most of the time, and I'm concerned that it won't stake or I'll miss opportunities to stake if it's reporting accurately:
getstakereport
{
"2021-10-15T00:00:00Z": "0.00",
"2021-10-14T00:00:00Z": "4.9902002",
"2021-10-13T00:00:00Z": "0.00",
"2021-10-12T00:00:00Z": "0.00",
"2021-10-11T00:00:00Z": "0.00",
"2021-10-10T00:00:00Z": "0.00",
"2021-10-09T00:00:00Z": "0.00",
"2021-10-08T00:00:00Z": "0.00",
"2021-10-07T00:00:00Z": "0.00",
"2021-10-06T00:00:00Z": "0.00",
"2021-10-05T00:00:00Z": "0.00",
"2021-10-04T00:00:00Z": "0.00",
"2021-10-03T00:00:00Z": "0.00",
"2021-10-02T00:00:00Z": "0.00",
"2021-10-01T00:00:00Z": "0.00",
"2021-09-30T00:00:00Z": "0.00",
"2021-09-29T00:00:00Z": "0.00",
"2021-09-28T00:00:00Z": "0.00",
"2021-09-27T00:00:00Z": "0.00",
"2021-09-26T00:00:00Z": "0.00",
"2021-09-25T00:00:00Z": "0.00",
"2021-09-24T00:00:00Z": "0.00",
"2021-09-23T00:00:00Z": "0.00",
"2021-09-22T00:00:00Z": "0.00",
"2021-09-21T00:00:00Z": "0.00",
"2021-09-20T00:00:00Z": "0.00",
"2021-09-19T00:00:00Z": "0.00",
"2021-09-18T00:00:00Z": "0.00",
"2021-09-17T00:00:00Z": "0.00",
"2021-09-16T00:00:00Z": "0.00",
"Last 24H": "4.9902002",
"Last 7 Days": "4.9902002",
"Last 30 Days": "4.9902002",
"Last 365 Days": "4.9902002",
"Latest Stake": "4.9902002",
"Latest Time": "2021-10-14T05:18:40Z",
"Stake counted": 1,
"time took (ms)": 0
}
getstakinginfo
{
"enabled": true,
"staking": false,
"errors": "",
"currentblockweight": 13844,
"currentblocktx": 9,
"difficulty": 139281.5358005261,
"search-interval": 0,
"weight": 19739829990,
"netstakeweight": 162692676277133,
"expectedtime": 0
}
Final update: No no other changes, things have seemed to stabilized with "staking": true,
staying on pretty consistently. I've been able to stake twice now. I believe the root cause was the incorrect address type 'Z' originally used, instead of an 'P' account-type of address. Closing this now as my original issue seems to be resolved. There remain general node stability concerns, but that's for another thread/issue.
Thanks for everyone's input/assistance.
-DM
Hello Pocketnet folks,
I have been operating a node for some months (since the end of June 2021) now and I am trying to track down why I cannot seem to be able to stake any pocketcoin. I think I have all configuration set up properly.
Server details
I am operating this node a virtual Linux server, running Debian Buster (10) on kernel 4.19.194-3. I am using pocketcoind and pocketcoin-cli in a non GUI, headless, environment. The server has 4 vCPUs and 24 GB of RAM, and pocketcoind is the only notable process running.
Configuration
The main configuration is as follows:
Wallet info
I have a sneaking suspicion, that this is where I potentially messed something up. Here is the result of getwalletinfo:
And listaddressgroupings:
Staking info
getstakinginfo:
Assuming that "expectedtime" is listed in seconds, this equates to approximately ~10.2 days. This number fluctuates between 12 and 10 days.
And getstakereport:
Console output
Now that the node is fully synchronized again, here are a few of lines of the most recent output. I am not sure what is meant by "Available coins count 2" when casually looking at the stdout of the process. When I first spun up the node, it was zero, then as I added pocketcoins to the staking wallet, it went from zero, to one, to now, two.
Odd logs
Today by accident, I noticed in the console window the following message:
2021-10-07T05:14:24Z CreateCoinStake : no support for kernel type=3
When I searched the debug logs for this, I found many other instances:
This is just a guess, but it seems like this message comes up at about the frequency I would expect staking the happen at. Trying to track down the source in the master branch for this yields this location, but I'm having trouble making sense of it, and again I don't know if this is even related to my issue: https://github.com/pocketnetteam/pocketnet.core/blob/98680615c5b7b15945abf1f89c324e457dea692a/src/wallet/wallet.cpp#L4610
My asks
1) What does "Available coins count X" mean in the output logs. 2) May I get some help in resolving why this node is not staking properly?
Thank you,
Demetri