Skip to content

Rename dependent_blocks/dependents_confirmed to block_dependencies/dependencies_confirmed#5027

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:rename-dependent-blocks
Feb 12, 2026
Merged

Rename dependent_blocks/dependents_confirmed to block_dependencies/dependencies_confirmed#5027
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:rename-dependent-blocks

Conversation

@pwojcikdev
Copy link
Copy Markdown
Contributor

Both functions use "dependent" when they should use "dependency".

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Renames two ledger APIs to use correct “dependency” terminology and updates all call sites and tests accordingly, improving clarity around block prerequisite checks during confirmation, voting, and scheduling.

Changes:

  • Renamed dependent_blocksblock_dependencies and dependents_confirmeddependencies_confirmed (declaration + definition + usages).
  • Updated node components (vote generator, schedulers) to use the new API names.
  • Updated core tests and improved/relocated header documentation for dependency and priority helpers.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
nano/secure/ledger.hpp Replaces old method declarations with block_dependencies / dependencies_confirmed and adds clearer Doxygen comments.
nano/secure/ledger.cpp Renames implementations and updates confirmation logic to use new dependency naming.
nano/node/vote_generator.cpp Updates vote eligibility logic to call dependencies_confirmed.
nano/node/scheduler/priority.cpp Uses dependencies_confirmed before bucket prioritization.
nano/node/scheduler/hinted.cpp Updates DFS activation logic to use dependencies_confirmed / block_dependencies.
nano/core_test/request_aggregator.cpp Updates test to call dependencies_confirmed.
nano/core_test/node.cpp Updates test assertions/comment to dependency terminology.
nano/core_test/ledger.cpp Renames tests and updates assertions for dependencies_confirmed.
nano/core_test/active_elections.cpp Updates test assertion to call dependencies_confirmed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gr0vity-dev-bot
Copy link
Copy Markdown

gr0vity-dev-bot commented Feb 10, 2026

Test Results for Commit d7c79ba

Pull Request 5027: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 126s)
  • 5n4pr_conf_10k_change: PASS (Duration: 131s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 147s)
  • 5n4pr_conf_change_independant: PASS (Duration: 140s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 126s)
  • 5n4pr_conf_send_independant: PASS (Duration: 124s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 120s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 152s)

Last updated: 2026-02-11 23:48:45 UTC

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pwojcikdev pwojcikdev force-pushed the rename-dependent-blocks branch 6 times, most recently from 065fff0 to d7c79ba Compare February 11, 2026 23:39
@pwojcikdev pwojcikdev merged commit b5cefa6 into nanocurrency:develop Feb 12, 2026
55 of 56 checks passed
@pwojcikdev pwojcikdev deleted the rename-dependent-blocks branch February 12, 2026 11:31
simpago added a commit to rsnano-node/rsnano-node that referenced this pull request Mar 20, 2026
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