Commit 72255a2b authored by 黄刚's avatar 黄刚

update

parent 52dd9a95
# 共识模
# 共识模
......@@ -115,6 +115,7 @@ type subConfig struct {
}
```
> 定义共识模块子配置结构体,用于从配置文件中获取配置信息。创世地址和创始区块时间会在Miner接口的CreateGenesisTx()和GetGenesisBlockTime()中用到,可以使用consensus配置项中的配置,也可以在子配置中添加配置使用,推荐在子配置中添加。
```go
type Client struct {
//父类对象指针
......@@ -124,6 +125,7 @@ type Client struct {
}
```
> 定义实现Module接口的Client结构体。
### 4.3 配置
1. 修改配置文件chain33.toml,修改[consensus]项中的name键为"numberdecide"。
2. 新增[consensus.sub.numberdecide]配置项,增加genesis,genesisBlockTime,nodeId,nodes项。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment