Skip to content
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 TimeoutMsgFromProto reported in issue 129 #130

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Conversation

meling
Copy link
Member

@meling meling commented Sep 23, 2024

When initializing the TimeoutMsg.MsgSignature field it required
that the TimeoutMsg's ViewSignature was non-nil instead of checking
for the MsgSignature being non-nil.

It is not clear to me if this can happen in practice, but this
fixes the problem.

Thanks to @ikmOfSA for reporting the bug.

Fixes #129

When initializing the TimeoutMsg.MsgSignature field it required
that the TimeoutMsg's ViewSignature was non-nil instead of checking
for the MsgSignature being non-nil.

It is not clear to me if this can happen in practice, but this
fixes the problem.

Thanks to @ikmOfSA for reporting the bug.
This formats the scripts and removes the version line from the
docker-compose.yml file. The deploy_test.sh script also replaces
docker-compose with "docker compose" since GitHub now only supports
version 2 and higher of docker compose.
Running the deploy_test.sh script gave the following error:
failed to connect to remote hosts: dial tcp: lookup hotstuff_worker_4 on 127.0.0.11:53: no such host

Based on suggestion by ChatGPT, we should replace the underscore
with a dash to avoid having to specify container names explicitly
in the docker-compose.yml file, which seemed more awkward:

   container_name: "hotstuff_worker_{{.Task.Slot}}"
See previous commit for reasoning; makes it easier with docker compose.
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.88%. Comparing base (1a86b3c) to head (1b5c3ff).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #130      +/-   ##
==========================================
- Coverage   62.55%   61.88%   -0.68%     
==========================================
  Files          79       79              
  Lines        7584     7584              
==========================================
- Hits         4744     4693      -51     
- Misses       2539     2579      +40     
- Partials      301      312      +11     
Flag Coverage Δ
unittests 61.88% <100.00%> (-0.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@meling meling merged commit ecadd95 into master Dec 17, 2024
6 checks passed
@meling meling deleted the bugfix/issue129 branch December 17, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A little bug in TimeoutMsgFromProto()
1 participant