[SMRT] Base VRF v2.5 subscription cannot be cancelled after the consumer already finished
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go, solidity
- Área
- blockchain
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 8.3k
- Forks
- 2k
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 120
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de smartcontractkit/chainlink
-
[NODE] Node crashes on startup when AuditLogger is enabledQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
smartcontractkit/chainlink#23571 ·
Los mantenedores suelen responder en 1 día
-
keeper sync passes nil context to on-chain RPC callsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
smartcontractkit/chainlink#21489 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
smartcontractkit/chainlink#14513 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
smartcontractkit/chainlink#24294 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
smartcontractkit/chainlink#24293 ·
Los mantenedores suelen responder en 1 día
Todos los issues de smartcontractkit/chainlink
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 2 días
-
[Bug] vela config-template apply drops the template's metadata.descriptionPosiblemente ocupada @backendArchitect la tomó hoy. Abiertoarea/cli area/config good first issue type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kubevela/kubevela#7756 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día