node: fixed ErrTxExists log on receiving a transaction after syncing
@@ -131,9 +131,11 @@ func (w *Wavelet) Receive(ctx *network.PluginContext) error {
})
if err != nil {
- if errors.Cause(err) != database.ErrTxExists {
- log.Warn().Err(err).Msg("Failed to respond to query or queue transaction to pend for acceptance")
+ if errors.Cause(err) == database.ErrTxExists {
+ return nil
}
+
+ log.Warn().Err(err).Msg("Failed to respond to query or queue transaction to pend for acceptance.")
return err
}
