ElementsProject / ElementsProject/elements

Inconsistency of "fee at end" rule

Đang mở
#978 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
1.2k
Fork
416
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
15

Mô tả

Some of our RPCs enforce a rule that the fee output must be last. I'm not clear on where this requirement comes from, or whether it needs to be enforced.

There is at least one case in blinding (blinded inputs / no blinded outputs) where we have to add a zero-value OP_RETURN output in order to balance the blinding factors. It looks like we add this at the end, which messes up the 'fee output must be last' logic.

If the fee output indeed must be last, I would like to add some checks to ensure we are consistent about this everywhere, rather than in an ad-hoc way as we do now. Then we can move the "bonus output" to be before the fee for consistency.

If not, I would like to revisit the "fee last" rule.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Theo dõi các RPCs thực thi thứ tự của fee-outputs và trường hợp blinding với blinded inputs và không có blinded outputs. Trước tiên, xác định liệu fee có phải là phần tử cuối cùng hay không; được xem là hoàn tất khi quy tắc có cơ sở rõ ràng và việc thực thi quy tắc cũng như thứ tự của bonus-outputs nhất quán ở mọi nơi áp dụng.

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

Đánh giá

Công nghệ
cpp
Lĩnh vực
blockchain
Loại issue
Tái cấu trúc
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.