diff --git a/pkg/network/server.go b/pkg/network/server.go
index 7900923b3..28e1c71a9 100644
--- a/pkg/network/server.go
+++ b/pkg/network/server.go
@@ -639,10 +639,7 @@ func (s *Server) RelayTxn(t *transaction.Transaction) RelayReason {
 		return RelayOutOfMemory
 	}
 
-	for p := range s.Peers() {
-		payload := payload.NewInventory(payload.TXType, []util.Uint256{t.Hash()})
-		s.RelayDirectly(p, payload)
-	}
+	s.relayInventory(payload.TXType, t.Hash())
 
 	return RelaySucceed
 }