spacemeshos / local-testnet

A local testnet of go-spacemesh full nodes running the Spacemesh protocol and a functional CLI wallet. 💾⏰
https://spacemesh.io
MIT License
14 stars 4 forks source link

Support libp2p #55

Closed web3rover closed 2 years ago

web3rover commented 2 years ago

I am getting this error when starting a node:

{"L":"ERROR","T":"2021-12-13T00:44:21.586-0500","N":"00000.defaultLogger","M":"incompatible params","tortoise_zdist":8,"layer_duration":30,"hare_wakeup_delta":20,"hare_limit_iterations":10,"hare_round_duration":10,"name":""}
{"L":"ERROR","T":"2021-12-13T00:44:21.586-0500","N":"00000.defaultLogger","M":"Failed to initialize node.","errmsg":"incompatible tortoise hare params","name":""}
{"L":"INFO","T":"2021-12-13T00:44:21.586-0500","N":"00000.defaultLogger","M":"app cleanup starting..."}
{"L":"INFO","T":"2021-12-13T00:44:21.586-0500","N":"00000.defaultLogger","M":"app cleanup completed"}

cc: @moshababo @dshulyak

countvonzero commented 2 years ago

@narayanprusty where did you pull the config from?

it's failing on a param check "tortoise_zdist":8,"layer_duration":30,"hare_wakeup_delta":20,"hare_limit_iterations":10,"hare_round_duration":10,

basically the following condition needs to hold

layer_duration * tortoise_zdist > hare_wakeup_delta + (1+hare_limit_iterations*4)*hare_round_duration

but this params leads to 30*8 < 20+41*10

i cannot recommend params without knowing the other param (tortoise_hdist). can you advise the source of the config?

web3rover commented 2 years ago

@countvonzero This is the config file: https://github.com/spacemeshos/local-testnet/blob/libp2p/src/config.json

countvonzero commented 2 years ago

ok. thanks @narayanprusty.

try set hare_limit_iterations to 5 and see how goes.