github.com/turingchain2020/turingchain@v1.1.21/cmd/turingchain/turingchain.test.toml (about)

     1  Title="turingchain"
     2  TestNet=true
     3  CoinSymbol="trc"
     4  TxHeight=true
     5  
     6  # crypto模块配置
     7  [crypto]
     8  enableTypes=[]    #设置启用的加密插件名称,不配置启用所有
     9  [crypto.enableHeight]  #配置已启用插件的启用高度,不配置采用默认高度0, 负数表示不启用
    10  secp256k1=0
    11  [crypto.sub.secp256k1] #支持插件子配置
    12  
    13  [log]
    14  # 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
    15  loglevel = "debug"
    16  logConsoleLevel = "info"
    17  # 日志文件名,可带目录,所有生成的日志文件都放到此目录下
    18  logFile = "logs/turingchain.log"
    19  # 单个日志文件的最大值(单位:兆)
    20  maxFileSize = 20
    21  # 最多保存的历史日志文件个数
    22  maxBackups = 20
    23  # 最多保存的历史日志消息(单位:天)
    24  maxAge = 28
    25  # 日志文件名是否使用本地事件(否则使用UTC时间)
    26  localTime = true
    27  # 历史日志文件是否压缩(压缩格式为gz)
    28  compress = false
    29  # 是否打印调用源文件和行号
    30  callerFile = true
    31  # 是否打印调用方法
    32  callerFunction = true
    33  
    34  [blockchain]
    35  defCacheSize=128
    36  maxFetchBlockNum=128
    37  timeoutSeconds=5
    38  batchBlockNum=128
    39  driver="memdb"
    40  dbPath="datadir"
    41  dbCache=64
    42  isStrongConsistency=true
    43  singleMode=true
    44  batchsync=false
    45  isRecordBlockSequence=true
    46  isParaChain=false
    47  enableTxQuickIndex=false
    48  # 使能精简localdb
    49  enableReduceLocaldb=false
    50  # 关闭分片存储,默认false为开启分片存储;平行链不需要分片需要修改此默认参数为true
    51  disableShard=false
    52  # 分片存储中每个大块包含的区块数
    53  chunkblockNum=1000
    54  # 使能从P2pStore中获取数据
    55  enableFetchP2pstore=false
    56  # 使能假设已删除已归档数据后,获取数据情况
    57  enableIfDelLocalChunk=false
    58  
    59  [p2p]
    60  types=[ "dht"]
    61  enable=true
    62  driver="memdb"
    63  dbPath="datadir/addrbook"
    64  dbCache=4
    65  grpcLogFile="grpc33.log"
    66  
    67  [p2p.sub.dht]
    68  port=13803
    69  
    70  [rpc]
    71  jrpcBindAddr="localhost:9671"
    72  grpcBindAddr="localhost:9672"
    73  whitelist=["127.0.0.1"]
    74  jrpcFuncWhitelist=["*"]
    75  grpcFuncWhitelist=["*"]
    76  enableTLS=false
    77  certFile="cert.pem"
    78  keyFile="key.pem"
    79  
    80  [mempool]
    81  name="timeline"
    82  poolCacheSize=10240
    83  # 最小得交易手续费率,这个没有默认值,必填,一般是0.001 coins
    84  minTxFeeRate=100000
    85  # 最大的交易手续费率, 0.1 coins
    86  maxTxFeeRate=10000000
    87  # 单笔交易最大的手续费, 10 coins
    88  maxTxFee=1000000000
    89  maxTxNumPerAccount=100
    90  isLevelFee=false
    91  
    92  [mempool.sub.timeline]
    93  poolCacheSize=10240
    94  
    95  [mempool.sub.score]
    96  poolCacheSize=10240
    97  timeParam=1      #时间占价格比例
    98  priceConstant=1544  #手续费相对于时间的一个合适的常量,取当前unxi时间戳前四位数,排序时手续费高1e-5~=快1s
    99  pricePower=1     #常量比例
   100  
   101  [mempool.sub.price]
   102  poolCacheSize=10240
   103  
   104  [consensus]
   105  name="solo"
   106  minerstart=true
   107  genesisBlockTime=1514533394
   108  genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
   109  minerExecs=["ticket", "autonomy"]
   110  
   111  [mver.consensus]
   112  fundKeyAddr = "1BQXS6TxaYYG5mADaWij4AxhZZUTpw95a5"
   113  powLimitBits = "0x1f00ffff"
   114  maxTxNumber = 1600      #160
   115  
   116  
   117  [mver.consensus.ForkChainParamV1]
   118  maxTxNumber = 10000
   119  
   120  [mver.consensus.ForkChainParamV2]
   121  powLimitBits = "0x1f2fffff"
   122  
   123  [mver.consensus.ForkTicketFundAddrV1]
   124  fundKeyAddr = "1Ji3W12KGScCM7C2p8bg635sNkayDM8MGY"
   125  
   126  [mver.consensus.ticket]
   127  coinReward = 18
   128  coinDevFund = 12
   129  ticketPrice = 10000
   130  retargetAdjustmentFactor = 4
   131  futureBlockTime = 16
   132  ticketFrozenTime = 5    #5s only for test
   133  ticketWithdrawTime = 10 #10s only for test
   134  ticketMinerWaitTime = 2 #2s only for test
   135  targetTimespan = 2304
   136  targetTimePerBlock = 16
   137  
   138  [mver.consensus.ticket.ForkChainParamV1]
   139  targetTimespan = 288 #only for test
   140  targetTimePerBlock = 2
   141  
   142  [consensus.sub.solo]
   143  genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
   144  genesisBlockTime=1514533394
   145  hotkeyAddr="12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
   146  waitTxMs=10
   147  
   148  [consensus.sub.ticket]
   149  genesisBlockTime=1514533394
   150  [[consensus.sub.ticket.genesis]]
   151  minerAddr="12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
   152  returnAddr="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
   153  count=10000
   154  
   155  [[consensus.sub.ticket.genesis]]
   156  minerAddr="1PUiGcbsccfxW3zuvHXZBJfznziph5miAo"
   157  returnAddr="1EbDHAXpoiewjPLX9uqoz38HsKqMXayZrF"
   158  count=10000
   159  
   160  [[consensus.sub.ticket.genesis]]
   161  minerAddr="1EDnnePAZN48aC2hiTDzhkczfF39g1pZZX"
   162  returnAddr="1KcCVZLSQYRUwE5EXTsAoQs9LuJW6xwfQa"
   163  count=10000
   164  
   165  [store]
   166  name="mavl"
   167  driver="memdb"
   168  dbPath="datadir/mavltree"
   169  dbCache=128
   170  
   171  [store.sub.mavl]
   172  enableMavlPrefix=false
   173  enableMVCC=false
   174  enableMavlPrune=false
   175  pruneHeight=10000
   176  # 是否使能mavl数据载入内存
   177  enableMemTree=false
   178  # 是否使能mavl叶子节点数据载入内存
   179  enableMemVal=false
   180  # 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000
   181  tkCloseCacheLen=100000
   182  
   183  [wallet]
   184  minFee=1000000
   185  driver="memdb"
   186  dbPath="datadir/wallet"
   187  dbCache=16
   188  signType="secp256k1"
   189  coinType="trc"
   190  
   191  [wallet.sub.ticket]
   192  minerwhitelist=["*"]
   193  
   194  [exec]
   195  enableStat=false
   196  enableMVCC=false
   197  
   198  [exec.sub.token]
   199  saveTokenTxList=true
   200  tokenApprs = [
   201  	"1Bsg9j6gW83sShoee1fZAt9TkUjcrCgA9S",
   202  	"1Q8hGLfoGe63efeWa8fJ4Pnukhkngt6poK",
   203  	"1LY8GFia5EiyoTodMLfkB5PHNNpXRqxhyB",
   204  	"1GCzJDS6HbgTQ2emade7mEJGGWFfA15pS9",
   205  	"1JYB8sxi4He5pZWHCd3Zi2nypQ4JMB6AxN",
   206  	"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv",
   207  ]
   208  
   209  [exec.sub.relay]
   210  genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt"
   211  
   212  [exec.sub.cert]
   213  # 是否启用证书验证和签名
   214  enable=false
   215  # 加密文件路径
   216  cryptoPath="authdir/crypto"
   217  # 带证书签名类型,支持"auth_ecdsa", "auth_sm2"
   218  signType="auth_ecdsa"
   219  
   220  [exec.sub.manage]
   221  superManager=[
   222      "1Bsg9j6gW83sShoee1fZAt9TkUjcrCgA9S",
   223      "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv",
   224      "1Q8hGLfoGe63efeWa8fJ4Pnukhkngt6poK"
   225  ]
   226  
   227  [exec.sub.autonomy]
   228  total="16htvcBNSEA7fZhAdLJphDwQRQJaHpyHTp"
   229  useBalance=false
   230  
   231  [health]
   232  listenAddr="localhost:9675"
   233  checkInterval=1
   234  unSyncMaxTimes=2
   235  
   236  [metrics]
   237  #是否使能发送metrics数据的发送
   238  enableMetrics=false
   239  #数据保存模式
   240  dataEmitMode="influxdb"
   241  
   242  [metrics.sub.influxdb]
   243  #以纳秒为单位的发送间隔
   244  duration=1000000000
   245  url="http://influxdb:8086"
   246  database="turingchainmetrics"
   247  username=""
   248  password=""
   249  namespace=""