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
  • Merge requests
  • !126

Merged
Created Jun 18, 2018 by Volodymyr Shamray@vshamrayReporter

Resolve "PoC: Automatic finalized budget submission"

  • Overview 11
  • Commits 5
  • Pipelines 3
  • Changes 3

Proof of concept for automatic budget finalization. Needs to be checked in testnet (to know if it even works at all)

PoC algorithm description:

  1. There is still a possibility to submit final budget manually, with a wallet configured with budgetvotemode=suggest. However, now there is an automatic option as well.
  2. Automatically submitted final budgets are submitted by masternodes
  3. Masternode will submit its budget only if it's a winning masternode (see CBudgetManager::SubmitFinalBudget)
  4. Masternode will not burn collateral CRW, instead it's required to sign the budget suggestion
  5. Having received the budget suggestion a node will check its validity. If collateral tx hash is 0, a valid signature is required (see CFinalizedBudget::IsValid)
  6. If the budget is signed by an unknown masternode, the node will ask the peer for the masternode (see CBudgetManager::ProcessMessage)

If the testing shows the viability of the algorithm, we will consider polishing the code to production-ready grade and including it in the release

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 137-poc-automatic-budget-finalization