storage: let one gold deposit or withdrawal move more than the current per-transaction cap

Đang mở
#3,355 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, typescript
Lĩnh vực
backend, frontend

Hướng nghiên cứu

Start with the native cap at apps/client-next/src/engine/foundation/gameplay/storage-room.ts (line 59) and find where SRO_RAISED_GOLD_CAPS sets the 1,000,000,000 limit for the dialog and the server check. Check GoldAmount in apps/server/internal/game/item/wire/itemmove.go, since the u32 bound caps what one move can carry. Done when the shard-chosen limit is applied to both the dialog and the server, and a test shows a deposit and withdrawal above 1,000,000,000 under the raised rule while the 100,000,000 cap still holds without it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: server enhancement priority: low

Player report BR-261112-0210-41A6 (in-game, 2026-11-12, thread 1570259499703345253 is the mall report; this is BR-261111-2056-1800, thread 1570180473551065089): gold cannot be deposited to or withdrawn from storage in amounts above the per-transaction cap; the player asks to move as much as they want in one transaction.

Not a bug: the cap is deliberate. The original caps one warehouse gold deposit at 100,000,000 (client 59A430, recorded at apps/client-next/src/engine/foundation/gameplay/storage-room.ts:59); this shard runs the port-only SRO_RAISED_GOLD_CAPS rule, which raises the dialog and the server check to 1,000,000,000 - the limit the player is hitting. The ask is to raise it further. One wire bound: a single gold move carries a u32 amount (apps/server/internal/game/item/wire/itemmove.go GoldAmount), so one transaction cannot exceed 4,294,967,295 without a wire change; the balance itself is 64-bit.

Done when: the raised-caps limit is a value the shard can choose (for example up to the wire bound), with the dialog and the server check agreeing, and a test pins a deposit and a withdrawal above 1,000,000,000 under the raised rule while the native 100,000,000 cap still applies without it.

Ngôn ngữ chính
Go
Star
97
Fork
61
Merge trung bình
4 giờ 14 phút
Pull request đã merge (30 ngày)
913

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opensro-dev/opensro

Tất cả issue của opensro-dev/opensro

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.