Title="chain33"
TestNet=true
FixTime=false

[log]
# 日志级别，支持debug(dbug)/info/warn/error(eror)/crit
loglevel = "debug"
logConsoleLevel = "info"
# 日志文件名，可带目录，所有生成的日志文件都放到此目录下
logFile = "logs/chain33.log"
# 单个日志文件的最大值（单位：兆）
maxFileSize = 300
# 最多保存的历史日志文件个数
maxBackups = 100
# 最多保存的历史日志消息（单位：天）
maxAge = 28
# 日志文件名是否使用本地事件（否则使用UTC时间）
localTime = true
# 历史日志文件是否压缩（压缩格式为gz）
compress = true
# 是否打印调用源文件和行号
callerFile = false
# 是否打印调用方法
callerFunction = false


[blockchain]
defCacheSize=128
maxFetchBlockNum=128
timeoutSeconds=5
batchBlockNum=128
driver="leveldb"
dbPath="datadir"
dbCache=64
isStrongConsistency=false
singleMode=false
batchsync=false
isRecordBlockSequence=true
isParaChain=false
enableTxQuickIndex=false

[p2p]
seeds=[]
enable=true
isSeed=false
serverStart=true
innerSeedEnable=true
useGithub=true
innerBounds=300
msgCacheSize=10240
driver="leveldb"
dbPath="datadir/addrbook"
dbCache=4
grpcLogFile="grpc33.log"


[rpc]
jrpcBindAddr="localhost:8801"
grpcBindAddr="localhost:8802"
whitelist=["127.0.0.1"]
jrpcFuncWhitelist=["*"]
grpcFuncWhitelist=["*"]

[mempool]
poolCacheSize=10240
minTxFee=100000
maxTxNumPerAccount=10000

[consensus]
name="ticket"
minerstart=true

[mver.consensus.sub.ticket]
coinReward = 18
coinDevFund = 12
ticketPrice = 10000
powLimitBits = "0x1f00ffff"
retargetAdjustmentFactor = 4
futureBlockTime = 16
ticketFrozenTime = 5    #5s only for test
ticketWithdrawTime = 10 #10s only for test
ticketMinerWaitTime = 2 #2s only for test
maxTxNumber = 1600      #160
targetTimespan = 2304
targetTimePerBlock = 16

[mver.consensus.sub.ticket.ForkBlockHash]
maxTxNumber = 10000
targetTimespan = 288 #only for test
targetTimePerBlock = 2
powLimitBits = "0x1f2fffff"


[store]
name="mavl"
driver="leveldb"
dbPath="datadir/mavltree"
dbCache=128

[store.sub.mavl]
enableMavlPrefix=false
enableMVCC=false

[store.sub.mavl2]
enableMavlPrefix=false
enableMVCC=false

[wallet]
minFee=100000
driver="leveldb"
dbPath="wallet"
dbCache=16
signType="secp256k1"

[wallet.sub.ticket]
minerdisable=false
minerwhitelist=["*"]

[exec]
isFree=false
minExecFee=100000
enableStat=false
enableMVCC=false
alias=["token1:token","token2:token","token3:token"]
saveTokenTxList=false

[exec.sub.cert]
# 是否启用证书验证和签名
enable=false
# 加密文件路径
cryptoPath="authdir/crypto"
# 带证书签名类型，支持"auth_ecdsa", "auth_sm2"
signType="auth_ecdsa"

#系统中所有的fork,默认用chain33的测试网络的
#但是我们可以替换
[fork.system]
ForkV1=75260
ForkV3= 110000
ForkBlockHash= 209186
ForkV9= 350000
ForkV12TransferExec= 408400
ForkV13ExecKey= 408400
ForkV14TxGroup= 408400
ForkV15ResetTx0= 453400
ForkV16Withdraw= 480000
ForkV22ExecRollback= 706531
ForkV23TxHeight= 806578
ForkV24TxGroupPara= 806578

[fork.sub.manage]
Enable=120000
ForkV11ManageExec= 400000

[fork.sub.retrive]
Enable=0
ForkRetrive= 180000

[fork.sub.token]
Enable=100899
ForkTokenBlackList= 190000
ForkBadTokenSymbol= 184000
ForkTokenPrice= 560000

[fork.sub.trade]
Enable=100899
ForkTradeBuyLimit= 301000
ForkV27TradeAsset= 1010000

[fork.sub.evm]
Enable=500000
ForkEVMState= 650000
ForkEVMKVHash= 1000000

[fork.sub.relay]
Enable=570000

[fork.sub.privacy]
Enable=980000

[fork.sub.blackwhite]
Enable=850000
ForkBlackWhiteV2= 900000