From 4e828a8546c776ef4a24428cc13c7564dcfd2c0d Mon Sep 17 00:00:00 2001 From: renancloudwalk <53792026+renancloudwalk@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:58:22 -0300 Subject: [PATCH] chore: send external entry execution (#1127) --- src/eth/block_miner.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/eth/block_miner.rs b/src/eth/block_miner.rs index 3cefbfc22..b9468f219 100644 --- a/src/eth/block_miner.rs +++ b/src/eth/block_miner.rs @@ -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 {