[PR #7428] [MERGED] Clear stale rest-023 spam-throttle row main already implements #7599

Closed
opened 2026-11-03 07:20:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7428
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger2-rest-023


📝 Commits (1)

  • 21686a6 Port map: rest-023 rows the tree answers

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tools/port_map/rest-023.tsv (+1 -1)

📄 Description

tools/port_map/rest-023.tsv, one row:

  • TickThrottler.isUnderThreshold — was port of game/lan_actions.rs::Game::lan_guest_packet with gap: player: chat and command spam kicks (disconnect.spam) are missing; the throttle only guards creative drops (limit 1480, decays in tick_guests). The kick exists: game/lan_chat.rs::detect_rate_spam (its doc names ServerGamePacketListenerImpl.detectRateSpam) adds 20 to the guest's chat or command counter, compares it against the server's chat_spam_threshold / command_spam_threshold (seconds times 20, game/dedicated.rs:1026-1027), and kicks a non-operator with disconnect.spam; a threshold of 0 or less never kicks, as isUnderThreshold has it. The row now cites that function and carries no gap.

The file's other missing rows were rechecked and stay: Util.executeInSequence and Util.runWithRetries (no retry loop around the save and datafix file moves).

map-check: python3 tools/port_ledger.py map-check tools/port_map/rest-023.tsv -> 81 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/rest-023.tsv -> 81 rows, no problems.

Not proven: no in-game check (no guest kicked on a live server).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7428 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger2-rest-023` --- ### 📝 Commits (1) - [`21686a6`](https://github.com/horizon-rust/horizon/commit/21686a6019f55b1495a7b640179aad90fac7b87f) Port map: rest-023 rows the tree answers ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-023.tsv` (+1 -1) </details> ### 📄 Description `tools/port_map/rest-023.tsv`, one row: - `TickThrottler.isUnderThreshold` — was `port` of `game/lan_actions.rs::Game::lan_guest_packet` with `gap: player: chat and command spam kicks (disconnect.spam) are missing; the throttle only guards creative drops (limit 1480, decays in tick_guests)`. The kick exists: `game/lan_chat.rs::detect_rate_spam` (its doc names `ServerGamePacketListenerImpl.detectRateSpam`) adds 20 to the guest's chat or command counter, compares it against the server's `chat_spam_threshold` / `command_spam_threshold` (seconds times 20, `game/dedicated.rs:1026-1027`), and kicks a non-operator with `disconnect.spam`; a threshold of 0 or less never kicks, as `isUnderThreshold` has it. The row now cites that function and carries no gap. The file's other `missing` rows were rechecked and stay: `Util.executeInSequence` and `Util.runWithRetries` (no retry loop around the save and datafix file moves). `map-check`: `python3 tools/port_ledger.py map-check tools/port_map/rest-023.tsv` -> `81 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/rest-023.tsv` -> `81 rows, no problems.` **Not proven:** no in-game check (no guest kicked on a live server). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:33 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7599
No description provided.