Skip to content

[pull] master from bitcoinj:master#102

Merged
pull[bot] merged 7 commits intoAll-Blockchains:masterfrom
bitcoinj:master
Mar 21, 2026
Merged

[pull] master from bitcoinj:master#102
pull[bot] merged 7 commits intoAll-Blockchains:masterfrom
bitcoinj:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 21, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Use `Difficulty.STANDARD_MAX_DIFFICULTY_TARGET.compact()` instead.
…tions static

By making these methods pure, static functions they are more flexible
and can be used as part of constructor building an immutable block.
This eliminates two cases where a `Block` is mutated immediately after
construction and also creates block instances that _could_ be treated as
immutable.

This is a step toward an immutable block type.
In preparation for being `@NullMarked` we have generally not been
annotating non-nullable items, but we make an exception in this case
to aid in making null-marked subclasses of `Block` prior to `Block`
itself being null-marked.
@pull pull bot locked and limited conversation to collaborators Mar 21, 2026
@pull pull bot added the ⤵️ pull label Mar 21, 2026
@pull pull bot merged commit 69bb7e1 into All-Blockchains:master Mar 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant