mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
Merge pull request #2426 from nspcc-dev/notary-ignore-erralreadyexists
cli/server: don't spit out error if notary request already exists
This commit is contained in:
commit
0c3327af25
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,8 @@ func mkP2PNotary(config network.ServerConfig, chain *core.Blockchain, serv *netw
|
||||||
Log: log,
|
Log: log,
|
||||||
}
|
}
|
||||||
n, err := notary.NewNotary(cfg, serv.Net, serv.GetNotaryPool(), func(tx *transaction.Transaction) error {
|
n, err := notary.NewNotary(cfg, serv.Net, serv.GetNotaryPool(), func(tx *transaction.Transaction) error {
|
||||||
if err := serv.RelayTxn(tx); err != nil {
|
err := serv.RelayTxn(tx)
|
||||||
|
if err != nil && !errors.Is(err, core.ErrAlreadyExists) {
|
||||||
return fmt.Errorf("can't relay completed notary transaction: hash %s, error: %w", tx.Hash().StringLE(), err)
|
return fmt.Errorf("can't relay completed notary transaction: hash %s, error: %w", tx.Hash().StringLE(), err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue