Skip to content

Add slashing utility: automated validator jailing after 100 missed he…#511

Open
samuelfrancis163-eng wants to merge 1 commit into
StellarFlow-Network:mainfrom
samuelfrancis163-eng:feature/slashing-utility
Open

Add slashing utility: automated validator jailing after 100 missed he…#511
samuelfrancis163-eng wants to merge 1 commit into
StellarFlow-Network:mainfrom
samuelfrancis163-eng:feature/slashing-utility

Conversation

@samuelfrancis163-eng

@samuelfrancis163-eng samuelfrancis163-eng commented Jun 26, 2026

Copy link
Copy Markdown

Closes #415


Add slashing utility – auto‑jail validators after 100 missed heartbeats

#415

  • New src/slashing.rs adds a Status enum (Active, Jailed) and a persistent map SLASHED_NODES_KEY.
  • maybe_slash_node checks the last heartbeat (via existing contract helpers) and marks a validator as Jailed if ≥ 100 blocks are missed (or no heartbeat).
  • get_node_status returns a validator’s slashing status.
  • Includes a unit test confirming jailing when no heartbeat exists.

This implements automated validator jailing to stop offline nodes from polling consensus queues and consuming bandwidth.

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@samuelfrancis163-eng Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🪓 Slashing-Rules | Hard Jailing Flags for Malfunctioning Validator Pipelines

1 participant