From da6652de3817c7dab789da6816679eab62997c21 Mon Sep 17 00:00:00 2001 From: hattizai Date: Sat, 21 Dec 2024 10:11:48 +0800 Subject: [PATCH] remove redundant words and symbols --- docs/architecture/adr-75-v2.md | 2 +- docs/build/abci/03-vote-extensions.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/architecture/adr-75-v2.md b/docs/architecture/adr-75-v2.md index 8b436606e73d..c7f8884b7313 100644 --- a/docs/architecture/adr-75-v2.md +++ b/docs/architecture/adr-75-v2.md @@ -104,7 +104,7 @@ Consensus is the component that controls the interaction with the consensus engi The consensus server is responsible for handling the execution model of the state machine. The state machine executes transactions when it is told, it is unaware of the execution model. -Since consensus servers can be swapped there are certain features features specific to consensus engines need to be implemented in the server. In the CometBFT server we have implemented the following features: +Since consensus servers can be swapped there are certain features specific to consensus engines need to be implemented in the server. In the CometBFT server we have implemented the following features: * Mempool * Prepare & Process Proposal diff --git a/docs/build/abci/03-vote-extensions.md b/docs/build/abci/03-vote-extensions.md index 1ce431618f21..2140fa38d136 100644 --- a/docs/build/abci/03-vote-extensions.md +++ b/docs/build/abci/03-vote-extensions.md @@ -147,7 +147,7 @@ Same as above: ```go serverOptions.VerifyVoteExtensionHandler = CustomVerifyVoteExtensionHandler() -func CustomVerifyVoteExtensionHandler]() handlers.VerifyVoteExtensionHandler { +func CustomVerifyVoteExtensionHandler() handlers.VerifyVoteExtensionHandler { return func(context.Context, store.ReaderMap, *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error) { return &abci.VerifyVoteExtensionResponse{}, nil } @@ -268,7 +268,7 @@ func CustomProcessProposalHandler[T transaction.Tx]() handlers.ProcessHandler[T] ### Preblocker In v2, the `PreBlocker` function works in the same way as it does in v1. However, it is -is now passed in as an option to `appbuilder.Build`. +now passed in as an option to `appbuilder.Build`. ```go app.App, err = appBuilder.Build(runtime.AppBuilderWithPreblocker(