2

Nonces are to be revealed/injected in the cycle after which they are tied to their block. If you bake a block in cycle 4, and the level % 32 is 0, then you are required to reveal the nonce seed in cycle 5.

The question is, within cycle 5, can you reveal at any of the 4096 blocks or must you reveal within the first 4? First 10? In using block explorers, I see most reveals happen before level-in-cycle 4. I tried revealing a nonce about 1/2 way through the cycle and received proto.006-PsCARTHA.nonce.unexpected error.

2

You can reveal seed nonce at any level in the following cycle.

Example: level 3590 of 4096.

You see most revelations within the first blocks because the native baking software simply tries to push the revelation operation ASAP. However, it would be much better to inject revelation in your own block in order to earn extra rewards.

As for the proto.006-PsCARTHA.nonce.unexpected, according to the docs that error literally means "The provided nonce is inconsistent with the committed nonce hash.". So the problem is likely in your nonce value, that you are trying to reveal.

8
  • Confusing as I tried injecting a nonce revelation about 1000 blocks in and got the error noted in my post.
    – utdrmac
    Sep 28 '20 at 20:58
  • How did you try to inject it? Manually? Are you sure you had a right to reveal a nonce? Are you sure you hadn't already revealed a nonce, when were trying to inject it?
    – Groxan
    Sep 28 '20 at 22:31
  • Yes, manually. Constructed the operation (same watermark as an endorsement) signed and injected, got error. I believe the error message is different if you try to reveal a nonce that's already been revealed.
    – utdrmac
    Sep 29 '20 at 13:48
  • 1
    @utdrmac I've tried to reveal that hash and have got an error "This nonce revelation is invalid (inconsistent with the committed hash)". Then I checked the sources, gitlab.com/tezos/tezos/-/blob/master/src/proto_001_PtCJ7pwo/… and realized that "unexpected nonce" actualy means "invalid nonce" :) So, the problem is in your nonce value.
    – Groxan
    Oct 1 '20 at 11:14
  • 1
    Ugh. What a pain that the error message is incorrect. Ok. Thank you for investigating that. I'll try some to figure out why my nonce value is wrong.
    – utdrmac
    Oct 1 '20 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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