spacemeshos / go-spacemesh

Go Implementation of the Spacemesh protocol full node. 💾⏰💪

Home Page:https://spacemesh.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ATXBuilder "signing key already registered" in system tests

fasmat opened this issue · comments

Description

At the moment all nodes in system tests print the error "signing key already registered" when using a test key that is set via the command line option --testing-smesher-key. The reason for this is that this causes the node to start in a state that is both supervised and remote. The node will wait for the (external) post service to connect and when the (supervised) post service starts it registers the same key that was already set in the ATX builder.

Affected code

Affected are all versions starting from v1.4.0.

Hints for fixing the issue

Instead of injecting a key via command line options the test should generate a key externally if needed, write it to a file and mount that file as local.key or *.key (in the case of a remote smeshing setup) on the pod that runs the smesher.

The command line option to set a key should be removed afterwards.