pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[Consensus] LocalNet fails to prepare first block when pacemaker_config.manual is false #965

Open red-0ne opened 11 months ago

red-0ne commented 11 months ago

Objective

Have LocalNet building the first block without error when pacemaker manual mode is false.

When setting manual to false in charts/pocket/values.yaml

config:
  consensus:
    pacemaker_config:
      manual: false

And starting the network with make localnet_up, the leader fails to build the first block with the following error:

{"level":"info","module":"leader_utility_UOW","maxTxBytes":500000000,"proposer":"00104055c00bed7c983a48aac7dc6335d7c607a7","source":"CreateProposalBlock","state_hash":"07cf4c8d390c7dd608ea089aa87bf1e0e74992b98a62edcea4c115221f7e58a3","time":"2023-08-03T18:21:33Z","message":"Finished successfully"}
{"level":"info","module":"persistence","height":-1,"time":"2023-08-03T18:21:33Z","message":"About to release context"}
{"level":"error","module":"consensus","kind":"LEADER","error":"no rows in result set","time":"2023-08-03T18:21:33Z","message":"could not prepare block"}
{"level":"warn","module":"pacemaker","height":0,"round":16,"step":1,"time":"2023-08-03T18:21:33Z","message":"⏰ Interrupt ⏰ due to: failed to prepare new block"}

But after manually triggering the next view from debug CLI, blocks start being produced correctly.

Deliverable

Testing Methodology


Creator: @red-0ne Co-Owners:

Olshansk commented 11 months ago

@red-0ne Please make sure to update metadata (iteration, effort, assignee) for all issues.

Screenshot 2023-08-03 at 12 12 43 PM

red-0ne commented 11 months ago

Thanks for the reminder, it always gets me because I don't have the (iteration, effort) when I create the issue.