[SMRT] Base VRF v2.5 subscription cannot be cancelled after the consumer already finished
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 12/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, solidity
- Ambito
- blockchain
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 8.3k
- Fork
- 2k
- Merge medio
- 1g 17h
- PR unite (30g)
- 120
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di smartcontractkit/chainlink
-
[NODE] Node crashes on startup when AuditLogger is enabledForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
smartcontractkit/chainlink#23571 ·
I maintainer di solito rispondono entro 1 giorno
-
keeper sync passes nil context to on-chain RPC callsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
smartcontractkit/chainlink#21489 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
smartcontractkit/chainlink#14513 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
smartcontractkit/chainlink#24294 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
smartcontractkit/chainlink#24293 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di smartcontractkit/chainlink
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
google/osv-scanner#3341 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug] vela config-template apply drops the template's metadata.descriptionForse già presa @backendArchitect l’ha presa oggi. Apertaarea/cli area/config good first issue type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kubevela/kubevela#7756 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni