Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

[CBR-414] fix demo-nix.sh to have all core nodes working #3582

Merged
merged 2 commits into from
Sep 13, 2018
Merged

Conversation

cleverca22
Copy link
Contributor

Description

Linked issue

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just change the loop to for i in {0..${toString (numCoreNodes - 1)}}?

@jmitchell
Copy link
Contributor

I agree, changing the for loop range would be cleaner. Let's take the opportunity to ensure it's safe to use $i rather than $((i + ...)) or $((i - ...)) anywhere inside the loop and do that. The mixture is very confusing and prone to causing bugs like this.

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this and I no longer see Not enough stake to participate in MPC messages for the last core node in the demo cluster.

Copy link
Contributor

@disassembler disassembler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rvl rvl merged commit 046586b into develop Sep 13, 2018
@rvl rvl deleted the cbr-414 branch September 13, 2018 08:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants