-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fraud reporting #1280
Fraud reporting #1280
Conversation
…3d4590d0f3c9881144e53690eb2f67fe7
…nto feat/fraud-reports
contractCall := func(ctx context.Context) error { | ||
agentStatus, err = g.domains[chainID].BondingManager().GetAgentStatus(ctx, agent) | ||
if err != nil { | ||
return fmt.Errorf("could not get agent status: %w", err) | ||
} | ||
|
||
return nil | ||
} | ||
err = retry.WithBackoff(ctx, contractCall, g.retryConfig...) | ||
if err != nil { | ||
return false, fmt.Errorf("could not get agent status: %w", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, could this be later further abstracted as DomainClient.GetAgentStatus()
?
Regarding imports, my recommendation would be we add a precommit hook that runs something like this: find . -name "*.go" -exec goimports -w {} \; That way regardless of editor choice we will have cc @trajan0x |
804096d
to
c823471
Compare
Description
Adds fraud reporting functionality to the guard.
Handles these cases as well as updating agent statuses.: