From ce6e24770e7f3ce6d3fa8356f95d5a4a6cb9a5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A4=E7=8B=90=E4=B8=80=E5=86=B2?= <43949039+anonymousGiga@users.noreply.github.com> Date: Thu, 3 Aug 2023 17:42:00 +0800 Subject: [PATCH] Fix: successful execution of 'reth stage --commit' did not write results to the database (#4027) --- bin/reth/src/stage/run.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/reth/src/stage/run.rs b/bin/reth/src/stage/run.rs index 53cb8ec5f4..0ec5d7d4fc 100644 --- a/bin/reth/src/stage/run.rs +++ b/bin/reth/src/stage/run.rs @@ -265,6 +265,10 @@ impl Command { } } + if self.commit { + provider_rw.commit()?; + } + Ok(()) } }