Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove handle new valid transaction check #224

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use tari_dan_core::{
message::DanMessage,
models::{vote_message::VoteMessage, HotStuffMessage, TariDanPayload},
services::{
epoch_manager::EpochManager,
infrastructure_services::OutboundService,
leader_strategy::PayloadSpecificLeaderStrategy,
NodeIdentitySigningService,
Expand Down Expand Up @@ -171,15 +170,7 @@ impl HotstuffService {
}

async fn handle_new_valid_transaction(&mut self, tx: Transaction, shard: ShardId) -> Result<(), anyhow::Error> {
if self
.epoch_manager
.is_validator_in_committee_for_current_epoch(shard, self.node_public_key.clone())
.await?
{
self.tx_new.send((TariDanPayload::new(tx), shard)).await?;
} else {
info!(target: LOG_TARGET, "🙇 Not in committee for transaction {}", tx.hash());
}
self.tx_new.send((TariDanPayload::new(tx), shard)).await?;
Ok(())
}

Expand Down