Skip to content

Commit f0d0885

Browse files
committed
Fix typo in protol-spec-zh and minor error
This commit is migrated from #2322. Change-Id: Id205b5c74be0975d3c2f1648ca40b8dd210cebb7 Signed-off-by: jiangyaoguo <[email protected]>
1 parent 84431e3 commit f0d0885

File tree

2 files changed

+140
-139
lines changed

2 files changed

+140
-139
lines changed

docs/protocol-spec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ func NewConsenter(cpi consensus.CPI) (consenter consensus.Consenter)
11131113

11141114
This function reads the `peer.validator.consensus` value in `core.yaml` configuration file, which is the configuration file for the `peer` process. The value of the `peer.validator.consensus` key defines whether the validating peer will run with the `noops` consensus plugin or the `pbft` one. (Notice that this should eventually be changed to either `noops` or `custom`. In case of `custom`, the validating peer will run with the consensus plugin defined in `consensus/config.yaml`.)
11151115

1116-
The plugin author needs to edit the function's body so that it routes to the right constructor for their package. For example, for `pbft` we point to the `obcpft.GetPlugin` constructor.
1116+
The plugin author needs to edit the function's body so that it routes to the right constructor for their package. For example, for `pbft` we point to the `pbft.GetPlugin` constructor.
11171117

11181118
This function is called by `helper.NewConsensusHandler` when setting the `consenter` field of the returned message handler. The input argument `cpi` is the output of the `helper.NewHelper` constructor and implements the `consensus.CPI` interface.
11191119

0 commit comments

Comments
 (0)