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

(Sentinel) Remove nonce manager dependency from inspector #2266

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions node/pkg/chain/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ func (t *ChainHelper) GetSignedFromDelegator(tx *types.Transaction) (*types.Tran
func (t *ChainHelper) MakeDirectTx(ctx context.Context, contractAddressHex string, functionString string, args ...interface{}) (*types.Transaction, error) {
var result *types.Transaction

nonce, err := noncemanager.GetAndIncrementNonce(t.wallet)
nonce, err := utils.GetNonceFromPk(ctx, t.wallet, t.clients[0])
if err != nil {
return result, err
return nil, err
}

job := func(c utils.ClientInterface) error {
Expand Down
2 changes: 2 additions & 0 deletions node/pkg/checker/inspect/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ func (i *Inspector) Inspect(ctx context.Context) (string, error) {
}
msg += inspectVRFResult

time.Sleep(5 * time.Second) // sleep to prevent nonce reuse read from onchain

nick-bisonai marked this conversation as resolved.
Show resolved Hide resolved
inspectRRResult, err := i.inspectRR(ctx)
if err != nil {
log.Error().Err(err).Msg("Failed RR inspection")
Expand Down