Skip to content

msgpack: migrate blocks-stat, market, miners-stat, rates, watches buc… - #69

Merged
pin2t merged 1 commit into
masterfrom
msgpack
Jul 30, 2026
Merged

msgpack: migrate blocks-stat, market, miners-stat, rates, watches buc…#69
pin2t merged 1 commit into
masterfrom
msgpack

Conversation

@pin2t

@pin2t pin2t commented Jul 30, 2026

Copy link
Copy Markdown
Owner

…kets from JSON to msgpack

  • Add dbui.MigrateMsgpack: one-time startup migration for all 5 buckets, converting JSON values (starting with '{') to msgpack, idempotent
  • Call migration in main.go after openDB, before any goroutine reads/writes
  • Convert blocks.go, rates/rates.go, miners/stats.go, watches/watches.go to use msgpack.Marshal/Unmarshal for storage (rates.go keeps encoding/json for external API parsing)
  • Add raw/msgpack radio buttons on Value tab with decode-on-switch and encode-on-put via /api/msgpack/decode and /api/msgpack/encode endpoints
  • Group raw/msgpack options with Put button; raw switch re-reads from DB

…kets from JSON to msgpack

- Add dbui.MigrateMsgpack: one-time startup migration for all 5 buckets,
  converting JSON values (starting with '{') to msgpack, idempotent
- Call migration in main.go after openDB, before any goroutine reads/writes
- Convert blocks.go, rates/rates.go, miners/stats.go, watches/watches.go
  to use msgpack.Marshal/Unmarshal for storage (rates.go keeps encoding/json
  for external API parsing)
- Add raw/msgpack radio buttons on Value tab with decode-on-switch and
  encode-on-put via /api/msgpack/decode and /api/msgpack/encode endpoints
- Group raw/msgpack options with Put button; raw switch re-reads from DB
@pin2t pin2t self-assigned this Jul 30, 2026
@pin2t
pin2t merged commit 0f0e4ab into master Jul 30, 2026
1 check passed
@pin2t
pin2t deleted the msgpack branch July 30, 2026 12:28
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