Skip to content

Commit

Permalink
fix: ignore immature tx error in relay
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Apr 8, 2019
1 parent ec08b01 commit 28dc293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync/src/relayer/transaction_process.rs
Expand Up @@ -69,7 +69,8 @@ where
}
}
Err(PoolError::InvalidTx(TransactionError::UnknownInput))
| Err(PoolError::InvalidTx(TransactionError::Conflict)) => {
| Err(PoolError::InvalidTx(TransactionError::Conflict))
| Err(PoolError::InvalidTx(TransactionError::Immature)) => {
// this error may occured when peer's tip is different with us,
// we can't proof peer is bad so just ignore this
debug!(target: "relay", "peer {} relay a conflict or missing input tx: {:?}", self.peer, tx);
Expand Down

0 comments on commit 28dc293

Please sign in to comment.