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

Log txhash when tx fails to help debug #13

Open
samlaf opened this issue Feb 14, 2024 · 1 comment
Open

Log txhash when tx fails to help debug #13

samlaf opened this issue Feb 14, 2024 · 1 comment
Assignees

Comments

@samlaf
Copy link
Contributor

samlaf commented Feb 14, 2024

Example error message is

2024-02-13T23:05:04.599Z        ERROR   logging/zap_logger.go:57        Error updating stakes of entire operator set for quorum {"err": "execution reverted", "quorum": 0}
github.com/Layr-Labs/eigensdk-go/logging.(*ZapLogger).Error
        /go/pkg/mod/github.com/!layr-!labs/[email protected]/logging/zap_logger.go:57
main.(*AvsSync).tryNTimesUpdateStakesOfEntireOperatorSetForQuorum
        /usr/src/app/avssync.go:157
main.(*AvsSync).updateStakes
        /usr/src/app/avssync.go:99
main.(*AvsSync).Start
        /usr/src/app/avssync.go:67
main.avsSyncMain
        /usr/src/app/main.go:115
github.com/urfave/cli.HandleAction
        /go/pkg/mod/github.com/urfave/[email protected]/app.go:524
github.com/urfave/cli.(*App).Run
        /go/pkg/mod/github.com/urfave/[email protected]/app.go:286
main.main
        /usr/src/app/main.go:28
runtime.main
        /usr/local/go/src/runtime/proc.go:267

We only see "tx reverted", which makes it hard to debug. We should print the txhash of the failed tx so that we can look it up on etherscan.

@samlaf
Copy link
Contributor Author

samlaf commented Feb 14, 2024

This issue will be fixed once we merge https://github.com/Layr-Labs/eigensdk-go/pull/114/files#r1488814502 and update the eigensdk version of avs-sync. :)

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

No branches or pull requests

1 participant