[SMRT] Base VRF v2.5 subscription cannot be cancelled after the consumer already finished
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ó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, solidity
- Lĩnh vực
- blockchain
Hướng nghiên cứu
The requested fix is an on-chain admin action, not a code change: the coordinator owner must call ownerCancelSubscription on the coordinator at 0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634 for the given subscription id. Read pendingRequestExists, cancelSubscription, and removeConsumer in the VRF v2.5 coordinator, and check how pendingReqCount and s_requestCommitments are tracked. Done means the subscription balance is returned to the owner and the coordinator reports no pending request. A newcomer cannot complete this without coordinator-owner access.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
A VRF v2.5 subscription on Base cannot be cancelled or have its consumer removed. The consuming contract already completed the request and minted the NFT. The coordinator still has pendingRequestExists == true because fulfillRandomWords was never called on it, so pendingReqCount was never decremented. cancelSubscription and removeConsumer both revert with PendingRequestExists() (0xb42f66e8). The coordinator is not a proxy, so the owner of the subscription has no function that can clear the flag. ownerCancelSubscription can, and only the coordinator owner can call it.
This is the same lock as #12446, which was closed with "sorted out with the help of the chainlink team," and #23279, which is still open and asks for a user-callable timeout. Please cancel this subscription, and please add a subscription-owner timeout for requests the oracle has already dropped.
Basic Information
- Network: Base mainnet, chain id 8453
- Coordinator:
0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634(VRFCoordinatorV2_5_Optimism, verified, not a proxy, not upgradeable) - Coordinator owner:
0xcEf2893e396d530bdECB1F1467e69F7B994eC5Ad(Safe 1.3.0, threshold 4) - LINK:
0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196 - Blockhash store:
0x78b69899C8cD252126cBB1A50171ec37286C3877 - Subscription id:
78271368823521773731966805894177547313492433793311695796634120971644672709750 - Subscription owner:
0xFBb403Def650925Df02BCb71eaB93512b44f60df(EOA) - Consumer:
0x536fDf3027ae6F34499B4452aFbD9E1B872f6Bd2(Agent Bounty Plates, ERC-721PLATE) - Balance still in the subscription: 1 LINK and 0.001 ETH
getSubscriptionreqCount: 0- UI: https://vrf.chain.link/base#/side-drawer/subscription/base/78271368823521773731966805894177547313492433793311695796634120971644672709750
- UI status for the row: "Failed: Pending for over 24 hours". Fulfillments shown: 0. Consumer total spent: 0 LINK, 0 ETH. Max gas price column: 30 gwei.
Request that is still open on the coordinator:
- Request id:
26557430773480077820545383181341549057345614613479920506861248445214932282046 - Request id hex:
0x3ab6f91fb6e7f8335ac4d00f930dc7e49b5022d3a46d1d18d414c1d741c32abe - Claim tx:
0x92467b2beba623d587655057941700ca28b10a720054836333a6b8f1393d1282 - Block: 46511361 (26 May 2026, 16:14 UTC)
- Key hash:
0xdc2f87677b01473c763cb0aee938ed3341512f6057324a584e5944e786144d70(Base 30 gwei lane) - Callback gas limit: 500000
- Num words: 1
- Confirmations: 3
- Payment asset: LINK
s_requestCommitments(requestId)is still0xd75414a20f2d727d8caee33d56d68627b7fbafa22c9c6fa8187c1e0b1f95302f- Blockhash for 46511361 is stored.
getBlockhashon the blockhash store returns0xa5e44313cd2ecafb58dbc0b403647f550097a7d4e17433c1617159d0573a2e2a - No
RandomWordsFulfilledwas emitted for this request id
Consumer state, which is already finished:
- Recipient
0x66cb54f4412cdbf8bd0dad18abe09f1444cfa5cahasbalanceOf1 AgentBountyPlates.pendingRequests()is 0AgentBountyPlates.vrfCoordinator()is the real coordinator again- The plate was completed through the consumer's own fulfillment path. That path does not call
fulfillRandomWordson the coordinator, so it does not decrementpendingReqCountand does not deletes_requestCommitments
Steps to Reproduce
- Read
pendingRequestExists(78271368823521773731966805894177547313492433793311695796634120971644672709750)on the coordinator. It returns true. - From the subscription owner, call
cancelSubscription(subId, 0xFBb403Def650925Df02BCb71eaB93512b44f60df). The node reverts withPendingRequestExists(). - From the subscription owner, call
removeConsumer(subId, 0x536fDf3027ae6F34499B4452aFbD9E1B872f6Bd2). Same revert,0xb42f66e8. migratereverts on the same check.- The Subscription Manager shows the request as failed after 24 hours. That label is not enforced in
VRFCoordinatorV2_5. The 24-hour mark does not clearpendingReqCount.
Additional Information
pendingReqCount is incremented in requestRandomWords and decremented only in fulfillRandomWords (the change from #12425). A reverting consumer callback would still clear it, because the coordinator deletes the commitment and decrements the counter around the callback. The oracle never submitted that fulfillment. The request is past the 24-hour window the UI and the node use, so the oracle has dropped it. The subscription owner cannot produce a VRF proof.
Chainlink Functions exposes timeoutRequests to the subscription owner after a short delay. This coordinator does not. The only function that pays the balance out while a request is still marked pending is ownerCancelSubscription(uint256), and it is onlyOwner.
Please execute, from 0xcEf2893e396d530bdECB1F1467e69F7B994eC5Ad:
ownerCancelSubscription(78271368823521773731966805894177547313492433793311695796634120971644672709750)
on 0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634. That sends the remaining 1 LINK and 0.001 ETH to 0xFBb403Def650925Df02BCb71eaB93512b44f60df.
I can sign a message from that owner address if you need proof of control. Contact: [email protected]. GitHub: avalidurl.
- Ngôn ngữ chính
- Go
- Star
- 8.3k
- Fork
- 2k
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 120
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 smartcontractkit/chainlink
-
[NODE] Node crashes on startup when AuditLogger is enabledCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
smartcontractkit/chainlink#23571 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
keeper sync passes nil context to on-chain RPC callsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
smartcontractkit/chainlink#21489 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
smartcontractkit/chainlink#14513 ·
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 25/100
smartcontractkit/chainlink#24294 ·
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 15/100
smartcontractkit/chainlink#24293 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của smartcontractkit/chainlink
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] vela config-template apply drops the template's metadata.descriptionCó thể đã có người làm @backendArchitect đã nhận hôm nay. Đang mởarea/cli area/config good first issue type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubevela/kubevela#7756 · 1 bình luận ·
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 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày