graphprotocol / graphprotocol/graph-node

Blockhandler making multiple eth_calls when it should just be one

Open
#5,388 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced subgraph's src/gauge.ts at line 239 and the repeated block-handler logs for block 13980251. Compare the handler invocations and latestAnswer() traces, then reproduce the behavior using IPFS hash QmdYQ7rUm73b3PtUXrXHAhudZ7AW9swH5FBfPgoBs3xQ79. Done means explaining or correcting why one block produces multiple calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.