Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Issues
  • #322

Closed
Open
Created Jun 03, 2019 by Mark Brooker@walkjiveflyMaintainer

Consistency/fencepost error in CSystemnode::GetRecentPaymentBlocks

Summary

Code inconsistency

Steps to reproduce

Compare the code in CSystemnode::GetRecentPaymentBlocks and CMasternode::GetRecentPaymentBlocks. There is a discrepancy between (MN)

int nMinimumValidBlockHeight = chainActive.Height() - Params().ValidStakePointerDuration() + 1;

and (SN)

int nMinimumValidBlockHeight = chainActive.Height() - Params().ValidStakePointerDuration();

Expected behavior

The assignment should be the same in both cases.

Problematic behavior

Minor inconsistency between MNs and SNs.

Crown-core environment info

N/A

Crown-core application info

Crown version v0.13.4.0-bf750d36

Relevant logs, dumps and/or screenshots

N/A

Possible fixes

Change the SN code to match the MN code.

/cc @artem

Edited Jun 03, 2019 by Mark Brooker
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking