Skip to content

Commit

Permalink
Don't use the sync beforehand - the manager.Make takes care of that
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Mar 5, 2024
1 parent 73bff7b commit 84c01b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions core/txn/pool/controller/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ func (a *addAction) Execute(ctx node.Context) error {

manager := getManager(signer, a.client)

err = manager.Sync()
if err != nil {
return xerrors.Errorf("failed to sync manager: %v", err)
}

tx, err := manager.Make(args...)
if err != nil {
return xerrors.Errorf("creating transaction: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion core/txn/pool/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (miniController) OnStop(inj node.Injector) error {
return nil
}

// client return monotically increasing nonce
// client returns monotonically increasing nonce
//
// - implements signed.Client
type client struct {
Expand Down

0 comments on commit 84c01b4

Please sign in to comment.