Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexer-agent: align cli args behaviour with network specification behaviour #1067

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chriswessels
Copy link
Member

This PR aims to align CLI arg behaviour for indexer-agent transaction settings with that of the same settings when using the network specification config:

https://github.com/graphprotocol/indexer/blob/main/packages/indexer-common/src/network-specification.ts#L66-L80

Specifically, the CLI args, despite the descriptions indicating they are in seconds, are in fact in milliseconds. The same arguments in the network specification are in seconds (because they have the transforms). The same is true for wei vs gwei.

There were also a couple of bugs:

https://github.com/graphprotocol/indexer/compare/chriswessels-patch-2?expand=1#diff-99c7c045e392890d684d7b8eeebc28aff6f48770fbc468722f04b8482719c74aR694

https://github.com/graphprotocol/indexer/compare/chriswessels-patch-2?expand=1#diff-99c7c045e392890d684d7b8eeebc28aff6f48770fbc468722f04b8482719c74aR364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🗃️ Inbox
Development

Successfully merging this pull request may close these issues.

1 participant