Question on Cardano-cli output

Hi guys i’m running a pool on a preprod testnet
I am using:

cardano-cli query leadership-schedule \
--testnet-magic 1 \
--genesis GENESIS FILE \
--stake-pool-id POOL ID FILE \
--vrf-signing- VRF.SKEY FILE  \
--current

And the output is:

SlotNo                          UTC Time
-------------------------------------------------------------
21709703                   2020-04-20 02:48:39 UTC
21794079                   2020-04-21 02:14:55 UTC
22108470                   2020-04-24 17:34:46 UTC

i think the slots correspond correctly
image

but the date says april 2020 instead of feb 2023. why? i don’t understand… on my pc there is a correct date

image

any idea? thanks

Any ideas guys? Up :pray:

I just tried:

cardano-cli query leadership-schedule \
--genesis /config/preprod-shelley-genesis.json \
--testnet-magic 1 \
--vrf-signing-key-file /config/vrf.skey \
--stake-pool-id 54977486bc076ef24dab6f34652c1d33113f871ebc5e863b2488e03c \
--current

And I got correct year:

     SlotNo                          UTC Time
-------------------------------------------------------------
     22125258                   2023-03-03 01:54:18 UTC
     22171098                   2023-03-03 14:38:18 UTC
     22171987                   2023-03-03 14:53:07 UTC

What cardano node version are you using?

1 Like

Hi thanks for reply
i’m on 1.35.5
image

i don’t understand why he tell my 2020 instead 2023, the pool works fine, i’m minting block at the right slot

i see you are using PREPROD-shelley-genesis…

if i’m looking inside the folder i don’t have PREPROD-shelley-genesis but TESTNET-shelley-genesis
image

Could this be the problem?

Hi,

Maybe. I took my shelley genesis from here:

https://book.world.dev.cardano.org/environments.html

and direct link:

https://book.world.dev.cardano.org/environments/preprod/shelley-genesis.json

1 Like

Looks like you only replaced a part of the files from the old, abandoned testnet. Could very well explain a different conversion from slots to dates, since the old testnet did start around that time, while Preprod started last year.

Interesting that you obviously managed to replace enough files that it works, nevertheless.

1 Like

We have probably found the error, but if I check inside the files folder ($CNODE_HOME/files) the files are correct for the preprod but if you check inside the node configuration folder, the files are from the old testnet
What could be the cause?

If you are referring to changing the files in this old post:

I have reset and started from 0 because I made some mistakes
Anyway i have followed Alex’s guide on the forum and using scripts from Guild Operators.

Why do you even have two folders with genesis files?

If you use the guild operators’ scripts, the ones in $CNODE_HOME/files should be the ones used when running the node. That would also explain why it runs without problems.

Is the output of cardano-cli query leadership-schedule correct if you give the --genesis file from that folder?

1 Like

Thank you for the explanation
If I use the one from $CNODE_HOME/files folder , it works correctly :grin: :grin:

image