Skip to content

Feat: core 20 upgrade testnet - #234

Merged
HashEngineering merged 9 commits into
feature-core-20from
feature-core-20-upgrade-testnet
Nov 7, 2023
Merged

HashEngineering merged 9 commits into
feature-core-20from
feature-core-20-upgrade-testnet

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Oct 27, 2023 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@HashEngineering HashEngineering self-assigned this Oct 27, 2023
@HashEngineering
HashEngineering changed the base branch from master to feature-core-20 October 27, 2023 16:43
@codecov

codecov Bot commented Oct 30, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (b4a4f7c) 47.62% compared to head (afa74e2) 48.00%.

Additional details and impacted files
@@                  Coverage Diff                  @@
##             feature-core-20     #234      +/-   ##
=====================================================
+ Coverage              47.62%   48.00%   +0.38%     
- Complexity              6608     6672      +64     
=====================================================
  Files                    409      409              
  Lines                  46113    46108       -5     
  Branches                6503     6502       -1     
=====================================================
+ Hits                   21961    22134     +173     
+ Misses                 21776    21569     -207     
- Partials                2376     2405      +29     
Files Coverage Δ
.../src/main/java/org/bitcoinj/core/SporkManager.java 38.15% <ø> (+10.98%) ⬆️
...va/org/bitcoinj/evolution/QuorumRotationState.java 61.38% <ø> (ø)
...inj/evolution/SimplifiedMasternodeListManager.java 51.31% <ø> (+2.24%) ⬆️
.../main/java/org/bitcoinj/params/TestNet3Params.java 100.00% <100.00%> (ø)
...ava/org/bitcoinj/quorums/SimplifiedQuorumList.java 55.55% <ø> (+1.53%) ⬆️
...ain/java/org/bitcoinj/params/OuzoDevNetParams.java 0.00% <0.00%> (ø)
...n/java/org/bitcoinj/quorums/ChainLocksHandler.java 54.61% <61.90%> (+22.84%) ⬆️

... and 25 files with indirect coverage changes

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

Comment on lines -124 to -126
//AbstractBlockChain blockChain;
//AbstractBlockChain headersChain;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Some of these changes were pointed out in a previous coinjoin PR. Those are being fixed here and will be later merged with the feature-coinjoin branch.

it.remove();
}
}
seenChainLocks.entrySet().removeIf(entry -> Utils.currentTimeMillis() - entry.getValue() >= CLEANUP_SEEN_TIMEOUT);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was a suggested change that we can now use in an Android library because of desugaring.

Comment on lines +647 to +649
public ChainLockSignature getChainLock(Sha256Hash blockHash) {
return chainlockMap.get(blockHash);
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Codecov reports this is not covered by tests, but after that report was run ChainLocksHandlerTest was added to improve coverage of this class.

@Syn-McJ Syn-McJ 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.

Looks good

@HashEngineering
HashEngineering merged commit f42bfd8 into feature-core-20 Nov 7, 2023
@HashEngineering
HashEngineering deleted the feature-core-20-upgrade-testnet branch December 8, 2023 15:55
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