Skip to content

Improve and refactor method to search for stored block in mainchain#574

Open
julia-zack wants to merge 2 commits into
powpeg-refactors-integrationfrom
improve-stored-blocks-search
Open

Improve and refactor method to search for stored block in mainchain#574
julia-zack wants to merge 2 commits into
powpeg-refactors-integrationfrom
improve-stored-blocks-search

Conversation

@julia-zack
Copy link
Copy Markdown
Contributor

Improve and refactor method to search for stored block in mainchain and remove RSKIP89 activation check

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@julia-zack julia-zack force-pushed the improve-stored-blocks-search branch from 9a750be to 609ced7 Compare May 20, 2026 17:06
verify(btcToRskClientFileStorageMock, times(1)).write(any());
}

@Test
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed all pre-rskip89 tests

@julia-zack julia-zack changed the base branch from powpeg-refactors-integration to fix-constant-declaration May 20, 2026 19:17
@julia-zack julia-zack force-pushed the improve-stored-blocks-search branch from 609ced7 to 6ab2275 Compare May 20, 2026 19:17
@julia-zack julia-zack marked this pull request as ready for review May 20, 2026 19:27
@julia-zack julia-zack requested a review from a team as a code owner May 20, 2026 19:27
Base automatically changed from fix-constant-declaration to powpeg-refactors-integration May 20, 2026 19:30
Comment on lines -388 to -389
long bestBlockNumber = federatorSupport.getRskBestChainHeight();
boolean useBlockDepth = activationConfig.isActive(ConsensusRule.RSKIP89, bestBlockNumber);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no need to check for activations

return Optional.empty();
}

private StoredBlock findBridgeBtcBlockchainMatchingAncestorUsingBlockLocator() throws BlockStoreException {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed since only being used pre rskip89

@marcos-iov marcos-iov force-pushed the powpeg-refactors-integration branch 3 times, most recently from 1177ea8 to a835abe Compare May 21, 2026 16:06
@marcos-iov marcos-iov force-pushed the improve-stored-blocks-search branch from 4063ea3 to 4defc6d Compare May 21, 2026 18:14
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants