Skip to content

Commit

Permalink
ledger: debug log some ABCI++ requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Aug 4, 2022
1 parent 43aa815 commit 84ab544
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions apps/src/lib/node/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,20 @@ impl Shell {
fn call(&mut self, req: Request) -> Result<Response, Error> {
match req {
Request::InitChain(init) => {
tracing::debug!("Request InitChain");
self.init_chain(init).map(Response::InitChain)
}
Request::Info(_) => Ok(Response::Info(self.last_state())),
Request::Query(query) => Ok(Response::Query(self.query(query))),
Request::PrepareProposal(block) => {
tracing::debug!("Request PrepareProposal");
Ok(Response::PrepareProposal(self.prepare_proposal(block)))
}
Request::VerifyHeader(_req) => {
Ok(Response::VerifyHeader(self.verify_header(_req)))
}
Request::ProcessProposal(block) => {
tracing::debug!("Request ProcessProposal");
Ok(Response::ProcessProposal(self.process_proposal(block)))
}
Request::RevertProposal(_req) => {
Expand All @@ -105,14 +108,21 @@ impl Shell {
Request::ExtendVote(_req) => {
Ok(Response::ExtendVote(self.extend_vote(_req)))
}
Request::VerifyVoteExtension(_req) => Ok(
Response::VerifyVoteExtension(self.verify_vote_extension(_req)),
),
Request::VerifyVoteExtension(_req) => {
tracing::debug!("Request VerifyVoteExtension");
Ok(Response::VerifyVoteExtension(
self.verify_vote_extension(_req),
))
}
Request::FinalizeBlock(finalize) => {
tracing::debug!("Request FinalizeBlock");
self.load_proposals();
self.finalize_block(finalize).map(Response::FinalizeBlock)
}
Request::Commit(_) => Ok(Response::Commit(self.commit())),
Request::Commit(_) => {
tracing::debug!("Request Commit");
Ok(Response::Commit(self.commit()))
}
Request::Flush(_) => Ok(Response::Flush(Default::default())),
Request::Echo(msg) => Ok(Response::Echo(response::Echo {
message: msg.message,
Expand Down

0 comments on commit 84ab544

Please sign in to comment.