@Alexd1985 I guess Iām just super confused with the whole KES counter thing. Let me know if I understand the rules correctly.
1.) If you have never minted a block the counter should always be 0 when resetting your keys
2.) If you have minted a block, whatever the counter value was used with that last block, the counter for your new KES cert should be +1 that.
3.) qKesNodeStateOperationalCertificateNumber
and qKesOnDiskOperationalCertificateNumber
should always be the same number?
For example
cardano-cli query kes-period-info --mainnet --op-cert-file ./mainnet_opcert.cert
yields the result ofā¦
ā Operational certificateās KES period is within the correct KES period interval
ā The operational certificate counter agrees with the node protocol state counter
{
"qKesCurrentKesPeriod": 882,
"qKesEndKesInterval": 944,
"qKesKesKeyExpiry": "2024-04-23T21:44:51Z",
"qKesMaxKESEvolutions": 62,
"qKesNodeStateOperationalCertificateNumber": 0,
"qKesOnDiskOperationalCertificateNumber": 0,
"qKesRemainingSlotsInKesPeriod": 7942719,
"qKesSlotsPerKesPeriod": 129600,
"qKesStartKesInterval": 882
}
Note that the values are the same for qKesNodeStateOperationalCertificateNumber
and qKesOnDiskOperationalCertificateNumber
AND it says The operational certificate counter agrees with the node protocol state counter
What confuses me is that according to this article (Renew KES Keys - How to Guides for Coincashew Method Cardano SPOs), near the bottom it seems to contradict what it said at the top about them being the same and suddenly itās different!
Refer to screenshots below
and the contradiction here?
Suddenely the qKesNodeStateOperationalCertificateNumber and qKesOnDiskOperationalCertificateNumber in their example are different?
Why is this?
I hope this explains why I am so confused.
The only explanation I can possibly have is maybe it changes after you mint a block and the ondisk will show +1 once the first minted block after you get your keys comes in? This was not made clear in the article or any tutorials I read (including from carlos from the cardano foundation unless I missed it?)
I appreciate any confirmation or explanation on this, and I hope I donāt seem like Iām dumb or crazy for asking these questions. Thank you!
I wanted to be even more extra clear and share the article itself (Renew KES Keys - How to Guides for Coincashew Method Cardano SPOs) AND I wanted to show the literal contents of my current .counter file when you ācatā it.
On my air gap machine the counter files, it looks like this, I just ā¦ the hex characters for security reasons
{
"type": "NodeOperationalCertificate",
"description": "Next certificate issue number: 1",
"cborHex": "..."
}
Not sure why they are different, maybe it deleted the description on the server after the node used it? The cborHex is identical though.