Consider making offers expire
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- distributed-systems, fintech-quant
Hướng nghiên cứu
Bắt đầu bằng cách đọc CAP0-0003 và phần thảo luận của issue về hành vi của order-book. So sánh các cách tiếp cận purge và deterministic-expiration được đề xuất, sau đó xác định liệu protocol có cần một semantic và specification đã được quyết định hay không; hiện tại issue không nêu tên các file triển khai, test hoặc tiêu chí hoàn thành cụ thể.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
One of the things we learned with the protocol 10 rollout with changes like CAP0-0003 is that it's becoming increasingly hard to not break certain client business logic that rely on undocumented (something we can improve on for sure) or undefined behavior.
One aspect in particular is on how the order book functions: while the order book can "at any time" cancel or modify outstanding order, the issue is that those events happen so rarely that people may not realize that this is the case.
A simple way to turn the "improbable" into "certainty" (therefore hardening client code), would be to simply move semantics that are closer to how other markets work: force long lasting orders to be recreated at a regular time.
A couple possible approaches to start the discussion.
The purge
There could be a recurrent "purge" of the order book that deletes X% of the orders every T ledgers (both of these would be network parameters).
This approach seems to be close to what we want: non deterministic (due to the random nature) deletion of orders, which forces clients to not rely on any particular behavior of how the order book state is managed.
By having many ledgers between purge events, the "pseudo randomness" that comes with simple things like "ledger hash" is quite strong.
Deterministic expiration
We could also add an expiration time as a network parameter, we would pick something like a week or two as a starting point and offers would just automatically get deleted when they reach their expected life time.
The issue with that approach is that it only partially solves the problem: what if we want in a future upgrade or a future version of the protocol to delete certain offers? If client code relies on certain timing, it won't work.
A nice thing about this solution is that it's basically how standard order books work (be it "good for day" or "good until cancelled" that really means 30 or 60 days for most brokerage firms).
- Ngôn ngữ chính
- RPC
- Star
- 637
- Fork
- 404
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stellar/stellar-protocol
-
stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
stellar/stellar-protocol#2010 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
stellar/stellar-protocol#2027 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SEP-43: contract account supportCó thể làm lại được @sayweer đã nhận 23 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
stellar/stellar-protocol#1928 · 9 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Have a formal definition of sandwich transactionsCó thể làm lại được @JakeUrban đã nhận 1809 ngày trước và không có pull request nào đang mở. Đang mởneeds draft SEP
stellar/stellar-protocol#773 · 12 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Merging account with trustlinesĐang mởCAP help wanted needs draft
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
stellar/stellar-protocol#324 · 11 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stellar/stellar-protocol
Issue tương tự
-
area:manager bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[TESTING] Add unit tests for vector clock and LWW element set in server CRDT moduleCó thể đã có người làm @fortunesayspump đã nhận hôm nay. Đang mởbackend good first issue Stellar Wave testing
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 84/100
Agora-Events/agora#1668 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app:data-worker app:web meta:ops
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
osu-tournament-rating/otr#1109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
new_case_failure skipped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
intel/torch-xpu-ops#5740 ·
Maintainer thường phản hồi trong vòng 2 ngày