graphprotocol / graphprotocol/graph-node
Blockhandler making multiple eth_calls when it should just be one
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Rust
- Sterne
- 3.2k
- Forks
- 1.1k
- Ø Merge
- 4 T. 1 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit src/gauge.ts des referenzierten Subgraphs in Zeile 239 und den wiederholten Block-Handler-Logs für Block 13980251. Vergleiche die Handler-Aufrufe und die latestAnswer()-Traces und reproduziere anschließend das Verhalten mit dem IPFS-Hash QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79. Erledigt bedeutet, zu erklären oder zu korrigieren, warum ein Block mehrere Aufrufe erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- backend, blockchain
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100