Skip to content

Commit

Permalink
chore: send external entry execution (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk authored Jun 16, 2024
1 parent 4132d18 commit 4e828a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/eth/block_miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ impl BlockMiner {
let tx_hash = tx_execution.hash();
self.storage.save_execution(tx_execution.clone())?;

//TODO implement full gRPC for tx execution: if let Some(consensus) = &self.consensus {
//TODO implement full gRPC for tx execution: let execution = format!("{:?}", tx_execution.clone());
//TODO implement full gRPC for tx execution: consensus.sender.send(execution).await.unwrap();
//TODO implement full gRPC for tx execution: }
if let Some(consensus) = &self.consensus {
consensus.sender.send(ExternalEntry::TransactionExecution(tx_execution.clone())).await?;
}

// decide what to do based on mining mode
match self.mode {
Expand Down

0 comments on commit 4e828a8

Please sign in to comment.