From be08cc8a66f72c597520698c25d431ff5b092332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Ver=C5=A1i=C4=87?= Date: Mon, 20 May 2024 16:12:54 +0300 Subject: [PATCH] fix: don't clear events buffer on wsv clone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marin Veršić --- core/src/wsv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/wsv.rs b/core/src/wsv.rs index c243256ac75..8384e8ea372 100644 --- a/core/src/wsv.rs +++ b/core/src/wsv.rs @@ -377,7 +377,7 @@ impl Clone for WorldStateView { config: self.config, block_hashes: self.block_hashes.clone(), transactions: self.transactions.clone(), - events_buffer: Vec::new(), + events_buffer: self.events_buffer.clone(), new_tx_amounts: Arc::clone(&self.new_tx_amounts), engine: self.engine.clone(), kura: Arc::clone(&self.kura),