0

I normally do all my testing completely privately, so before compiling Tezos I will edit the source code and put my own dictator's public key in. Then after launching the node I'll just inject protocol with my dictator's private key, like this:

$ tezos-client -b genesis activate protocol PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU with fitness 24 and key dictator and parameters ../proto005.json
Injected BLY2rKrj6Pfz
$

Then I'd just start baking. This process has worked well for all previous protocols but now after injecting Proto005, when trying to bake I get this:

$ ./tezos-client bake for b1
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge: found 0 valid operations (0 refused) for timestamp 2019-09-05T13:55:37-00:00 (fitness 01::0000000000000001)
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge: Level 2 : previously baked
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge: Error while injecting block
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge:     Included operations :
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge:     Error:
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge:       Level 2 previously baked
Sep  5 13:55:37 - 005-PsBABY5H.baking.forge:
Error:
  Level 2 previously baked
$

This is what the current head block looks like:

{
  "protocol": "Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P",
  "chain_id": "NetXdQprcVkpaWU",
  "hash": "BKnZeAZNrMwRiaPcCed793WCyZzvghZV9ogH6aYrmowd6LzjpSP",
  "level": 1,
  "proto": 1,
  "predecessor": "BLockGenesisGenesisGenesisGenesisGenesisf79b5d1CoW2",
  "timestamp": "2019-09-04T23:08:57Z",
  "validation_pass": 0,
  "operations_hash": "LLoZS2LW3rEi7KYU4ouBQtorua37aWWCtpDmv1n2x3xoKi6sVXLWp",
  "fitness": [
    "00",
    "0000000000000018"
  ],
  "context": "CoUpBBqUmddXY9ncsv4X7QY8gkd8QiAfM2SoJTJJkkVBtjuUTR5D",
  "content": {
    "command": "activate",
    "hash": "PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",
    "fitness": [
      "00",
      "0000000000000018"
    ],
    "protocol_parameters": "0000058b8b05000004626f6f7473747261705f6163636f756e7473002802000004300059000000023000380000007032706b36375a6d7571615545616d41794a734d574b534677615765454565326e5532626e537251636279724831683755623775567074000231000e00000039303030303030303030303030000004310058000000023000370000006564706b75426b6e5732386e5737324b4736526f48745957377031325436474b63376e4162775958356d385764397344564339796176000231000e00000034303030303030303030303030000004320058000000023000370000006564706b747a4e624441556a556b36393757376759673243527542516a79507862456738644c63635959774b534b766b50766a745639000231000e00000034303030303030303030303030000004330058000000023000370000006564706b7554586b4a4447634664356e683656764d7a38706858785533426937683668716779774e466931765a5466514e6e53315256000231000e00000034303030303030303030303030000004340058000000023000370000006564706b754672526f445345624a59677852744c783270733832556461596331577766533973453131796861755a7435446743486255000231000e00000034303030303030303030303030000004350058000000023000370000006564706b76384555554836386a6d6f336637556d3550657a6d66477252463234676e664c70483373564e774a6e5635625643784c326e000231000e00000034303030303030303030303030000000017072657365727665645f6379636c657300000000000000144001626c6f636b735f7065725f6379636c6500000000000000304001626c6f636b735f7065725f636f6d6d69746d656e7400000000000000104001626c6f636b735f7065725f726f6c6c5f736e617073686f7400000000000000104001626c6f636b735f7065725f766f74696e675f706572696f640000000000000050400474696d655f6265747765656e5f626c6f636b7300170000000230000200000035000231000200000032000001656e646f72736572735f7065725f626c6f636b00000000000000104002686172645f6761735f6c696d69745f7065725f6f7065726174696f6e00070000003830303030300002686172645f6761735f6c696d69745f7065725f626c6f636b000800000038303030303030000270726f6f665f6f665f776f726b5f7468726573686f6c6400030000002d310002746f6b656e735f7065725f726f6c6c000b0000003830303030303030303000016d696368656c736f6e5f6d6178696d756d5f747970655f73697a65000000000000408f4002736565645f6e6f6e63655f726576656c6174696f6e5f746970000700000031323530303000016f726967696e6174696f6e5f73697a6500000000000010704002626c6f636b5f73656375726974795f6465706f736974000a0000003531323030303030300002656e646f7273656d656e745f73656375726974795f6465706f736974000900000036343030303030300002626c6f636b5f726577617264000900000031363030303030300002656e646f7273656d656e745f7265776172640008000000323030303030300002636f73745f7065725f627974650005000000313030300002686172645f73746f726167655f6c696d69745f7065725f6f7065726174696f6e000600000036303030300002746573745f636861696e5f6475726174696f6e000800000031393636303830000171756f72756d5f6d696e000000000000409f400171756f72756d5f6d617800000000000058bb40016d696e5f70726f706f73616c5f71756f72756d000000000000407f4001696e697469616c5f656e646f727365727300000000000000f03f0264656c61795f7065725f6d697373696e675f656e646f7273656d656e740002000000300000"
  },
  "signature": "sigfSZgTjiAKskGExZ6ttpe2L5735Cig7tWWAd4Eyz5MUnbbUuKKHsZTf6E9emRoEHaBTDZqzRLwUngh38saMoX3jbPcsdvZ"
}

Theres also this:

$ ./tezos-client list understood protocols
Ps9mPmXaRzmz
PsddFKi32cMJ
PsYLVpVvgbLh
PtCJ7pwoxe8J
Pt24m4xiPbLD
PsBABY5HQTSk
$

Your Answer

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

Browse other questions tagged or ask your own question.