Skip to content

fix(staking): remove debug prints from delegation hook - #672

Merged
fragwuerdig merged 2 commits into
classic-terra:mainfrom
GeoffreySHD:fix/staking-hook-debug-prints
Sep 28, 2026
Merged

fragwuerdig merged 2 commits into
classic-terra:mainfrom
GeoffreySHD:fix/staking-hook-debug-prints

Conversation

@GeoffreySHD

Copy link
Copy Markdown
Contributor

Description

TerraStakingHooks.AfterDelegationModified (custom/staking/hook.go) printed a dozen fmt.Printf("DEBUG: ...") lines to stdout on every delegation on columbus-5, spamming node logs with per-delegation debug output on mainnet.

This removes the debug prints and an unused counter that existed only for them. Behavior is otherwise unchanged — the power-limit check itself is untouched.

Testing

go build, go vet, gofmt and the custom/staking test suite pass in a CI-parity Linux container (golang:1.24). Logs-only change; no consensus impact.

GeoffreySHD and others added 2 commits September 11, 2026 14:51
AfterDelegationModified printed debug lines to stdout on every
delegation on columbus-5, spamming node logs. Behavior is otherwise
unchanged.
The strangelove-ventures GitHub org was renamed/moved to amygdala-labs,
which killed the ghcr.io/strangelove-ventures/heighliner/osmosis image
path baked into interchaintest's built-in chain config. Both PFM tests
(TestTerraGaiaOsmoPFM, TestTerraPFM) now fail during chain setup with
"denied" when pulling the image, independent of the code under test.

Override the osmosis image repository per ChainSpec (the spec-level
Images list replaces the built-in one; ChainSpec.Version still applies
to Images[0]) to the same tags under the new amygdala-labs org. Verified
the replacement manifests are pullable.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@GeoffreySHD

Copy link
Copy Markdown
Contributor Author

Quick question to make sure this matches your intent: the DEBUG fmt.Printf lines in AfterDelegationModified look like leftovers from a debugging session (the surrounding comment says "Debug: always print to see if hook is being called"), which is why I removed them.

If you actually rely on them for live monitoring of the power-limit check on mainnet, happy to convert them to proper ctx.Logger().Debug() logging instead so the info stays available to operators without the raw stdout spam — just say the word and I'll push that variant.

@fragwuerdig
fragwuerdig self-requested a review September 23, 2026 18:55

@fragwuerdig fragwuerdig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM - Will marking this as blocked, though - as we are waiting for the Cosmos Labs Security Fix release on 28th of September.

@fragwuerdig
fragwuerdig merged commit 903e660 into classic-terra:main Sep 28, 2026
31 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