From 620d1ab6247e92c7fcfccb02d1066d61577421a0 Mon Sep 17 00:00:00 2001 From: jjy Date: Mon, 8 Apr 2019 10:17:11 +0800 Subject: [PATCH] fix: ignore immature tx error in relay --- sync/src/relayer/transaction_process.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync/src/relayer/transaction_process.rs b/sync/src/relayer/transaction_process.rs index 5b5d26d6da..89af16ec89 100644 --- a/sync/src/relayer/transaction_process.rs +++ b/sync/src/relayer/transaction_process.rs @@ -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);