From bcc2907be19e63673b9b8e221ae8770c67c95797 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:25:35 +0100 Subject: [PATCH 1/3] feat(proto): finalize snapshot --- proto/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/build.rs b/proto/build.rs index f0a79ad..b46aafa 100644 --- a/proto/build.rs +++ b/proto/build.rs @@ -4,7 +4,7 @@ use tenderdash_proto_compiler::GenerationMode; fn main() { // default Tenderdash version to use if TENDERDASH_COMMITISH is not set - const DEFAULT_VERSION: &str = "v1.3.0"; + const DEFAULT_VERSION: &str = "f89ed874f295784f3c10759d0612b64ab8ae82cb"; // check if TENDERDASH_COMMITISH is already set; if not, set it to the current // version From efaf059953b2ff5909c15f2fe589d4d4864aad56 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:34:25 +0100 Subject: [PATCH 2/3] chore: add finalize_snapshot to Application trait --- abci/src/application.rs | 8 ++++++++ abci/src/tracing_span.rs | 1 + 2 files changed, 9 insertions(+) diff --git a/abci/src/application.rs b/abci/src/application.rs index 94c30b0..10de41b 100644 --- a/abci/src/application.rs +++ b/abci/src/application.rs @@ -103,6 +103,13 @@ pub trait Application { Ok(Default::default()) } + fn finalize_snapshot( + &self, + _request: abci::RequestFinalizeSnapshot, + ) -> Result { + Ok(Default::default()) + } + fn extend_vote( &self, _request: abci::RequestExtendVote, @@ -169,6 +176,7 @@ impl RequestDispatcher for A { request::Value::ApplySnapshotChunk(req) => { self.apply_snapshot_chunk(req).map(|v| v.into()) }, + request::Value::FinalizeSnapshot(req) => self.finalize_snapshot(req).map(|v| v.into()), request::Value::ListSnapshots(req) => self.list_snapshots(req).map(|v| v.into()), request::Value::PrepareProposal(req) => self.prepare_proposal(req).map(|v| v.into()), request::Value::ProcessProposal(req) => self.process_proposal(req).map(|v| v.into()), diff --git a/abci/src/tracing_span.rs b/abci/src/tracing_span.rs index 96d58fa..2d7123b 100644 --- a/abci/src/tracing_span.rs +++ b/abci/src/tracing_span.rs @@ -87,6 +87,7 @@ fn abci_method_name(request: &Value) -> String { Value::InitChain(_) => "InitChain", Value::ListSnapshots(_) => "ListSnapshots", Value::LoadSnapshotChunk(_) => "LoadSnapshotChunk", + Value::FinalizeSnapshot(_) => "FinalizeSnapshot", Value::OfferSnapshot(_) => "OfferSnapshot", Value::PrepareProposal(_) => "PrepareProposal", Value::ProcessProposal(_) => "ProcessProposal", From ad11f453ffbfb7f0588bfd96207ac6452fc4c4c8 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:47:04 +0100 Subject: [PATCH 3/3] chore: update td revision --- proto/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/build.rs b/proto/build.rs index b46aafa..b4ea8d5 100644 --- a/proto/build.rs +++ b/proto/build.rs @@ -4,7 +4,7 @@ use tenderdash_proto_compiler::GenerationMode; fn main() { // default Tenderdash version to use if TENDERDASH_COMMITISH is not set - const DEFAULT_VERSION: &str = "f89ed874f295784f3c10759d0612b64ab8ae82cb"; + const DEFAULT_VERSION: &str = "8f33ac1c773f760a08f14a4dd9986f60449ea916"; // check if TENDERDASH_COMMITISH is already set; if not, set it to the current // version