Skip to content

Commit

Permalink
Merge pull request #1351 from subspace/downgrade-error-message
Browse files Browse the repository at this point in the history
Downgrade piece validation error message for nodes and farmers.
  • Loading branch information
nazar-pc authored Apr 3, 2023
2 parents 06e5c4d + 8a17dfb commit ef3a6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/subspace-farmer/src/utils/piece_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use subspace_core_primitives::{Piece, PieceIndex, SegmentCommitment, SegmentInde
use subspace_networking::libp2p::PeerId;
use subspace_networking::utils::piece_provider::PieceValidator;
use subspace_networking::Node;
use tracing::error;
use tracing::{error, warn};

pub struct SegmentCommitmentPieceValidator<NC> {
dsn_node: Node,
Expand Down Expand Up @@ -98,7 +98,7 @@ where
&segment_commitment,
piece_index.position(),
) {
error!(
warn!(
%piece_index,
%source_peer_id,
"Received invalid piece from peer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use subspace_core_primitives::{Piece, PieceIndex, SegmentCommitment};
use subspace_networking::libp2p::PeerId;
use subspace_networking::utils::piece_provider::PieceValidator;
use subspace_networking::Node;
use tracing::error;
use tracing::{error, warn};

pub struct SegmentCommitmentPieceValidator {
dsn_node: Node,
Expand Down Expand Up @@ -55,7 +55,7 @@ impl PieceValidator for SegmentCommitmentPieceValidator {
&segment_commitment,
piece_index.position(),
) {
error!(
warn!(
%piece_index,
%source_peer_id,
"Received invalid piece from peer"
Expand Down

0 comments on commit ef3a6fa

Please sign in to comment.