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",