skalenetwork / skaled

Running more than 20 production blockchains, SKALED is Ethereum-compatible, high performance C++ Proof-of-Stake client, tools and libraries. Uses SKALE consensus as a blockchain consensus core. Includes dynamic Oracle. Implements file storage and retrieval as an EVM extension.
https://skale.network
GNU General Public License v3.0
85 stars 39 forks source link

skaled couldn't start after downloading snapshot on new after node rotation #850

Closed sync-by-unito[bot] closed 1 year ago

sync-by-unito[bot] commented 2 years ago

skaled couldn't start after downloading snapshot with invalid argument error

┆Issue is synchronized with this Jira Bug ┆Attachments: invalidArgument.txt

gannakulikova commented 2 years ago

@oleksandrSydorenkoJ will try to reproduce

oleksandrSydorenkoJ commented 1 year ago

Steps to reproduce:

  1. Run node exit on the any node with schains
  2. wait for successful DKG round
  3. check skaled on the new node in the group Skaled on the new node in group should download snapshot and waiting fo rotation delay to start participate in consensus. Skaled should set "StartFromSnapshot" option to false after downloading the snaphot. After rotation delay, skaled on the new node should not be restarted by skale-admin in the first 10 minutes if other nodes in the group are restarted and no majority part of active skaled-containers.
yatsunastya commented 1 year ago

Network for testing: legacy Admin: 2.3.10 Skaled: 3.14.15-stable.1

yatsunastya commented 1 year ago

Checked

Network for testing: Goerli - Regression Admin: 3.16.0-beta.8 Skaled: 2.4.0-beta.1

There is no invalid argument error. But skaled on new node downloads snapshot and starts after Rotation finish time but with errors and doesn't mine blocks. In three hours it stops, restarts, again download snapshot and starts mining blocks.

Logs ⬇️

new_node.txt

New issue is created