graphprotocol / graphprotocol/graph-node
Blockhandler making multiple eth_calls when it should just be one
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Rust
- Estrellas
- 3.2k
- Forks
- 1.1k
- Merge medio
- 4 d 1 h
- PR fusionados (30 d)
- 1
Descripción
Bug report
This subgraph QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79 logs show muliple calls at the same block when it should just be one.
Repo: https://github.com/itsjerryokolo/launchpad-subgraph/blob/815e959a24ff58389469d87affdb7b9223bd7fb4/src/gauge.ts#L239
Relevant log output
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 52
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 53
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 49
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 36
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 48
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 55
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 60
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 64
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 60
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 51
debug
2024-05-03 10:24:15 a.m.
Contract call finished, source: memory, block_number: 13980251, block_hash: 9ac0e352c14980918483e1d758ecee54e42ee595d495d874b0817cb0127e9131, result: (472ce5f6f7), time_ms: 0ms, args: [], signature: latestAnswer():(int256), contract: ChainlinkAggregator, address: 0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70
info
2024-05-03 10:24:15 a.m.
Done processing trigger, gas_used: 7272264172, data_source: Gauge, handler: handleBlock, total_ms: 34
IPFS hash
QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79
Subgraph name or link to explorer
No response
Some information to help us out
- Tick this box if this bug is caused by a regression found in the latest release.
- Tick this box if this bug is specific to the hosted service.
- I have searched the issue tracker to make sure this issue is not a duplicate.
OS information
None
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.
Línea de trabajo
Comienza con src/gauge.ts del subgraph referenciado en la línea 239 y los logs repetidos del handler de bloque para el bloque 13980251. Compara las invocaciones del handler y las trazas de latestAnswer(), y luego reproduce el comportamiento usando el hash de IPFS QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79. Se considera terminado cuando se explique o corrija por qué un bloque produce múltiples llamadas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- backend, blockchain
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100