graphprotocol / graphprotocol/graph-node

Blockhandler making multiple eth_calls when it should just be one

Aperta
#5,388 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug Stale
Lingua principale
Rust
Stelle
3.2k
Fork
1.1k
Merge medio
4g 1h
PR unite (30g)
1

Descrizione

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

Screenshot 2024-05-03 at 5 21 31 PM
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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia da src/gauge.ts del subgraph indicato alla riga 239 e dai log ripetuti del gestore dei blocchi per il blocco 13980251. Confronta le invocazioni del gestore e le tracce di latestAnswer(), quindi riproduci il comportamento usando l’hash IPFS QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79. Il lavoro è completato quando viene spiegato o corretto il motivo per cui un blocco produce più chiamate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
backend, blockchain
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.