diff --git a/chain.para.toml b/chain.para.toml index c63fd82e0..7fd703bbc 100644 --- a/chain.para.toml +++ b/chain.para.toml @@ -2,13 +2,14 @@ Title = "user.p.para." TestNet = false CoinSymbol = "para" EnableParaFork = true +ChainID = 898 [address] #旧的版本或bty缺省是btc格式地址,可以支持eth格式地址,如果对地址格式没要求,采用缺省配置即可 -defaultDriver = "btc" +defaultDriver = "eth" [address.enableHeight] btc = 0 -eth = -1 +eth = 0 [crypto] @@ -29,9 +30,9 @@ localTime = true # 历史日志文件是否压缩(压缩格式为gz) compress = true # 是否打印调用源文件和行号 -callerFile = false +callerFile = true # 是否打印调用方法 -callerFunction = false +callerFunction = true [blockchain] @@ -47,66 +48,127 @@ singleMode = true batchsync = false #平行链钱包通过平行链区块seqence索引高度,缺省是true isRecordBlockSequence = true -isParaChain = true +isParaChain = false enableTxQuickIndex = true # 升级storedb是否重新执行localdb,bityuan主链升级不需要开启,平行链升级需要开启 enableReExecLocal = true # 使能精简localdb enableReduceLocaldb = false enablePushSubscribe = false +disableShard=true +enableSaveBlockKVs=true [p2p] types = ["dht"] -enable = false +#types = ["gossip"] +enable = true driver = "leveldb" dbPath = "paradatadir/addrbook" dbCache = 4 grpcLogFile = "grpc33.log" -waitPid = true +waitPid = false + +[p2p.sub.gossip] +port=13801 +# 种子节点,格式为ip:port,多个节点以逗号分隔,如seeds=["10.0.0.1:13802","10.0.0.2:13802","10.0.0.3:13802"] +seeds=["172.31.0.8:13801","172.31.0.9:13801","172.31.0.10:13801","172.31.0.11:13801"] +isSeed=true +innerSeedEnable=false +useGithub=false +innerBounds=300 +channel=1898 +serverStart=true +maxTTL=1 + [p2p.sub.dht] DHTDataPath = "paradatadir/p2pstore" +#seeds=["172.31.0.8:13801","172.31.0.9:13801","172.31.0.10:13801","172.31.0.11:13801"] +port=13801 # TODO.p2p.port + +maxConnectNum=100 +# 禁止通过局域网发现节点 +disableFindLANPeers=false +# 配置为全节点模式,全节点保存所有分片数据 +isFullNode=true +# 分片数据默认保存比例,最低可配置为10 +percentage=30 [rpc] # 避免与主链配置冲突 -jrpcBindAddr = "localhost:8901" -grpcBindAddr = "localhost:8902" -whitelist = ["127.0.0.1"] +jrpcBindAddr = "0.0.0.0:8901" # TODO.rpc.addr1 +grpcBindAddr = "0.0.0.0:8902" # TODO.rpc.addr2 +whitelist = ["*"] jrpcFuncWhitelist = ["*"] grpcFuncWhitelist = ["*"] [rpc.sub.eth] enable = false -httpAddr = "localhost:8545" +httpAddr = "localhost:8545" # TODO.rpc.addr3 httpApi = ["eth", "web3", "personal", "admin", "net"] # websocket 绑定地址 -wsAddr = "localhost:8546" +wsAddr = "localhost:8546" # TODO.rpc.addr4 wsApi = ["eth", "web3", "personal", "admin", "net"] [rpc.parachain] #主链节点的grpc服务器ip,当前可以支持多ip负载均衡,如“118.31.177.1:8802,39.97.2.127:8802” #mainChainGrpcAddr="jiedian2.bityuan.com,cloud.bityuan.com" -mainChainGrpcAddr = "localhost:8802" +mainChainGrpcAddr = "172.31.0.12:8902" # TODO.rpc.parachain #配置grpc负载均衡为sync模式 useGrpcLBSync = false -forwardExecs = ["all"] -forwardActionNames = [] +forwardExecs = ["paracross"] +forwardActionNames = ["crossAssetTransfer"] [mempool] -name = "para" +name = "timeline" poolCacheSize = 10240 #联盟链没有交易费,对应平行链minTxFeeRate需要设为0 -minTxFeeRate = 100000 -maxTxNumPerAccount = 10000 +minTxFeeRate = 0 +maxTxNumPerAccount = 1000000 [consensus] -name = "para" -genesisBlockTime = 1514533390 -genesis = "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" -minerExecs = ["paracross"] #配置挖矿合约 +name="qbft" +minerstart=true +genesisBlockTime=1703745259 +genesis="0x065dc496c80deaef2053429d725b69f58e3b7e82" # TODO.ADDR.u1 +#minerExecs=["ticket", "autonomy"] +enableBestBlockCmp=true +minerExecs=["paracross"] #配置挖矿合约 +#committer="rollup" + +#[consensus.sub.rollup] +## 配置节点账户私钥 +#authKey = "" +## 当authKey未配置时, 支持配置节点账户地址 +## 即从钱包中获取对应的私钥, 节点需要创建钱包并解锁导入对应的私钥 +#authAccount = "" + +[consensus.sub.rollup] +#验证者账户地址, 其私钥用于签名交易及生成验证者bls私钥对, 1CqsBFa8KMGG9yjY4XcCUWaqdscBw6eipn +#authAccount="0x7d80b7764c5d5efbac47551e737b8bfc26d25945" +#blspub=99ae786cac6a6ee65718d3bc036a57f90f92f38b5d14e6f61a7cfe2468ff96eed9e162aa0c8bda1f770b6f78513583eb +# 配置节点账户私钥 +authKey="" # TODO.ADDR1.u2 +# 是否全量数据提交, 是则所有交易需采用bls签名类型 +fullDataCommit=false +# 状态提交间隔 +# 最低60s, 默认5min +maxCommitInterval = 300 #seconds +# 设置平行链启动时对应的主链高度 +startHeight=0 +reservedMainHeight=12 +addressID=2 + +[consensus.sub.dpos] +delegateNum=1 +blockInterval=10 +continueBlockNum=100 +blockNumToUpdateDelegate=1000 +registTopNHeightLimit=10 +updateTopNHeightLimit=20 [mver.consensus] -fundKeyAddr = "1BQXS6TxaYYG5mADaWij4AxhZZUTpw95a5" +fundKeyAddr = "0x5e44c5d6380bde65368181e66c023334098c249d" # TODO.ADDR.u13 powLimitBits = "0x1f00ffff" maxTxNumber = 1600 @@ -127,6 +189,54 @@ minerMode = "normal" #挖矿减半周期,按高度减半 halvePeriod = 1000 +[consensus.sub.qbft] +# 创世交易地址 +genesis = "0x8387505d1571ee2b2d7339addb3f5dcf9f32c389" # TODO.ADDR.u11 +# 创世交易地址账户余额 +genesisAmount = 100000000 +# 创世区块时间(UTC时间) +genesisBlockTime = 1703745259 +# 获取交易间隔时长,以下时长单位均为毫秒 +timeoutTxAvail = 800 +# 等待proposal超时基准时长 +timeoutPropose = 5000 +# 每轮延长等待proposal的时长 +timeoutProposeDelta = 500 +# 等待pre-vote超时基准时长 +timeoutPrevote = 3000 +# 每轮延长等待pre-vote的时长 +timeoutPrevoteDelta = 500 +# 等待pre-commit超时基准时长 +timeoutPrecommit = 3000 +# 每轮延长等待pre-commit的时长 +timeoutPrecommitDelta = 500 +# 收到对一个区块的2/3pre-commits后,等待落后者投票超时时长,超时后将启动新高度流程 +timeoutCommit = 500 +# 是否在收到所有pre-commits,还未达到超时等待时长时,取消等待,如果为true,将启动新高度流程;如果为false,等到超时才启动新高度流程 +skipTimeoutCommit = false +# 创建空区块的时间间隔,如果等于0则认为不出空块,单位为秒 +emptyBlockInterval = 0 +# 节点公钥文件 +#genesisFile="genesis.json" +# 节点私钥文件 +#privFile="priv_validator.json" +# 共识端口号,默认为33001 +port=33001 # TODO.qbft.port +# 共识节点,格式为ip:port,多个节点以逗号分隔,节点数至少为4个 +validatorNodes=["172.31.0.8:33001","172.31.0.9:33001","172.31.0.10:33001","172.31.0.11:33001"] +# 是否开启快速同步,推荐打开 +fastSync = true +# propose阶段是否预执行区块,提高性能推荐关闭 +preExec = false +# 签名算法,支持"secp256k1","ed25519","sm2","bls",默认为"ed25519" +signName = "bls" +# 是否使用聚合签名,签名算法需支持该特性,比如"bls" +useAggregateSignature = true +# 连续提议区块的个数,默认为1 +#multiBlocks=10 +# 消息发送间隔,单位为毫秒 +#messageInterval=50 +sameBlocktime = true [consensus.sub.para] #ParaRemoteGrpcClient配置已变更为mainChainGrpcAddr @@ -148,32 +258,14 @@ mainForkParacrossCommitTx = 2270000 mainLoopCheckCommitTxDoneForkHeight = 4320000 #无平行链交易的主链区块间隔,平行链产生一个空块,从高度0开始,格式[blockHeight:interval],比如["0:50","1000:100"],blockHeight为平行链高度 emptyBlockInterval = ["0:50"] +# +selfConsensEnablePreContract=["0-1000"] #平行链共识节点聚合签名配置 [consensus.sub.para.bls] #是否开启聚合签名,缺省不开启 blsSign = false -[consensus.sub.rollup] - -# 配置节点账户私钥, 隐秘性不好, 用于测试 -authKey = "" -# 当authKey未配置时, 支持配置节点账户地址 -# 即从钱包中获取对应的私钥, 节点需要创建钱包并解锁导入对应的私钥 -authAccount = "" - -# 全量数据即提交所有交易源数据, 此时交易签名必须为bls类型 -# 默认关闭, 即仅提交区块header数据 -fullDataCommit = false -# 最大状态提交间隔时长 -# 最低60s, 默认5min -maxCommitInterval = 300 #seconds -# 设置平行链启动时对应的主链高度 -startHeight = 0 -# 同步主链区块头, 预留高度, 减少回滚概率 -# 默认12, 最低设为1 -reservedMainHeight = 12 - [store] name = "kvmvccmavl" @@ -214,7 +306,7 @@ enableEmptyBlockHandle = false enableSaveBlockKVs = true [wallet] -minFee = 100000 +minFee = 1 driver = "leveldb" dbPath = "parawallet" dbCache = 16 @@ -226,15 +318,14 @@ enableStat = false enableMVCC = false [exec.sub.relay] -genesis = "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" - +genesis = "0x2cb1656b4cc952975b5cd4efdaead4e3a68003c4" # TODO.ADDR.u12 [exec.sub.manage] -superManager = ["12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"] +superManager = ["0x58501f33644a74ac9423f0bdca6f726bc872fc55"] # TODO.ADDR.u4 #autonomy执行器名字,空则不开启,使用superManager list autonomyExec = "" [exec.sub.token] saveTokenTxList = true -tokenApprs = [] +tokenApprs = [ "0x8311a9b6c6ff9325e6e8c101cbc806cc0ce8a557"] # TODO.ADDR.u3 friendExecer = ["evm"] [exec.sub.paracross] @@ -246,13 +337,18 @@ closeSelfConsensus = false discardTxs = [] [exec.sub.autonomy] -total = "16htvcBNSEA7fZhAdLJphDwQRQJaHpyHTp" +total = "0x9082ef87346a41c12e88d160930fe6f8968c8a07" # TODO.ADDR.u7 useBalance = false [exec.sub.evm] #平行链evm合约ETH资产映射的合约和资产类型(symbol) ethMapFromExecutor = "paracross" ethMapFromSymbol = "coins.bty" +#当前最大为200万 +evmGasLimit=2000000 +#是否开启升级 +nonceUpGrade=false +addressDriver="eth" # 预编译合约配置管理员 [exec.sub.evm.preCompile] @@ -274,16 +370,12 @@ mixApprs = [] [exec.sub.zksync] #管理员列表 -manager = [ - "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", - "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv", - "0x991fb09dc31a44b3177673f330c582ac2ea168e0", -] +manager = [ "0x57d405e89e81e1e416aa8b8e9b57e4b88558f663", "0x661622fb2e1a17c734eb9c41a21a02f317b9fcdb"] # TODO.ADDR.u5.u6 #运营方配置收交易费地址,要求16进制 #可把二层交易费提取到ETH的地址,注意:真实场景需替换 -ethFeeAddr = "0x832367164346888E248bd58b9A5f480299F1e88d" +ethFeeAddr = "0x832367164346888E248bd58b9A5f480299F1e88d" #TODO.ADDR.default #二层的基于zk的chain地址,注意:非基于sep256k1的普通的chain地址,而是基于私钥产生的可用于二层的地址,真实场景需替换 -layer2FeeAddr = "2930ef48b2d018955359a77fe58a68be0c536480c57ee5a84f6c96e3ff4fa7dc" +layer2FeeAddr = "2930ef48b2d018955359a77fe58a68be0c536480c57ee5a84f6c96e3ff4fa7dc" # TODO.ADDR.default #系统中所有的fork,默认用chain的测试网络的 @@ -291,7 +383,7 @@ layer2FeeAddr = "2930ef48b2d018955359a77fe58a68be0c536480c57ee5a84f6c96e3ff4fa7d [fork.system] ForkChainParamV1 = 0 ForkCheckTxDup = 0 -ForkBlockHash = 1 +ForkBlockHash = 0 ForkMinerTime = 0 ForkTransferExec = 0 ForkExecKey = 0 @@ -313,11 +405,12 @@ ForkEnableParaRegExec = 0 ForkCacheDriver = 0 ForkTicketFundAddrV1 = -1 #fork6.3 #主链和平行链都使用同一个fork高度 -ForkRootHash = 7200000 +ForkRootHash = 0 #地址key格式化, 主要针对eth地址 ForkFormatAddressKey = 0 ForkCheckEthTxSort = 0 ForkProxyExec = 0 + [fork.sub.none] ForkUseTimeDelay = 0 @@ -435,7 +528,7 @@ Enable = 0 Enable = 0 [fork.sub.rollup] -Enable = -1 +Enable = 0 [fork.sub.accountmanager] Enable = 0 @@ -497,7 +590,7 @@ Enable = 0 [pprof] -listenAddr = "localhost:6061" +listenAddr = "localhost:6061" # TODO.pprof.port [metrics] #是否使能发送metrics数据的发送 @@ -517,32 +610,21 @@ namespace = "" #exchange合约相关配置 [mver.exec.sub.exchange] #银行帐户列表(现第一个地址用来收取手续费) -banks = ["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"] +banks = ["0x13a126ee57a0b6992f5f86a35e4f13c39e91690c"] # TODO.ADDR.u8 #机器人帐户列表 -robots = ["1Nq8MDDVqSsS2zQeEZZa7bH53b9vBuUmEW"] +robots = ["0x2be37d50236d29d5c7942b92847274c81c83fc60"] # TODO.ADDR.u9 #币种配置, #coin 转入exchange合约的币种名称 #execer 转入exchange合约的币种执行器名称 #name 执行器币种的别称 coins = [ - { coin = "bty", execer = "coins", name = "BTY" }, - { coin = "CCNY", execer = "token", name = "CCNY" }, - - { coin = "coins.bty", execer = "paracross", name = "BTY" }, - { coin = "YCC", execer = "evmxgo", name = "YCC" }, - { coin = "ETH", execer = "evmxgo", name = "ETH" }, - { coin = "USDT", execer = "evmxgo", name = "USDT" }, + { coin = "AS", execer = "coins", name = "AS" }, + { coin = "ASS", execer = "coins", name = "ASS" }, ] #现货交易配置 #symbol 币种对;priceDigits 价格最小位数;amountDigits 数量最小位数; minFee 最小手续费 -#taker 吃单手续费率,配置时需*1e8(如:收取每笔交易百分之一的手续费,maker=1000000)未配置交易对默认为100000 -#maker 挂单手续费,配置时需*1e8(如:收取每笔交易千分之一的手续费,taker=100000)未配置交易对默认为100000 exchanges = [ - { symbol = "BTY_CCNY", priceDigits = 4, amountDigits = 1, taker = 1000000, maker = 100000, minFee = 0 }, - - { symbol = "BTY_USDT", priceDigits = 4, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, - { symbol = "YCC_USDT", priceDigits = 5, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, - { symbol = "ETH_USDT", priceDigits = 4, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, + { symbol = "AS_ASS", priceDigits = 4, amountDigits = 1, taker = 1000000, maker = 100000, minFee = 0 }, ] [fork.sub.exchange] @@ -577,3 +659,9 @@ ForkParamV26 = 0 ForkParamV27 = 0 ForkParamV28 = 0 ForkParamV29 = 0 + +[health] +listenAddr="localhost:8805" +checkInterval=1 +unSyncMaxTimes=2 + diff --git a/chain.para.toml.para b/chain.para.toml.para new file mode 100644 index 000000000..c63fd82e0 --- /dev/null +++ b/chain.para.toml.para @@ -0,0 +1,579 @@ +Title = "user.p.para." +TestNet = false +CoinSymbol = "para" +EnableParaFork = true + +[address] +#旧的版本或bty缺省是btc格式地址,可以支持eth格式地址,如果对地址格式没要求,采用缺省配置即可 +defaultDriver = "btc" +[address.enableHeight] +btc = 0 +eth = -1 + +[crypto] + +[log] +# 日志级别,支持debug(dbug)/info/warn/error(eror)/crit +loglevel = "debug" +logConsoleLevel = "info" +# 日志文件名,可带目录,所有生成的日志文件都放到此目录下 +logFile = "logs/chain.para.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 = "paradatadir" +dbCache = 64 +isStrongConsistency = true +singleMode = true +batchsync = false +#平行链钱包通过平行链区块seqence索引高度,缺省是true +isRecordBlockSequence = true +isParaChain = true +enableTxQuickIndex = true +# 升级storedb是否重新执行localdb,bityuan主链升级不需要开启,平行链升级需要开启 +enableReExecLocal = true +# 使能精简localdb +enableReduceLocaldb = false +enablePushSubscribe = false + +[p2p] +types = ["dht"] +enable = false +driver = "leveldb" +dbPath = "paradatadir/addrbook" +dbCache = 4 +grpcLogFile = "grpc33.log" +waitPid = true + +[p2p.sub.dht] +DHTDataPath = "paradatadir/p2pstore" + +[rpc] +# 避免与主链配置冲突 +jrpcBindAddr = "localhost:8901" +grpcBindAddr = "localhost:8902" +whitelist = ["127.0.0.1"] +jrpcFuncWhitelist = ["*"] +grpcFuncWhitelist = ["*"] + +[rpc.sub.eth] +enable = false +httpAddr = "localhost:8545" +httpApi = ["eth", "web3", "personal", "admin", "net"] +# websocket 绑定地址 +wsAddr = "localhost:8546" +wsApi = ["eth", "web3", "personal", "admin", "net"] + +[rpc.parachain] +#主链节点的grpc服务器ip,当前可以支持多ip负载均衡,如“118.31.177.1:8802,39.97.2.127:8802” +#mainChainGrpcAddr="jiedian2.bityuan.com,cloud.bityuan.com" +mainChainGrpcAddr = "localhost:8802" +#配置grpc负载均衡为sync模式 +useGrpcLBSync = false +forwardExecs = ["all"] +forwardActionNames = [] + +[mempool] +name = "para" +poolCacheSize = 10240 +#联盟链没有交易费,对应平行链minTxFeeRate需要设为0 +minTxFeeRate = 100000 +maxTxNumPerAccount = 10000 + +[consensus] +name = "para" +genesisBlockTime = 1514533390 +genesis = "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt" +minerExecs = ["paracross"] #配置挖矿合约 + +[mver.consensus] +fundKeyAddr = "1BQXS6TxaYYG5mADaWij4AxhZZUTpw95a5" +powLimitBits = "0x1f00ffff" +maxTxNumber = 1600 + + +[mver.consensus.paracross] +#超级节点挖矿奖励 +coinReward = 18 +#发展基金奖励 +coinDevFund = 12 +#如果超级节点上绑定了委托账户,则奖励超级节点coinBaseReward,其余部分(coinReward-coinBaseReward)按权重分给委托账户 +coinBaseReward = 3 +#委托账户最少解绑定时间(按小时) +unBindTime = 24 +#支持挖矿奖励的1e8小数模式,比如18coin 需要配置成1800000000 以支持小数位后的配置,如果true,意味着已经打开即须配置coinReward=1800000000 +decimalMode = false +#挖矿模式, normal:缺省挖矿,其他自定义,注册名字需要和配置名字保持一致 +minerMode = "normal" +#挖矿减半周期,按高度减半 +halvePeriod = 1000 + + +[consensus.sub.para] +#ParaRemoteGrpcClient配置已变更为mainChainGrpcAddr +#主链指定高度的区块开始同步 +startHeight = 345850 +#主链指定高度后等待块数,防止主链回滚,联盟链最小为1,小于1则采用缺省高度100 +#waitMainBlockNum=100 +#等待打包主链区块时间间隔,单位毫秒 +writeBlockMsec = 2000 +#共识节点账户,共识节点需要配置自己的账户,并且钱包导入对应种子,非共识节点留空 +authAccount = "" +#创世地址额度 +genesisAmount = 100000000 +#主链支持平行链共识tx分叉高度,需要和主链保持严格一致,不可修改,2270000是bityuan主链对应高度, ycc或其他按实际修改 +#不可为0,主链Local时候需特殊配置 +mainForkParacrossCommitTx = 2270000 +#主链开启循环检查共识交易done的fork高度,需要和主链保持严格一致,不可修改,4320000是bityuan主链对应高度, ycc或其他按实际修改 +#不可为0,主链Local时候需特殊配置 +mainLoopCheckCommitTxDoneForkHeight = 4320000 +#无平行链交易的主链区块间隔,平行链产生一个空块,从高度0开始,格式[blockHeight:interval],比如["0:50","1000:100"],blockHeight为平行链高度 +emptyBlockInterval = ["0:50"] + +#平行链共识节点聚合签名配置 +[consensus.sub.para.bls] +#是否开启聚合签名,缺省不开启 +blsSign = false + +[consensus.sub.rollup] + +# 配置节点账户私钥, 隐秘性不好, 用于测试 +authKey = "" +# 当authKey未配置时, 支持配置节点账户地址 +# 即从钱包中获取对应的私钥, 节点需要创建钱包并解锁导入对应的私钥 +authAccount = "" + +# 全量数据即提交所有交易源数据, 此时交易签名必须为bls类型 +# 默认关闭, 即仅提交区块header数据 +fullDataCommit = false +# 最大状态提交间隔时长 +# 最低60s, 默认5min +maxCommitInterval = 300 #seconds +# 设置平行链启动时对应的主链高度 +startHeight = 0 +# 同步主链区块头, 预留高度, 减少回滚概率 +# 默认12, 最低设为1 +reservedMainHeight = 12 + + +[store] +name = "kvmvccmavl" +driver = "leveldb" +storedbVersion = "2.0.0" +dbPath = "paradatadir/mavltree" +dbCache = 128 + +[store.sub.mavl] +enableMavlPrefix = false +enableMVCC = false +enableMavlPrune = false +pruneHeight = 10000 +# 是否使能mavl数据载入内存 +enableMemTree = true +# 是否使能mavl叶子节点数据载入内存 +enableMemVal = true +# 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000 +tkCloseCacheLen = 100000 + +[store.sub.kvmvccmavl] +enableMVCCIter = true +enableMavlPrefix = false +enableMVCC = false +enableMavlPrune = false +pruneMavlHeight = 10000 +enableMVCCPrune = false +pruneMVCCHeight = 10000 +# 是否使能mavl数据载入内存 +enableMemTree = true +# 是否使能mavl叶子节点数据载入内存 +enableMemVal = true +# 缓存close ticket数目,该缓存越大同步速度越快,最大设置到1500000 +tkCloseCacheLen = 100000 +# 该参数针对平行链,如果平行链的ForkKvmvccmavl高度不为0,需要开启此功能,开启此功能需要从0开始执行区块 +enableEmptyBlockHandle = false +# 保存区块相关数据时,同时保存kv +enableSaveBlockKVs = true + +[wallet] +minFee = 100000 +driver = "leveldb" +dbPath = "parawallet" +dbCache = 16 +signType = "secp256k1" +minerdisable = true + +[exec] +enableStat = false +enableMVCC = false + +[exec.sub.relay] +genesis = "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv" + +[exec.sub.manage] +superManager = ["12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"] +#autonomy执行器名字,空则不开启,使用superManager list +autonomyExec = "" +[exec.sub.token] +saveTokenTxList = true +tokenApprs = [] +friendExecer = ["evm"] + +[exec.sub.paracross] +#平行链自共识停止n个空块的对应主链高度后,超级账户可以直接参与投票,这个高度只在主链有效 +paraConsensusStopBlocks = 30000 +#是否关闭自共识,缺省开启自共识校验 +closeSelfConsensus = false +#平行链在构建区块时候配置丢弃tx list +discardTxs = [] + +[exec.sub.autonomy] +total = "16htvcBNSEA7fZhAdLJphDwQRQJaHpyHTp" +useBalance = false + +[exec.sub.evm] +#平行链evm合约ETH资产映射的合约和资产类型(symbol) +ethMapFromExecutor = "paracross" +ethMapFromSymbol = "coins.bty" + +# 预编译合约配置管理员 +[exec.sub.evm.preCompile] +# 激活合token-erc20 的合约管理地址,必须配置管理员地址 +superManager = [""] + +[exec.sub.mix] +#私对私的交易费,交易比较大,需要多的手续费 +txFee = 0 +#私对私token转账,花费token(true)还是BTY(false), +tokenFee = false +#curve H point +pointHX = "19172955941344617222923168298456110557655645809646772800021167670156933290312" +pointHY = "21116962883761739586121793871108889864627195706475546685847911817475098399811" +#电路最大支持1024个叶子hash,10 level, 配置可以小于1024,但不能大于 +maxTreeLeaves = 1024 +#管理员列表 +mixApprs = [] + +[exec.sub.zksync] +#管理员列表 +manager = [ + "14KEKbYtKKQm4wMthSK9J4La4nAiidGozt", + "12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv", + "0x991fb09dc31a44b3177673f330c582ac2ea168e0", +] +#运营方配置收交易费地址,要求16进制 +#可把二层交易费提取到ETH的地址,注意:真实场景需替换 +ethFeeAddr = "0x832367164346888E248bd58b9A5f480299F1e88d" +#二层的基于zk的chain地址,注意:非基于sep256k1的普通的chain地址,而是基于私钥产生的可用于二层的地址,真实场景需替换 +layer2FeeAddr = "2930ef48b2d018955359a77fe58a68be0c536480c57ee5a84f6c96e3ff4fa7dc" + + +#系统中所有的fork,默认用chain的测试网络的 +#但是我们可以替换 +[fork.system] +ForkChainParamV1 = 0 +ForkCheckTxDup = 0 +ForkBlockHash = 1 +ForkMinerTime = 0 +ForkTransferExec = 0 +ForkExecKey = 0 +ForkTxGroup = 0 +ForkResetTx0 = 0 +ForkWithdraw = 0 +ForkExecRollback = 0 +ForkCheckBlockTime = 0 +ForkTxHeight = 0 +ForkTxGroupPara = 0 +ForkChainParamV2 = 0 +ForkMultiSignAddress = 0 +ForkStateDBSet = 0 +ForkLocalDBAccess = 0 +ForkBlockCheck = 0 +ForkBase58AddressCheck = 0 +#平行链上使能平行链执行器如user.p.x.coins执行器的注册,缺省为0,对已有的平行链需要设置一个fork高度 +ForkEnableParaRegExec = 0 +ForkCacheDriver = 0 +ForkTicketFundAddrV1 = -1 #fork6.3 +#主链和平行链都使用同一个fork高度 +ForkRootHash = 7200000 +#地址key格式化, 主要针对eth地址 +ForkFormatAddressKey = 0 +ForkCheckEthTxSort = 0 +ForkProxyExec = 0 +[fork.sub.none] +ForkUseTimeDelay = 0 + +[fork.sub.coins] +Enable = 0 +ForkFriendExecer = 0 + +[fork.sub.coinsx] +Enable = 0 + +[fork.sub.ticket] +Enable = 0 +ForkTicketId = 0 +ForkTicketVrf = 0 + +[fork.sub.retrieve] +Enable = 0 +ForkRetrive = 0 +ForkRetriveAsset = 0 + +[fork.sub.hashlock] +Enable = 0 +ForkBadRepeatSecret = 0 + +[fork.sub.manage] +Enable = 0 +ForkManageExec = 0 +#manage增加配置需要经过autonomy board成员审批,平行链不开启 +ForkManageAutonomyEnable = -1 + +[fork.sub.token] +Enable = 0 +ForkTokenBlackList = 0 +ForkBadTokenSymbol = 0 +ForkTokenPrice = 0 +ForkTokenSymbolWithNumber = 0 +ForkTokenCheck = 0 +ForkTokenEvm = 0 + +[fork.sub.trade] +Enable = 0 +ForkTradeBuyLimit = 0 +ForkTradeAsset = 0 +ForkTradeID = 0 +ForkTradeFixAssetDB = 0 +ForkTradePrice = 0 + +[fork.sub.paracross] +Enable = 0 +ForkParacrossWithdrawFromParachain = 0 +ForkParacrossCommitTx = 0 +ForkLoopCheckCommitTxDone = 0 +#仅平行链适用,自共识分阶段开启,缺省是0,若对应主链高度7200000之前开启过自共识,需要重新配置此分叉,并为之前自共识设置selfConsensEnablePreContract配置项 +ForkParaSelfConsStages = 0 +ForkParaAssetTransferRbk = 0 +ForkParaSupervision = 0 +#仅平行链适用,开启挖矿交易的高度,已有代码版本可能未在0高度开启挖矿,需要设置这个高度,新版本默认从0开启挖矿,通过交易配置分阶段奖励 +ForkParaFullMinerHeight = 0 +#仅平行链适用,在旧的版本中计算blockTxHash输入高度为0,需要在此高度后统一采用新的主链高度值,旧的版本需要设置此分叉高度,新版本缺省为0即可 +ForkParaRootHash = 0 +#nodegroup approve需要经过autonomy board成员审批,平行链不开启 +ForkParaAutonomySuperGroup = -1 +#平行链支持自由注册,主链上申请者或超级管理员或社区任其一即可注册,平行链默认开启 +ForkParaFreeRegister = 0 +#主链paracross合约fork后执行自己的checkTx检查,代替drivebase的检查 +ForkParaCheckTx = 0 + +[fork.sub.evm] +Enable = 0 +ForkEVMState = 0 +ForkEVMABI = 0 +ForkEVMFrozen = 0 +ForkEVMKVHash = 0 +ForkEVMYoloV1 = 0 +ForkEVMTxGroup = 0 +# EVM兼容base58及16进制地址混合调用处理 +ForkEVMMixAddress = 0 +# EVM gas 计算调整 +ForkIntrinsicGas = 0 +ForkEVMAddressInit = 0 +ForkEvmExecNonce = 0 +ForkEvmExecNonceV2 = 0 +[fork.sub.blackwhite] +Enable = 0 +ForkBlackWhiteV2 = 0 + +[fork.sub.cert] +Enable = 0 + +[fork.sub.guess] +Enable = 0 + +[fork.sub.lottery] +Enable = 0 + +[fork.sub.oracle] +Enable = 0 + +[fork.sub.relay] +Enable = 0 + +[fork.sub.norm] +Enable = 0 + +[fork.sub.pokerbull] +Enable = 0 + +[fork.sub.privacy] +Enable = 0 + +[fork.sub.game] +Enable = 0 + +[fork.sub.vote] +Enable = 0 + +[fork.sub.rollup] +Enable = -1 + +[fork.sub.accountmanager] +Enable = 0 + +[fork.sub.wasm] +Enable = 0 + +[fork.sub.valnode] +Enable = 0 +[fork.sub.dpos] +Enable = 0 +[fork.sub.echo] +Enable = 0 +[fork.sub.storage] +Enable = 0 +ForkStorageLocalDB = 0 + +[fork.sub.qbftNode] +Enable = 0 + +[fork.sub.multisig] +Enable = 0 + +[fork.sub.mix] +Enable = 0 + +[fork.sub.unfreeze] +Enable = 0 +ForkTerminatePart = 0 +ForkUnfreezeIDX = 0 + +[fork.sub.autonomy] +Enable = 0 +ForkAutonomyDelRule = 0 +ForkAutonomyEnableItem = 0 + +[fork.sub.jsvm] +Enable = 0 + +[fork.sub.evmxgo] +Enable = 0 + +[fork.sub.issuance] +Enable = 0 +ForkIssuanceTableUpdate = 0 +ForkIssuancePrecision = 0 + +[fork.sub.collateralize] +Enable = 0 +ForkCollateralizeTableUpdate = 0 +ForkCollateralizePrecision = 0 + +#对已有的平行链如果不是从0开始同步数据,需要设置这个kvmvccmavl的对应平行链高度的fork,如果从0开始同步,statehash会跟以前mavl的不同 +[fork.sub.store-kvmvccmavl] +ForkKvmvccmavl = 0 + +[fork.sub.zksync] +Enable = 0 + + +[pprof] +listenAddr = "localhost:6061" + +[metrics] +#是否使能发送metrics数据的发送 +enableMetrics = false +#数据保存模式 +dataEmitMode = "influxdb" + +[metrics.sub.influxdb] +#以纳秒为单位的发送间隔 +duration = 1000000000 +url = "http://influxdb:8086" +database = "chainmetrics" +username = "" +password = "" +namespace = "" + +#exchange合约相关配置 +[mver.exec.sub.exchange] +#银行帐户列表(现第一个地址用来收取手续费) +banks = ["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"] +#机器人帐户列表 +robots = ["1Nq8MDDVqSsS2zQeEZZa7bH53b9vBuUmEW"] +#币种配置, +#coin 转入exchange合约的币种名称 +#execer 转入exchange合约的币种执行器名称 +#name 执行器币种的别称 +coins = [ + { coin = "bty", execer = "coins", name = "BTY" }, + { coin = "CCNY", execer = "token", name = "CCNY" }, + + { coin = "coins.bty", execer = "paracross", name = "BTY" }, + { coin = "YCC", execer = "evmxgo", name = "YCC" }, + { coin = "ETH", execer = "evmxgo", name = "ETH" }, + { coin = "USDT", execer = "evmxgo", name = "USDT" }, +] +#现货交易配置 +#symbol 币种对;priceDigits 价格最小位数;amountDigits 数量最小位数; minFee 最小手续费 +#taker 吃单手续费率,配置时需*1e8(如:收取每笔交易百分之一的手续费,maker=1000000)未配置交易对默认为100000 +#maker 挂单手续费,配置时需*1e8(如:收取每笔交易千分之一的手续费,taker=100000)未配置交易对默认为100000 +exchanges = [ + { symbol = "BTY_CCNY", priceDigits = 4, amountDigits = 1, taker = 1000000, maker = 100000, minFee = 0 }, + + { symbol = "BTY_USDT", priceDigits = 4, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, + { symbol = "YCC_USDT", priceDigits = 5, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, + { symbol = "ETH_USDT", priceDigits = 4, amountDigits = 4, taker = 1000000, maker = 100000, minFee = 0 }, +] + +[fork.sub.exchange] +Enable = 0 +ForkFix1 = 0 +ForkParamV1 = 0 +ForkParamV2 = 0 +ForkParamV3 = 0 +ForkParamV4 = 0 +ForkParamV5 = 0 +ForkParamV6 = 0 +ForkParamV7 = 0 +ForkParamV8 = 0 +ForkParamV9 = 0 +ForkParamV10 = 0 +ForkParamV11 = 0 +ForkParamV12 = 0 +ForkParamV13 = 0 +ForkParamV14 = 0 +ForkParamV15 = 0 +ForkParamV16 = 0 +ForkParamV17 = 0 +ForkParamV18 = 0 +ForkParamV19 = 0 +ForkParamV20 = 0 +ForkParamV21 = 0 +ForkParamV22 = 0 +ForkParamV23 = 0 +ForkParamV24 = 0 +ForkParamV25 = 0 +ForkParamV26 = 0 +ForkParamV27 = 0 +ForkParamV28 = 0 +ForkParamV29 = 0