Skip to content

Prepare v2.1.4#2621

Merged
jrick merged 9 commits intodecred:release-v2.1from
jrick:release-v2.1
Apr 6, 2026
Merged

Prepare v2.1.4#2621
jrick merged 9 commits intodecred:release-v2.1from
jrick:release-v2.1

Conversation

@jrick
Copy link
Copy Markdown
Member

@jrick jrick commented Apr 6, 2026

No description provided.

jrick and others added 9 commits April 6, 2026 14:45
When wraparound of the uint64 peer ID counter occurs, take care to never
conflict (sharing a peer ID) with existing peers who are still connected with
the same ID.

While here, continue to skip the zero ID (remote peer IDs always start at one)
so zero can be reserved for local peer usage.

Backport of 54a9b82.
There is currently no way to set the change account used by individual split
transactions when running the ticket autobuyer without mixing, as this account
was never looked up from the config.  Allow the change account to be specified
with unmixed ticket buying, defaulting to the purchase account if it is unset.
The change account remains required if mixing is enabled.

Backport of 0567ec5.
NewMsgTx preallocates input and output slices that Deserialize will
immediately discard, causing unnecessary allocations.

Backport of 1d35454.
The `authenticate` RPC command is registered using the wallet's own named
type `AuthenticateCmd` derived from the dcrd type `AuthenticateCmd`.

In Go, this creates a distinct type. `types.AuthenticateCmd` and
`dcrdtypes.AuthenticateCmd` are not interchangeable in type
assertions.

Since `dcrjson.ParseParams` returns `*types.AuthenticateCmd` (the
registered type), this assertion always fails. When it fails, `ok`
is `false`, and the function returns `false` at line 326 — meaning "not
invalid" — regardless of what credentials were supplied.

There is a second bug in the same function: if `ParseParams` itself
fails (e.g., malformed params), `invalidAuth` also returns `false` (line
322), which is fail-open rather than fail-closed.

Backport of 54a3e95.
A variable shadowing bug prevented unknown PRs from being requested from
peers.

Backport of 33f6312.
This updates to the following module releases:

* secp256k1/v4 v4.4.1
* mixing v0.7.0
* wire v1.7.5

Backport of a52ba06.
@jrick jrick merged commit 3486781 into decred:release-v2.1 Apr 6, 2026
2 checks passed
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