Skip to content

client: Fix login redirect loop.#3571

Merged
JoeGruffins merged 10 commits intodecred:masterfrom
JoeGruffins:alldisabled
Mar 19, 2026
Merged

client: Fix login redirect loop.#3571
JoeGruffins merged 10 commits intodecred:masterfrom
JoeGruffins:alldisabled

Conversation

@JoeGruffins
Copy link
Member

No description provided.

When a DEX account is disabled, the trade page now shows the DEX
disabled message with a link to the settings page instead of the
generic "Connection to server failed / Waiting to reconnect" overlay.
Token wallets (e.g. usdc.eth, polygon.eth) were not themselves marked
disabled when only their parent chain wallet was disabled, causing
error log spam on startup when the parent connection was refused.
@JoeGruffins JoeGruffins force-pushed the alldisabled branch 2 times, most recently from 43ecd5f to 90f4aca Compare March 18, 2026 08:47
// Use the relay's network fee values for tip extraction to avoid
// mismatches from different RPC providers. Fall back to local values
// if the relay doesn't provide them.
baseFee, tipRate := estimate.BaseFee, estimate.TipCap
Copy link
Collaborator

Choose a reason for hiding this comment

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

The reason for this code was to ensure that the relay was not charging an unreasonable tip. If the client is blindly trusting the relay's fee rates, then it kind of defeats the purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Was unable to use the relay on mainnet polygon. Ill extract this into a different pr, sorry just in a hurry to get fixes in.

Avoids error log during shutdown.
When loadPage fetches a page but receives the login page instead
(due to a server-side auth redirect), fall back to a full browser
navigation rather than silently inserting the login page HTML. The
browser's navigation handles cookie state more reliably than fetch.
The v8 DB upgrade used raw market names from the DB (e.g. dcr_usdt.eth)
which contain dots from token symbols. The actual PostgreSQL schema
names replace dots with TKN via marketSchema(). Apply that conversion
before constructing the table name for the ALTER TABLE statement.
Disabled wallets were shown in the network selector when requesting
a receive address, leading to a broken address screen. Filter them
out so only enabled wallets are selectable.
Correct the server upgrade guidance: all in-flight swaps from v1.0.x
are revoked on upgrade due to the per-match address requirement, so
operators must wait for active swaps to complete. The previous advice
about evm-protocol-overrides.json is insufficient on its own.

Add known issues section noting that Electrum wallets are temporarily
disabled due to inconsistencies found during testing, with a fix
expected in a patch release.
The dcrdata /tx/{txid}/out/{vout} path now returns 403. Link to the
transaction page instead, consistent with other UTXO assets.
Three locale keys were split across lines in the template, preventing
the [[[...]]] replacement from matching: "pick a different asset",
"Authorize Import", and "Wallet Balances".
When mixing is disabled but the mixed or trading accounts exist from a
previous mixing session, their balances were invisible. Now those funds
are reported as locked so the user can see they still exist. Ticket
values in those accounts are also included in the staked category.
@JoeGruffins JoeGruffins merged commit 2370081 into decred:master Mar 19, 2026
5 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.

2 participants