Skip to content

Commit

Permalink
daemon: don't returns error for already tracked tx (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slixe committed Oct 26, 2023
1 parent 2ea7bc2 commit def0bed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xelis_daemon/src/p2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ impl<S: Storage> P2pServer<S> {
let mut txs_cache = peer.get_txs_cache().lock().await;
if txs_cache.contains(&hash) {
debug!("{} send us a transaction ({}) already tracked by him", peer, hash);
return Err(P2pError::AlreadyTrackedTx(hash))
// TODO Fix common peer detection
return Ok(()) // Err(P2pError::AlreadyTrackedTx(hash))
}
txs_cache.put(hash.clone(), ());
}
Expand Down

0 comments on commit def0bed

Please sign in to comment.