Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Add comments to different ABCI functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Jan 23, 2024
1 parent ac297aa commit 128be5e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (w *Workflow) Query(_ context.Context, _ *types.RequestQuery) (*types.Respo
// Mempool Connection
// Validate a tx for the mempool
func (w *Workflow) CheckTx(_ context.Context, _ *types.RequestCheckTx) (*types.ResponseCheckTx, error) {
panic("not implemented") // TODO: Implement
panic("not implemented") // TODO: It should do the soundness check
}

// Consensus Connection
Expand All @@ -62,15 +62,11 @@ func (w *Workflow) InitChain(_ context.Context, _ *types.RequestInitChain) (*typ
}

func (w *Workflow) PrepareProposal(_ context.Context, _ *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) {
if err := w.Execute(); err != nil {
return nil, err
}

return &types.ResponsePrepareProposal{}, nil
panic("not implemented") // TODO: It should do the aggregation and ordering/sequencing
}

func (w *Workflow) ProcessProposal(_ context.Context, _ *types.RequestProcessProposal) (*types.ResponseProcessProposal, error) {
panic("not implemented") // TODO: Implement
panic("not implemented") // TODO: It should do the verification of the final proof and perform the soundness check
}

// Deliver the decided block with its txs to the Application
Expand Down

0 comments on commit 128be5e

Please sign in to comment.