github.com/turingchain2020/turingchain@v1.1.21/system/mempool/testdata/turingchain.test.toml (about) 1 Title="turingchain" 2 TestNet=true 3 CoinSymbol="trc" 4 5 [log] 6 # 日志级别,支持debug(dbug)/info/warn/error(eror)/crit 7 loglevel = "debug" 8 logConsoleLevel = "info" 9 # 日志文件名,可带目录,所有生成的日志文件都放到此目录下 10 logFile = "logs/turingchain.log" 11 # 单个日志文件的最大值(单位:兆) 12 maxFileSize = 20 13 # 最多保存的历史日志文件个数 14 maxBackups = 20 15 # 最多保存的历史日志消息(单位:天) 16 maxAge = 28 17 # 日志文件名是否使用本地事件(否则使用UTC时间) 18 localTime = true 19 # 历史日志文件是否压缩(压缩格式为gz) 20 compress = false 21 # 是否打印调用源文件和行号 22 callerFile = true 23 # 是否打印调用方法 24 callerFunction = true 25 26 [blockchain] 27 defCacheSize=128 28 maxFetchBlockNum=128 29 timeoutSeconds=5 30 batchBlockNum=128 31 driver="memdb" 32 dbPath="datadir" 33 dbCache=64 34 isStrongConsistency=true 35 singleMode=true 36 batchsync=false 37 isRecordBlockSequence=true 38 isParaChain=false 39 enableTxQuickIndex=false 40 41 42 [p2p] 43 types=[ "dht"] 44 enable=true 45 driver="memdb" 46 dbPath="datadir/addrbook" 47 dbCache=4 48 grpcLogFile="grpc33.log" 49 50 [p2p.sub.dht] 51 52 [rpc] 53 jrpcBindAddr="localhost:9671" 54 grpcBindAddr="localhost:9672" 55 whitelist=["127.0.0.1"] 56 jrpcFuncWhitelist=["*"] 57 grpcFuncWhitelist=["*"] 58 enableTLS=false 59 certFile="cert.pem" 60 keyFile="key.pem" 61 62 [mempool] 63 name="timeline" 64 poolCacheSize=10240 65 # 最小得交易手续费率,这个没有默认值,必填,一般是0.001 coins 66 minTxFeeRate=100000 67 # 最大的交易手续费率, 0.1 coins 68 maxTxFeeRate=10000000 69 # 单笔交易最大的手续费, 10 coins 70 maxTxFee=1000000000 71 maxTxNumPerAccount=100 72 isLevelFee=false 73 74 [mempool.sub.timeline] 75 poolCacheSize=10240 76 77 [mempool.sub.score] 78 poolCacheSize=10240 79 timeParam=1 #时间占价格比例 80 priceConstant=1544 #手续费相对于时间的一个合适的常量,取当前unxi时间戳前四位数,排序时手续费高1e-5~=快1s 81 pricePower=1 #常量比例 82 83 [mempool.sub.price] 84 poolCacheSize=10240 85 86 [consensus] 87 name="solo" 88 minerstart=true 89 genesisBlockTime=1514533394 90 genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" 91 minerExecs=["ticket", "autonomy"] 92 93 [mver.consensus] 94 fundKeyAddr = "1BQXS6TxaYYG5mADaWij4AxhZZUTpw95a5" 95 coinReward = 18 96 coinDevFund = 12 97 ticketPrice = 10000 98 powLimitBits = "0x1f00ffff" 99 retargetAdjustmentFactor = 4 100 futureBlockTime = 16 101 ticketFrozenTime = 5 #5s only for test 102 ticketWithdrawTime = 10 #10s only for test 103 ticketMinerWaitTime = 2 #2s only for test 104 maxTxNumber = 4 #160 105 targetTimespan = 2304 106 targetTimePerBlock = 16 107 108 [mver.consensus.ForkChainParamV1] 109 maxTxNumber = 10000 110 targetTimespan = 288 #only for test 111 targetTimePerBlock = 2 112 113 [mver.consensus.ForkChainParamV2] 114 powLimitBits = "0x1f2fffff" 115 116 [mver.consensus.ForkTicketFundAddrV1] 117 fundKeyAddr = "1Ji3W12KGScCM7C2p8bg635sNkayDM8MGY" 118 119 [consensus.sub.solo] 120 genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" 121 genesisBlockTime=1514533394 122 hotkeyAddr="12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" 123 waitTxMs=10 124 125 [consensus.sub.ticket] 126 genesisBlockTime=1514533394 127 [[consensus.sub.ticket.genesis]] 128 minerAddr="12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" 129 returnAddr="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" 130 count=10000 131 132 [[consensus.sub.ticket.genesis]] 133 minerAddr="1PUiGcbsccfxW3zuvHXZBJfznziph5miAo" 134 returnAddr="1EbDHAXpoiewjPLX9uqoz38HsKqMXayZrF" 135 count=10000 136 137 [[consensus.sub.ticket.genesis]] 138 minerAddr="1EDnnePAZN48aC2hiTDzhkczfF39g1pZZX" 139 returnAddr="1KcCVZLSQYRUwE5EXTsAoQs9LuJW6xwfQa" 140 count=10000 141 142 [store] 143 name="mavl" 144 driver="memdb" 145 dbPath="datadir/mavltree" 146 dbCache=128 147 148 [store.sub.mavl] 149 enableMavlPrefix=false 150 enableMVCC=false 151 enableMavlPrune=false 152 pruneHeight=10000 153 # 是否使能mavl数据载入内存 154 enableMemTree=false 155 # 是否使能mavl叶子节点数据载入内存 156 enableMemVal=false 157 158 [wallet] 159 minFee=1000000 160 driver="memdb" 161 dbPath="datadir/wallet" 162 dbCache=16 163 signType="secp256k1" 164 165 [wallet.sub.ticket] 166 minerwhitelist=["*"] 167 168 [exec] 169 170 enableStat=false 171 enableMVCC=false 172 173 [exec.sub.token] 174 saveTokenTxList=true 175 tokenApprs = [ 176 "1Bsg9j6gW83sShoee1fZAt9TkUjcrCgA9S", 177 "1Q8hGLfoGe63efeWa8fJ4Pnukhkngt6poK", 178 "1LY8GFia5EiyoTodMLfkB5PHNNpXRqxhyB", 179 "1GCzJDS6HbgTQ2emade7mEJGGWFfA15pS9", 180 "1JYB8sxi4He5pZWHCd3Zi2nypQ4JMB6AxN", 181 "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv", 182 ] 183 184 [exec.sub.relay] 185 genesis="14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" 186 187 [exec.sub.cert] 188 # 是否启用证书验证和签名 189 enable=false 190 # 加密文件路径 191 cryptoPath="authdir/crypto" 192 # 带证书签名类型,支持"auth_ecdsa", "auth_sm2" 193 signType="auth_ecdsa" 194 195 [exec.sub.manage] 196 superManager=[ 197 "1Bsg9j6gW83sShoee1fZAt9TkUjcrCgA9S", 198 "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv", 199 "1Q8hGLfoGe63efeWa8fJ4Pnukhkngt6poK" 200 ] 201 202 [exec.sub.autonomy] 203 total="16htvcBNSEA7fZhAdLJphDwQRQJaHpyHTp" 204 useBalance=false 205 206 [health] 207 listenAddr="localhost:9675" 208 checkInterval=1 209 unSyncMaxTimes=2