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
84 stars 40 forks source link

Skaled CatchupClient exceptions after start #1319

Closed OleksanderSalamatov closed 1 year ago

OleksanderSalamatov commented 1 year ago

After #1315 fix nodes updated to 3.16.0-beta.1 skaled with fix which was preventing them to start, skaled started, but there are errors that are preventing skaled from correct work

Steps to reproduce the behavior:

  1. 1315 steps

  2. Update skaled to 3.16.0-beta.1 version
  3. Skaled can not be started because of errors (detailed log)

Skale-node branch used for update: https://github.com/skalenetwork/skale-node/tree/regression-2.1.13

kladkogex commented 1 year ago

DA proof signature checking needs to only happen on new chains.

Somehow it got switched on on old chains.

Will need to fix this

DmytroNazarenko commented 1 year ago

3.16.0-beta.6

oleksandrSydorenkoJ commented 1 year ago

Verified on Legacy Network Version 3.16.0-beta.6 chain name: fit-betelgeuse

2023-01-26 21:42:12.293748   Skaled status: setSubsystemRunning: Rpc to true

Reload configuration file Loading configuration from /schain_config/schain_fit-betelgeuse.json ... 
Reload configuration file Parsing configuration JSON ... 
Reload configuration file Done, loaded configuration file /schain_config/schain_fit-betelgeuse.json
2023-01-26 21:42:12.302850   SKALE NETWORK BROWSER WARNING:Using static address 0xaa0f3d9f62271ef8d668947af98e51487ba3f26b for contract calls because no skaleConfig/sChain/schainOwner value is provided
[2023-01-26 21:42:12.944] [5:catchup] [info] 549713:CATCHUP_GOT_BLOCKS:COUNT:24:STARTBLOCK:549714:FROM_NODE:35.84.115.161
[2023-01-26 21:42:12.945] [5:main] [info] 549713:BLOCK_COMMITED: PRPSR:14:BID: 549714:ROOT:68133212885169471472971254676196977882936495635155436526437259811258473685326:HASH:14e3757b:BLOCK_TXS:0:DMSG:0:MPRPS:1:RPRPS:14:TXS:0:TXLS:39:MGS:499:INSTS:41:BPS:0:HDRS:502:SOCK:1:FDS:396:PRT:0:BTA:0:BSA:0:TPS:0:LWT:0:LRT:0:LWC:52:LRC:120:KNWN:0:CONS:0:DSDS:0:SET:0:SBT:0:SEC:1:SBC:0:ZSC:1:EPT:0:STAMP:1674769036.301
2023-01-26 21:42:12.954099   Block sealed #549714 (#a21453fe…)
2023-01-26 21:42:12.954186   Block stats:BN:549713:BTS:1674769023:TXS:0:HDRS:11:LOGS:40:SENGS:1:TXRS:0:BLCKS:3:ACCS:79:BQS:1:BDS:34:TSS:0:UTX:0:VTX:0:CMM:0
2023-01-26 21:42:12.954337   Block 549714 DB usage is 1113. Piece DB usage is 78834903 bytes
[2023-01-26 21:42:12.954] [5:main] [info] 549714:BLOCK_COMMITED: PRPSR:5:BID: 549715:ROOT:68133212885169471472971254676196977882936495635155436526437259811258473685326:HASH:211c8f88:BLOCK_TXS:0:DMSG:0:MPRPS:1:RPRPS:14:TXS:0:TXLS:39:MGS:499:INSTS:41:BPS:0:HDRS:502:SOCK:1:FDS:396:PRT:0:BTA:6437:BSA:0:TPS:0:LWT:0:LRT:0:LWC:55:LRC:122:KNWN:0:CONS:0:DSDS:0:SET:0:SBT:0:SEC:1:SBC:0:ZSC:1:EPT:3:STAMP:1674769048.638
2023-01-26 21:42:12.961229   Block sealed #549715 (#d8866e78…)