-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(localnet): don't transition to epoch 3 #668
Conversation
25e9083
to
f039aae
Compare
docker/common/start.sh
Outdated
fi | ||
|
||
echo -n . | ||
notice_debug -l "Setting epoch to 1..." | ||
${OASIS_NODE_BINARY} debug control set-epoch --epoch 1 -a unix:${OASIS_NODE_SOCKET} | ||
|
||
# Transition to the next epoch when the KM generates ephemeral secret. | ||
# Transition to the next epoch only when the keymanager has re-registered with updated extra_info. | ||
# This ensures that we wait until the master secret has been generated and published. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to @peternose, we figured out the occasional remaining problem during the bootstrap. It was not sufficient to wait for ephemeral secret to be generated, but also that the master secrets are generated and published. We now do this by ensuring the KM re-registers with the updated extra_info.
f039aae
to
d6ed9f7
Compare
if [[ "${PARATIME_NAME}" == "sapphire" ]]; then | ||
notice_debug -l "Waiting for key manager to generate ephemeral secret..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should still wait for ephemeral secret to be generated and proposed, as this is done concurrently. Although this will usually take less time than master secret generation and confirmation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated
e8345be
to
fb331f7
Compare
fb331f7
to
23db06b
Compare
23db06b
to
d56fb00
Compare
Transitioning to epoch should be enough.
There remains one (very) occasional issue (which I cannot reliably reproduce), where requests to keymanager fail with:
Update: The above issue is now resolved as well.