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 11, 2019
1 parent d1973bb commit 620d1ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync/src/relayer/transaction_process.rs
Expand Up @@ -71,7 +71,8 @@ impl<'a, CI: ChainIndex> TransactionProcess<'a, CI> {
}
Err(PoolError::InvalidTx(TransactionError::UnknownInput))
| Err(PoolError::InvalidTx(TransactionError::Conflict))
| Err(PoolError::Duplicate) => {
| Err(PoolError::Duplicate)
| 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 620d1ab

Please sign in to comment.