Skip to content

fix: emulate get_state for /~witnesses and /proposals paths#255

Merged
ety001 merged 1 commit into
nextfrom
fix/get-state-witnesses-proposals
May 28, 2026
Merged

fix: emulate get_state for /~witnesses and /proposals paths#255
ety001 merged 1 commit into
nextfrom
fix/get-state-witnesses-proposals

Conversation

@ety001

@ety001 ety001 commented May 28, 2026

Copy link
Copy Markdown
Member

steemd returns -32000 Server error for get_state(/~witnesses) and get_state(/proposals), causing wallet SSR 504.

Extends get_state_workaround.go to intercept these paths, fetch base state via get_state(/) for feed_price/props, and return minimal synthetic response. Actual data fetched client-side.

Also cleans up DEBUG slog.Info from PR 253 to slog.Debug.

DEPRECATED: All get_state workarounds will be removed after condenser rewrite + wallet rewrite launch.

steemd returns -32000 Server error for get_state(/~witnesses) and
get_state(/proposals), causing wallet SSR to timeout with 504.

This extends the get_state workaround to intercept these special paths
and return a minimal synthetic response with feed_price, props, etc.
The actual witness/proposal data is fetched client-side via separate
API calls.

Also cleans up DEBUG slog.Info calls from previous PR, converting
them to slog.Debug for production-appropriate logging.

DEPRECATED: All get_state workarounds in this file will be removed
once the condenser rewrite and wallet rewrite are deployed. Both
new versions do not use get_state at all.
@ety001 ety001 merged commit 43b1a9f into next May 28, 2026
2 checks passed
@ety001 ety001 deleted the fix/get-state-witnesses-proposals branch May 28, 2026 05:14
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.

1 participant