Skip to content

v1.2.0

Choose a tag to compare

@4HM3DMD 4HM3DMD released this 26 Jul 01:00
· 10 commits to master since this release

node.sh ela preflight

Reports what the next node start will do, before you start it: whether the forced rollback will rewind the chain, whether there is nothing to do, or whether the node will refuse to start and why.

Read-only. It starts nothing, stops nothing, and writes nothing to the chain store, so it is safe to run at any time.

node.sh ela stop
node.sh ela update
node.sh ela preflight
node.sh ela start

What it reports

  • The prediction: will rewind (from which height to which, how many blocks, roughly how long), nothing to do, or will refuse to start and why.
  • Whether a node is currently using this chain store.
  • The version and sha256 of the binary you are about to start, to compare against the published release.
  • Disk headroom.

Exit codes: 0 ready, 1 usage or configuration, 2 no readable store, 3 node running, 4 the node will refuse to start.

Notes

preflight ships with the recovery release of ela-cli. On an older binary the command says so and tells you to run node.sh ela update first, since such a binary cannot perform the recovery either.

The chain-state prediction comes from ela-cli preflight, which reads the block store through a read-only driver. It is not reimplemented in shell, so it cannot drift from the code that decides.

Upgrade: node.sh update_script