github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/whisper/whisperv6/config.go (about)

     1  
     2  //<developer>
     3  //    <name>linapex 曹一峰</name>
     4  //    <email>linapex@163.com</email>
     5  //    <wx>superexc</wx>
     6  //    <qqgroup>128148617</qqgroup>
     7  //    <url>https://jsq.ink</url>
     8  //    <role>pku engineer</role>
     9  //    <date>2019-03-16 19:16:46</date>
    10  //</624450125170741248>
    11  
    12  
    13  package whisperv6
    14  
    15  //config表示耳语节点的配置状态。
    16  type Config struct {
    17  	MaxMessageSize                        uint32  `toml:",omitempty"`
    18  	MinimumAcceptedPOW                    float64 `toml:",omitempty"`
    19  	RestrictConnectionBetweenLightClients bool    `toml:",omitempty"`
    20  }
    21  
    22  //defaultconfig表示(shocker!)默认配置。
    23  var DefaultConfig = Config{
    24  	MaxMessageSize:                        DefaultMaxMessageSize,
    25  	MinimumAcceptedPOW:                    DefaultMinimumPoW,
    26  	RestrictConnectionBetweenLightClients: true,
    27  }
    28