Elastos Node for Ubuntu v1.2.2
Recovery-day release. Includes everything since v1.2.0.
Update with:
node.sh update_script
node.sh version # expect v1.2.2
Fixed
- A failed chain update reported success. Every
*_updatefunction testedchain_prepare_stagewith a barereturn, which yields the status of the successful test rather than the failure, so a download or extract failure exited 0 while the node kept running its previous binary. All ten call sites now propagate the real exit code, andall_updatenames the chains that failed. - Downloads could not detect an HTTP error.
curl -Owas called without-f, so a 404 or 503 body was written into the archive and curl exited 0. Downloads now usecurl -fLwith timeouts and retries, and verify a published.sha256when one is available. uninstalldestroyed the credentials it backed up. It archivedela/keystore.dat, then deleted the keystore password files and the side chain keystores in the same sweep. It now archives every keystore together with its password file and refuses to delete anything if that archive fails.ela restartreported success while refusing to act, so a configuration change applied that way was never live. It now returns a distinct status and prints the stop and start sequence.ela consensusapplied nothing in either direction (v1.2.1 regression). The handler read the wrong positional argument after the dispatcher shift, so the command printed the current state and exited without changing it.
Added
ela consensus [status|on|off]sets the DPoS consensus role. The write is atomic and validated, the original is kept as a timestamped backup, and file permissions are preserved. This is the setting inside theeladaemon, not the separate arbiter relay service.ela rewoundreports whether a node may safely rejoin consensus after a recovery: binary version, store tip, and any leftover height-named checkpoint above the rollback target. Read-only, and it runs against a running node.binaryprints a one-line build fingerprint per chain, so an operator fleet can confirm every node runs the same build.ela updatehelp documents-n, which installs without starting the daemon.