Skip to content

Fix: The start should be the inclusive max key if Backward scan#1084

Open
Wi1l-B0t wants to merge 1 commit into
neo-project:masterfrom
Wi1l-B0t:fix.FindRange
Open

Fix: The start should be the inclusive max key if Backward scan#1084
Wi1l-B0t wants to merge 1 commit into
neo-project:masterfrom
Wi1l-B0t:fix.FindRange

Conversation

@Wi1l-B0t

@Wi1l-B0t Wi1l-B0t commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The start should be the inclusive max key if Backward scan, and the inclusive min key if Forward scan.
The current implementation treats the start as the min key if Backward scan.

@github-actions github-actions Bot added the N4 label Jul 4, 2026
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 48.14815% with 28 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@a02972d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
plugins/RocksDBStore/Plugins/Storage/Snapshot.cs 13.33% 13 Missing ⚠️
plugins/LevelDBStore/Plugins/Storage/Snapshot.cs 0.00% 11 Missing ⚠️
plugins/LevelDBStore/Plugins/Storage/Store.cs 76.92% 2 Missing and 1 partial ⚠️
plugins/RocksDBStore/Plugins/Storage/Store.cs 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1084   +/-   ##
=========================================
  Coverage          ?   47.32%           
=========================================
  Files             ?      273           
  Lines             ?    15779           
  Branches          ?     2017           
=========================================
  Hits              ?     7467           
  Misses            ?     7799           
  Partials          ?      513           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread plugins/LevelDBStore/Plugins/Storage/Snapshot.cs
@Wi1l-B0t Wi1l-B0t requested a review from Jim8y July 5, 2026 15:25

@AnnaShaleva AnnaShaleva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will change the existing behaviour of interops like System.Storage.Find and some other core functionality dependent from the Store.

@Wi1l-B0t

Wi1l-B0t commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

This will change the existing behaviour of interops like System.Storage.Find and some other core functionality dependent from the Store.

The current implementation is wrong, and this method is not used by System.Storage.Find.

Only the N4 has this FindRange method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants