|
|
@ -37,7 +37,8 @@ import com.google.common.annotations.VisibleForTesting; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
|
|
|
public class TransactionBroadcaster implements TransactionBatchAddedListener { |
|
|
|
public class TransactionBroadcaster |
|
|
|
|
|
|
|
implements TransactionBatchAddedListener, PendingTransactionDroppedListener { |
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(TransactionBroadcaster.class); |
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(TransactionBroadcaster.class); |
|
|
|
|
|
|
|
|
|
|
|
private static final EnumSet<TransactionType> ANNOUNCE_HASH_ONLY_TX_TYPES = EnumSet.of(BLOB); |
|
|
|
private static final EnumSet<TransactionType> ANNOUNCE_HASH_ONLY_TX_TYPES = EnumSet.of(BLOB); |
|
|
@ -219,4 +220,9 @@ public class TransactionBroadcaster implements TransactionBatchAddedListener { |
|
|
|
destinationList.add(sourceList.remove(i)); |
|
|
|
destinationList.add(sourceList.remove(i)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void onTransactionDropped(final Transaction transaction, final RemovalReason reason) { |
|
|
|
|
|
|
|
transactionTracker.onTransactionDropped(transaction, reason); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|