Skip to content

Fix off-by-one error in attributing signatures to blocks in CLI#2559

Merged
celo-ci-bot-user merged 5 commits intomasterfrom
victor/off-by-one
Jan 28, 2020
Merged

Fix off-by-one error in attributing signatures to blocks in CLI#2559
celo-ci-bot-user merged 5 commits intomasterfrom
victor/off-by-one

Conversation

@nategraf
Copy link
Copy Markdown

Description

Currently, the cli validator:status and validator:sign-blocks commands use the parent seal of a block to tell whether a validator signed that block. This is incorrect. The parent seal should be used to tell if the validator signed the previous block

Tested

Manually CLI testing

Other changes

  • Pass the component to port-forward command against VMs to select a machine

Backwards compatibility

100%

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 28, 2020

Codecov Report

Merging #2559 into master will increase coverage by 1.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2559      +/-   ##
==========================================
+ Coverage   72.88%   73.91%   +1.02%     
==========================================
  Files         273      557     +284     
  Lines        5743    13826    +8083     
  Branches      688     1364     +676     
==========================================
+ Hits         4186    10219    +6033     
- Misses       1381     3327    +1946     
- Partials      176      280     +104
Flag Coverage Δ
#mobile 74.1% <ø> (?)
#web 73.63% <100%> (+0.74%) ⬆️
Impacted Files Coverage Δ
packages/web/src/fauceting/PhoneInput.tsx 90.32% <ø> (+67.74%) ⬆️
packages/web/src/_page-tests/test-utils.ts 100% <100%> (ø)
packages/web/src/utils/abortableFetch.ts 71.42% <0%> (ø) ⬆️
packages/mobile/src/account/Invite.tsx 80.59% <0%> (ø)
packages/mobile/src/images/sms-icon.png 100% <0%> (ø)
packages/mobile/src/backup/BackupComplete.tsx 80.64% <0%> (ø)
packages/mobile/src/alert/AlertBanner.tsx 93.75% <0%> (ø)
packages/mobile/src/home/CeloDollarsOverview.tsx 89.65% <0%> (ø)
packages/mobile/src/images/unknown-user-icon.png 100% <0%> (ø)
packages/mobile/src/app/actions.ts 83.78% <0%> (ø)
... and 278 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98407a3...39a028a. Read the comment docs.

@celo-ci-bot-user celo-ci-bot-user merged commit fe529df into master Jan 28, 2020
@celo-ci-bot-user celo-ci-bot-user deleted the victor/off-by-one branch January 28, 2020 02:47
aaronmgdr added a commit that referenced this pull request Jan 28, 2020
* master:
  🧹Web cleanup (readme + static dir) (#2562)
  Add readable proposals to governance:view command (#2545)
  Add explicit gas to exchange transactions to prevent errors (#2552)
  Fix off-by-one error in attributing signatures to blocks in CLI (#2559)
  ✅ add test for phone Input component (#2554)
  Add Youtube to Footer +  (#2556)
  Fix rounding error in Election.sol (#2540)
  [Wallet] Bump @celo/client to 0.0.266 (#2551)
  [Wallet] E2E test improvements (#2542)
  Deployed integration (#2550)
  do not fetch affiliates (#2508)
  Added more CLI checks for registering validators and groups (#2491)
  Micro Improvement to web tests (#2527)
  [Wallet] Prompt users with connectivity issues to switch to forno (#2526)
  cli: Fix voter rewards presentation (#2543)
  [Wallet] Fix missing spanish translation  (#2539)
  Downtime slashing when epoch changes (#2436)
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.

3 participants