Skip to content

Enable extended spending index for Syscoin - #31

Merged
sidhujag merged 1 commit into
masterfrom
codex/syscoin-spending-index
Oct 20, 2026
Merged

sidhujag merged 1 commit into
masterfrom
codex/syscoin-spending-index

Conversation

@sidhujag

@sidhujag sidhujag commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Syscoin spending lookups currently fall back to scanning an output address's transaction history because the extended index is disabled. Enable -extendedindex for Syscoin mainnet and testnet so newly built indexes store the spending transaction metadata and serve these lookups directly.

Existing Blockbook databases created without the flag must be rebuilt before starting with the new setting. The operators confirmed that these few instances are managed manually and can be resynchronized from scratch, so an automated migration guard is outside this change. The documented rollout retains the existing index for rollback, builds a new index, and verifies synchronization and spending lookups before switching traffic. Syscoin Core blockchain data does not need rebuilding.

Validation:

  • Reviewed the final merge tree against master after upstream sync PR Sync Trezor upstream while preserving Syscoin support #32; both JSON configurations parse and contain exactly one -extendedindex flag.
  • git diff --check passed and the merge is conflict-free.
  • The upstream sync's 3,067 Go tests/subtests and both Syscoin HTTP connectivity checks passed. This PR changes only package flags and rollout documentation; those tests do not validate a live database rebuild.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T17:29:43.873451Z f44a332 PR opened
🔒 Security Review ✅ Completed 2026-10-20T17:30:56.333896Z f44a332 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f44a33270e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"public_binding_template": ":{{.Ports.BlockbookPublic}}",
"explorer_url": "",
"additional_params": "-dbcache=4294967296 -dbmaxopenfiles=500000 -workers=16 -chunk=1000",
"additional_params": "-dbcache=4294967296 -dbmaxopenfiles=500000 -workers=16 -chunk=1000 -extendedindex",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Migrate existing Syscoin databases before enabling the flag

When this package is deployed over any existing Syscoin database, the generated service immediately starts with -extendedindex, but db/rocksdb.go:2394-2395 rejects databases whose stored setting is false. The repository's standard deployment path (.github/workflows/deploy.yml:174-178 and contrib/scripts/deploy-blockbook-local.sh:89-92) installs the package and restarts the same database without performing the documented rebuild or directory swap, so deploying either changed config takes that Blockbook instance offline. The migration must be implemented or enforced in the deployment path before changing the default startup flag; documentation alone does not protect automated deployments.

Useful? React with 👍 / 👎.

@sidhujag
sidhujag merged commit 36c1f18 into master Oct 20, 2026
1 of 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.

1 participant