From a3538e6fdedf69744ffeb5ed40d4bbcf5633e7df Mon Sep 17 00:00:00 2001 From: Nghia Ngo Date: Tue, 25 Jun 2019 16:39:14 +0700 Subject: [PATCH] Update config --- src/main/resources/config-genesis.conf | 516 ------------------ .../resources/config-testnet-genesis.conf | 339 ------------ src/main/resources/config-testnet.conf | 4 +- .../resources/config-zeronet-genesis.conf | 339 ------------ 4 files changed, 1 insertion(+), 1197 deletions(-) delete mode 100644 src/main/resources/config-genesis.conf delete mode 100644 src/main/resources/config-testnet-genesis.conf delete mode 100644 src/main/resources/config-zeronet-genesis.conf diff --git a/src/main/resources/config-genesis.conf b/src/main/resources/config-genesis.conf deleted file mode 100644 index 5503787d2..000000000 --- a/src/main/resources/config-genesis.conf +++ /dev/null @@ -1,516 +0,0 @@ -net { - type = mainnet - // type = testnet -} - -storage { - # Directory for storing persistent data - db.version = 2, - db.engine = "LEVELDB", - db.sync = false, - db.directory = "database", - index.directory = "index", - transHistory.switch = "on", - - # You can custom these 14 databases' configs: - - # account, account-index, asset-issue, block, block-index, - # block_KDB, peers, properties, recent-block, trans, - # utxo, votes, witness, witness_schedule. - - # Otherwise, db configs will remain defualt and data will be stored in - # the path of "output-directory" or which is set by "-d" ("--output-directory"). - - # Attention: name is a required field that must be set !!! - properties = [ - // { - // name = "account", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - // { - // name = "account-index", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - ] - - //dbsettings is needed when using rocksdb as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //we'd strongly recommend that do not modify it unless you know every item's meaning clearly. - dbSettings = { - levelNumber = 7 - //compactThreads = 32 - blocksize = 64 // n * KB - maxBytesForLevelBase = 256 // n * MB - maxBytesForLevelMultiplier = 10 - level0FileNumCompactionTrigger = 4 - targetFileSizeBase = 256 // n * MB - targetFileSizeMultiplier = 1 - } - - //backup settings when using rocks db as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //if you want to use the backup plugin, please confirm set the db.version=2 and db.engine="ROCKSDB" above. - backup = { - enable = false // indicate whether enable the backup plugin - propPath = "prop.properties" // record which bak directory is valid - bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9). - bak2path = "bak2/database" - frequency = 10000 // indicate backup db once every 10000 blocks processed. - } -} - -node.discovery = { - enable = true - persist = true - bind.ip = "" - external.ip = null -} - -node.backup { - port = 10001 - - # my priority, each member should use different priority - priority = 8 - - # peer's ip list, can't contain mine - members = [ - # "ip", - # "ip" - ] -} - -node { - # trust node for solidity node - # trustNode = "ip:port" - trustNode = "127.0.0.1:50051" - - # expose extension api to public or not - walletExtensionApi = true - - listen.port = 11399 - - connection.timeout = 2 - - tcpNettyWorkThreadNum = 0 - - udpNettyWorkThreadNum = 1 - - # Number of validate sign thread, default availableProcessors / 2 - # validateSignThreadNum = 16 - - connectFactor = 0.3 - activeConnectFactor = 0.1 - - maxActiveNodes = 30 - - maxActiveNodesWithSameIp = 10 - - minParticipationRate = 15 - - # check the peer data transfer ,disconnect factor - disconnectNumberFactor = 0.4 - maxConnectNumberFactor = 0.8 - receiveTcpMinDataLength = 2048 - isOpenFullTcpDisconnect = true - - p2p { - version = 11164576 # 11164576: mainnet; - } - - active = [ - # Active establish connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - passive = [ - # Passive accept connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - fastForward = [ - ] - - http { - fullNodePort = 8090 - solidityPort = 8091 - } - - rpc { - port = 50051 - #solidityPort = 50061 - # Number of gRPC thread, default availableProcessors / 2 - # thread = 16 - - # The maximum number of concurrent calls permitted for each incoming connection - # maxConcurrentCallsPerConnection = - - # The HTTP/2 flow control window, default 1MB - # flowControlWindow = - - # Connection being idle for longer than which will be gracefully terminated - maxConnectionIdleInMillis = 60000 - - # Connection lasting longer than which will be gracefully terminated - # maxConnectionAgeInMillis = - - # The maximum message size allowed to be received on the server, default 4MB - # maxMessageSize = - - # The maximum size of header list allowed to be received, default 8192 - # maxHeaderListSize = - - # Transactions can only be broadcast if the number of effective connections is reached. - minEffectiveConnection = 0 - } - - # number of solidity thread in the FullNode. - # If accessing solidity rpc and http interface timeout, could increase the number of threads, - # The default value is the number of cpu cores of the machine. - #solidity.threads = 8 - - # Limits the maximum percentage (default 75%) of producing block interval - # to provide sufficient time to perform other operations e.g. broadcast block - # blockProducedTimeOut = 75 - - # Limits the maximum number (default 700) of transaction from network layer - # netMaxTrxPerSecond = 700 -} - - -seed.node = { - # List of the seed nodes - # Seed nodes are stable full nodes - # example: - # ip.list = [ - # "ip:port", - # "ip:port" - # ] - ip.list = [ - "159.69.138.7:11399", - "159.69.141.90:11399", - "159.69.141.89:11399" - ] -} - -genesis.block = { - # Reserve balance - assets = [ - { - accountName = "Mcash Team" - accountType = "Normal" - address = "MTEAM21JrJ7hvLdWqFXdHpPUP2aF5wVEvx" - balance = "10000000000000000" - }, - { - accountName = "Mcash Foundation" - accountType = "Normal" - address = "MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf" - balance = "0" - }, - { - accountName = "Mcash Snapshot" - accountType = "Normal" - address = "MCASHjusvXyRpHAiRpVR9rpJTYcppi6TAB" - balance = "50000000000000000" - }, - { - accountName = "Mcash Airdrop" - accountType = "Normal" - address = "MGift8RuSDgEWnbE7T914XmgTWTSumoQ9G" - balance = "15000000000000000" - }, - { - accountName = "Mcash Burn" - accountType = "Normal" - address = "MAAAAAAAAAAAAAAAAAAAAAAAAAAAHF57Ay" - balance = "0" - } - ] - - witnesses = [ - { - address: MS9DB1DUb5JFSpnGpntGzCY4YXXjN9ZSyV, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MDzbLoLveEwg4AtpeoRGmk6XCUiPAntbVi, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MENJyVk9SMmHbBMx1i7pxVXzX4i75g26YA, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MTyPo7A4xnuv8dfS6Wry515jF13B99pcne, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MVofLKhnsunvgnoE2K7Mn6wyrm8Lu33D5U, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MA6XkxovRRn51XHW1hvb2vhLXHWL2tXcC1, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MVeUHiKDmPHBK53qdvWvvUWuamVNMvyb3d, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MLFJdzPkrJTymVNECgG386iCKznNDL6RbK, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MKeBLUjXUdKaFYEg87vP8Spi7gsnq6WRxX, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MNYrSYo3Zar7xSQLPTgewJiHkpecBcWgkB, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MM3kZUJRL55cPda1P3uGjKFza47Ze41oet, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MKrHX8Vi1r6GRfsRkddVdL5UioTEdD9CZT, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MCsCChTF4Tj43CoAAeuf27x9mrULW9eCtj, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MF5aWGA7ACBe5Y8VyQWhGc7qgDfapSXnwY, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MWREE93rajZmRbMR5BiDeLykFHd3Q1Fyi7, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MHZUAFHcsheLQ9Fzt5TFQsoFuk1EqwtQtu, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: M8o95rfwt11EHu3xfCY1gyLvbthrgjtQGQ, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MBioAgRCv54E6QzKdMcucm56u4VJVqx3c7, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MFkmZXJm948hApKLqK6rUhhpoGKsSfGq77, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MBHTL7ecnBTcJJH1uJuDGaFdhSbkJMWTey, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MFFcmddyTjRQ9XHqvD6w12Lr1A9RUL5pZE, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MWphTE4AU21qVFjzgcEiQGYGB5obJX94ne, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MDcqNgbc3reoiueGtGVp3mkbPjzbv3WvXR, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MFEmR6Y9GEkBRkgkM4AuX6PxkVrBsUtevs, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MNC6VdQDNvo8b8eMUaboKPXFSjJxJYozc1, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MRjw4jeEk1FP9wb2tXij53GZSwcfik3AGV, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MN6rLoK9hMaCoBzadxQSz2SkLuBBgE74BZ, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MQpNRgzzUmHoWa1Pd6RvsQjmcgHCwgCay9, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf, - url = "https://mcash.network", - voteCount = 20000 - }, - { - address: MJ7YDF4hvNPRQP6SmYurc1HnBQejjGXSpA, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - }, - { - address: MJDgKYRy5FpEfhHF7qsiEgZo18ogdToxY5, - ownerAddress: MDAPP4vtEgZg2xjJEYQcpcWqoFiKH4gVAf - url = "https://mcash.network" - voteCount = 20000 - } - ] - - timestamp = "1561521600000" #2019-6-26 12:00:00 SGT - - parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000" -} - -// Optional.The default is empty. -// It is used when the witness account has set the witnessPermission. -// When it is not empty, the localWitnessAccountAddress represents the address of the witness account, -// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account. -// When it is empty,the localwitness is configured with the private key of the witness account. - -//localWitnessAccountAddress = - -localwitness = [ -] - -#localwitnesskeystore = [ -# "localwitnesskeystore.json" -#] - -block = { - needSyncCheck = false - maintenanceTimeInterval = 7200000 - proposalExpireTime = 259200000 // 3 day: 259200000(ms) -} - -# Transaction reference block, default is "head", configure to "solid" can avoid TaPos error -# trx.reference.block = "head" // head;solid; - -# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000. -# trx.expiration.timeInMilliseconds = 60000 - -vm = { - supportConstant = true - minTimeRatio = 0.0 - maxTimeRatio = 5.0 - saveInternalTx = true - - # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged - # longRunningTime = 10 -} - -committee = { - allowCreationOfContracts = 1 - allowAdaptiveEnergy = 0 -} - -event.subscribe = { - path = "" // absolute path of plugin - server = "" // target server address to receive event triggers - dbconfig = "" // dbname|username|password - topics = [ - { - triggerName = "block" // block trigger, the value can't be modified - enable = false - topic = "block" // plugin topic, the value could be modified - }, - { - triggerName = "transaction" - enable = false - topic = "transaction" - }, - { - triggerName = "contractevent" - enable = true - topic = "contractevent" - }, - { - triggerName = "contractlog" - enable = true - topic = "contractlog" - } - ] - - filter = { - fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range - toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range - contractAddress = [ - "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address. - ] - - contractTopic = [ - "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic. - ] - } -} diff --git a/src/main/resources/config-testnet-genesis.conf b/src/main/resources/config-testnet-genesis.conf deleted file mode 100644 index 9e672d330..000000000 --- a/src/main/resources/config-testnet-genesis.conf +++ /dev/null @@ -1,339 +0,0 @@ -net { - type = mainnet - // type = testnet -} - -storage { - # Directory for storing persistent data - db.version = 2, - db.engine = "LEVELDB", - db.sync = false, - db.directory = "database", - index.directory = "index", - transHistory.switch = "on", - - # You can custom these 14 databases' configs: - - # account, account-index, asset-issue, block, block-index, - # block_KDB, peers, properties, recent-block, trans, - # utxo, votes, witness, witness_schedule. - - # Otherwise, db configs will remain defualt and data will be stored in - # the path of "output-directory" or which is set by "-d" ("--output-directory"). - - # Attention: name is a required field that must be set !!! - properties = [ - // { - // name = "account", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - // { - // name = "account-index", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - ] - - //dbsettings is needed when using rocksdb as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //we'd strongly recommend that do not modify it unless you know every item's meaning clearly. - dbSettings = { - levelNumber = 7 - //compactThreads = 32 - blocksize = 64 // n * KB - maxBytesForLevelBase = 256 // n * MB - maxBytesForLevelMultiplier = 10 - level0FileNumCompactionTrigger = 4 - targetFileSizeBase = 256 // n * MB - targetFileSizeMultiplier = 1 - } - - //backup settings when using rocks db as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //if you want to use the backup plugin, please confirm set the db.version=2 and db.engine="ROCKSDB" above. - backup = { - enable = false // indicate whether enable the backup plugin - propPath = "prop.properties" // record which bak directory is valid - bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9). - bak2path = "bak2/database" - frequency = 10000 // indicate backup db once every 10000 blocks processed. - } -} - -node.discovery = { - enable = true - persist = true - bind.ip = "" - external.ip = null -} - -node.backup { - port = 10001 - - # my priority, each member should use different priority - priority = 8 - - # peer's ip list, can't contain mine - members = [ - # "ip", - # "ip" - ] -} - -node { - # trust node for solidity node - # trustNode = "ip:port" - trustNode = "127.0.0.1:50051" - - # expose extension api to public or not - walletExtensionApi = true - - listen.port = 11399 - - connection.timeout = 2 - - tcpNettyWorkThreadNum = 0 - - udpNettyWorkThreadNum = 1 - - # Number of validate sign thread, default availableProcessors / 2 - # validateSignThreadNum = 16 - - connectFactor = 0.3 - activeConnectFactor = 0.1 - - maxActiveNodes = 30 - - maxActiveNodesWithSameIp = 10 - - minParticipationRate = 15 - - # check the peer data transfer ,disconnect factor - disconnectNumberFactor = 0.4 - maxConnectNumberFactor = 0.8 - receiveTcpMinDataLength = 2048 - isOpenFullTcpDisconnect = true - - p2p { - version = 191993 # 11111: mainnet; 20180622: testnet - } - - active = [ - # Active establish connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - passive = [ - # Passive accept connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - fastForward = [ - ] - - http { - fullNodePort = 8090 - solidityPort = 8091 - } - - rpc { - port = 50051 - #solidityPort = 50061 - # Number of gRPC thread, default availableProcessors / 2 - # thread = 16 - - # The maximum number of concurrent calls permitted for each incoming connection - # maxConcurrentCallsPerConnection = - - # The HTTP/2 flow control window, default 1MB - # flowControlWindow = - - # Connection being idle for longer than which will be gracefully terminated - maxConnectionIdleInMillis = 60000 - - # Connection lasting longer than which will be gracefully terminated - # maxConnectionAgeInMillis = - - # The maximum message size allowed to be received on the server, default 4MB - # maxMessageSize = - - # The maximum size of header list allowed to be received, default 8192 - # maxHeaderListSize = - - # Transactions can only be broadcast if the number of effective connections is reached. - minEffectiveConnection = 0 - } - - # number of solidity thread in the FullNode. - # If accessing solidity rpc and http interface timeout, could increase the number of threads, - # The default value is the number of cpu cores of the machine. - #solidity.threads = 8 - - # Limits the maximum percentage (default 75%) of producing block interval - # to provide sufficient time to perform other operations e.g. broadcast block - # blockProducedTimeOut = 75 - - # Limits the maximum number (default 700) of transaction from network layer - # netMaxTrxPerSecond = 700 -} - - -seed.node = { - # List of the seed nodes - # Seed nodes are stable full nodes - # example: - # ip.list = [ - # "ip:port", - # "ip:port" - # ] - ip.list = [ - ] -} - -genesis.block = { - # Reserve balance - assets = [ - { - accountName = "Mcash Master" - accountType = "Normal" - address = "MA45tRJvijHJ5zXPveap6KMW3zkdVtWyoY" - balance = "90000000000000000" - }, - { - accountName = "Mcash Burn" - accountType = "Normal" - address = "MXEmDYChDCdgi77RFPzFjPt86j97D1UC7r" - balance = "0" - }, - { - accountName = "Mcash Foundation" - accountType = "Normal" - address = "MMS5VAdvprDuDbMsLzMS96rNut7hjbu1Zd" - balance = "0" - } - ] - - witnesses = [ - { - address: MCuVKkeF4KtACUDqgN61MfePW8JjDZCWQB, - ownerAddress: MMS5VAdvprDuDbMsLzMS96rNut7hjbu1Zd, - url = "https://mcash-1.network", - voteCount = 20000 - }, - { - address: MEsbNFoHbfgnhxhi3x9c1UVVpQJ89eg1ap, - ownerAddress: MMS5VAdvprDuDbMsLzMS96rNut7hjbu1Zd - url = "https://mcash-2.network" - voteCount = 20000 - }, - { - address: MNkYSEJcta2GwTBSphWWQAeafLRBprzAFD, - ownerAddress: MMS5VAdvprDuDbMsLzMS96rNut7hjbu1Zd - url = "https://mcash-3.network" - voteCount = 20000 - } - ] - - timestamp = "1561363200000" #2019-6-24 8:00:00 - - parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000" -} - -// Optional.The default is empty. -// It is used when the witness account has set the witnessPermission. -// When it is not empty, the localWitnessAccountAddress represents the address of the witness account, -// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account. -// When it is empty,the localwitness is configured with the private key of the witness account. - -//localWitnessAccountAddress = - -localwitness = [ -] - -#localwitnesskeystore = [ -# "localwitnesskeystore.json" -#] - -block = { - needSyncCheck = false - maintenanceTimeInterval = 7200000 - proposalExpireTime = 259200000 // 3 day: 259200000(ms) -} - -# Transaction reference block, default is "head", configure to "solid" can avoid TaPos error -# trx.reference.block = "head" // head;solid; - -# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000. -# trx.expiration.timeInMilliseconds = 60000 - -vm = { - supportConstant = true - minTimeRatio = 0.0 - maxTimeRatio = 5.0 - saveInternalTx = true - - # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged - # longRunningTime = 10 -} - -committee = { - allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1 - allowAdaptiveEnergy = 1 //mainnet:0 (reset by committee),test:1 -} - -event.subscribe = { - path = "" // absolute path of plugin - server = "" // target server address to receive event triggers - dbconfig = "" // dbname|username|password - topics = [ - { - triggerName = "block" // block trigger, the value can't be modified - enable = false - topic = "block" // plugin topic, the value could be modified - }, - { - triggerName = "transaction" - enable = false - topic = "transaction" - }, - { - triggerName = "contractevent" - enable = true - topic = "contractevent" - }, - { - triggerName = "contractlog" - enable = true - topic = "contractlog" - } - ] - - filter = { - fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range - toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range - contractAddress = [ - "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address. - ] - - contractTopic = [ - "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic. - ] - } -} diff --git a/src/main/resources/config-testnet.conf b/src/main/resources/config-testnet.conf index 853dd29eb..31c8e5cfc 100644 --- a/src/main/resources/config-testnet.conf +++ b/src/main/resources/config-testnet.conf @@ -205,9 +205,7 @@ seed.node = { # "ip:port" # ] ip.list = [ - "10.45.26.76:11399", - "10.45.103.53:11399", - "10.45.64.46:11399" + "94.130.33.253:11399" ] } diff --git a/src/main/resources/config-zeronet-genesis.conf b/src/main/resources/config-zeronet-genesis.conf deleted file mode 100644 index 18186d9d0..000000000 --- a/src/main/resources/config-zeronet-genesis.conf +++ /dev/null @@ -1,339 +0,0 @@ -net { - type = mainnet -// type = testnet -} - -storage { - # Directory for storing persistent data - db.version = 2, - db.engine = "LEVELDB", - db.sync = false, - db.directory = "database", - index.directory = "index", - transHistory.switch = "on", - - # You can custom these 14 databases' configs: - - # account, account-index, asset-issue, block, block-index, - # block_KDB, peers, properties, recent-block, trans, - # utxo, votes, witness, witness_schedule. - - # Otherwise, db configs will remain defualt and data will be stored in - # the path of "output-directory" or which is set by "-d" ("--output-directory"). - - # Attention: name is a required field that must be set !!! - properties = [ - // { - // name = "account", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - // { - // name = "account-index", - // path = "storage_directory_test", - // createIfMissing = true, - // paranoidChecks = true, - // verifyChecksums = true, - // compressionType = 1, // compressed with snappy - // blockSize = 4096, // 4 KB = 4 * 1024 B - // writeBufferSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // cacheSize = 10485760, // 10 MB = 10 * 1024 * 1024 B - // maxOpenFiles = 100 - // }, - ] - - //dbsettings is needed when using rocksdb as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //we'd strongly recommend that do not modify it unless you know every item's meaning clearly. - dbSettings = { - levelNumber = 7 - //compactThreads = 32 - blocksize = 64 // n * KB - maxBytesForLevelBase = 256 // n * MB - maxBytesForLevelMultiplier = 10 - level0FileNumCompactionTrigger = 4 - targetFileSizeBase = 256 // n * MB - targetFileSizeMultiplier = 1 - } - - //backup settings when using rocks db as the storage implement (db.version=2 and db.engine="ROCKSDB"). - //if you want to use the backup plugin, please confirm set the db.version=2 and db.engine="ROCKSDB" above. - backup = { - enable = false // indicate whether enable the backup plugin - propPath = "prop.properties" // record which bak directory is valid - bak1path = "bak1/database" // you must set two backup directories to prevent application halt unexpected(e.g. kill -9). - bak2path = "bak2/database" - frequency = 10000 // indicate backup db once every 10000 blocks processed. - } -} - -node.discovery = { - enable = true - persist = true - bind.ip = "" - external.ip = null -} - -node.backup { - port = 10001 - - # my priority, each member should use different priority - priority = 8 - - # peer's ip list, can't contain mine - members = [ - # "ip", - # "ip" - ] -} - -node { - # trust node for solidity node - # trustNode = "ip:port" - trustNode = "127.0.0.1:50051" - - # expose extension api to public or not - walletExtensionApi = true - - listen.port = 11399 - - connection.timeout = 2 - - tcpNettyWorkThreadNum = 0 - - udpNettyWorkThreadNum = 1 - - # Number of validate sign thread, default availableProcessors / 2 - # validateSignThreadNum = 16 - - connectFactor = 0.3 - activeConnectFactor = 0.1 - - maxActiveNodes = 30 - - maxActiveNodesWithSameIp = 10 - - minParticipationRate = 15 - - # check the peer data transfer ,disconnect factor - disconnectNumberFactor = 0.4 - maxConnectNumberFactor = 0.8 - receiveTcpMinDataLength = 2048 - isOpenFullTcpDisconnect = true - - p2p { - version = 6185 # 11111: mainnet; 20180622: testnet - } - - active = [ - # Active establish connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - passive = [ - # Passive accept connection in any case - # Sample entries: - # "ip:port", - # "ip:port" - ] - - fastForward = [ - ] - - http { - fullNodePort = 8090 - solidityPort = 8091 - } - - rpc { - port = 50051 - #solidityPort = 50061 - # Number of gRPC thread, default availableProcessors / 2 - # thread = 16 - - # The maximum number of concurrent calls permitted for each incoming connection - # maxConcurrentCallsPerConnection = - - # The HTTP/2 flow control window, default 1MB - # flowControlWindow = - - # Connection being idle for longer than which will be gracefully terminated - maxConnectionIdleInMillis = 60000 - - # Connection lasting longer than which will be gracefully terminated - # maxConnectionAgeInMillis = - - # The maximum message size allowed to be received on the server, default 4MB - # maxMessageSize = - - # The maximum size of header list allowed to be received, default 8192 - # maxHeaderListSize = - - # Transactions can only be broadcast if the number of effective connections is reached. - minEffectiveConnection = 0 - } - - # number of solidity thread in the FullNode. - # If accessing solidity rpc and http interface timeout, could increase the number of threads, - # The default value is the number of cpu cores of the machine. - #solidity.threads = 8 - - # Limits the maximum percentage (default 75%) of producing block interval - # to provide sufficient time to perform other operations e.g. broadcast block - # blockProducedTimeOut = 75 - - # Limits the maximum number (default 700) of transaction from network layer - # netMaxTrxPerSecond = 700 -} - - -seed.node = { - # List of the seed nodes - # Seed nodes are stable full nodes - # example: - # ip.list = [ - # "ip:port", - # "ip:port" - # ] - ip.list = [ - ] -} - -genesis.block = { - # Reserve balance - assets = [ - { - accountName = "Mcash Master" - accountType = "Normal" - address = "MUfCyY6okam4VjDRcXWj7v7nxby2eaRaEh" - balance = "90000000000000000" - }, - { - accountName = "Mcash Burn" - accountType = "Normal" - address = "MXEmDYChDCdgi77RFPzFjPt86j97D1UC7r" - balance = "0" - }, - { - accountName = "Mcash Foundation" - accountType = "Normal" - address = "MLrguoQKRAH4i9GbY9y6SH13yM1ALAikA6" - balance = "0" - } - ] - - witnesses = [ - { - address: MWXz8Wyib9yTptiMXvsfEk9ohUPqqnqVdW, - ownerAddress: MLrguoQKRAH4i9GbY9y6SH13yM1ALAikA6, - url = "https://mcash-1.network", - voteCount = 20000 - }, - { - address: ML1HXnRrdywyxEUYeCLZq4oAiSxLBn4Qzx, - ownerAddress: MLrguoQKRAH4i9GbY9y6SH13yM1ALAikA6 - url = "https://mcash-2.network" - voteCount = 20000 - }, - { - address: MBpmrec5L7Ko3Ukd3Sjko5uneEpUc7FALa, - ownerAddress: MLrguoQKRAH4i9GbY9y6SH13yM1ALAikA6 - url = "https://mcash-3.network" - voteCount = 20000 - } - ] - - timestamp = "1559790000000" #2019-6-6 10:00:00 - - parentHash = "0x0000000000000000000000000000000000000000000000000000000000000000" -} - -// Optional.The default is empty. -// It is used when the witness account has set the witnessPermission. -// When it is not empty, the localWitnessAccountAddress represents the address of the witness account, -// and the localwitness is configured with the private key of the witnessPermissionAddress in the witness account. -// When it is empty,the localwitness is configured with the private key of the witness account. - -//localWitnessAccountAddress = - -localwitness = [ -] - -#localwitnesskeystore = [ -# "localwitnesskeystore.json" -#] - -block = { - needSyncCheck = false - maintenanceTimeInterval = 3600000 - proposalExpireTime = 259200000 // 3 day: 259200000(ms) -} - -# Transaction reference block, default is "head", configure to "solid" can avoid TaPos error -# trx.reference.block = "head" // head;solid; - -# This property sets the number of milliseconds after the creation of the transaction that is expired, default value is 60000. -# trx.expiration.timeInMilliseconds = 60000 - -vm = { - supportConstant = true - minTimeRatio = 0.0 - maxTimeRatio = 5.0 - saveInternalTx = true - - # In rare cases, transactions that will be within the specified maximum execution time (default 10(ms)) are re-executed and packaged - # longRunningTime = 10 -} - -committee = { - allowCreationOfContracts = 1 //mainnet:0 (reset by committee),test:1 - allowAdaptiveEnergy = 1 //mainnet:0 (reset by committee),test:1 -} - -event.subscribe = { - path = "" // absolute path of plugin - server = "" // target server address to receive event triggers - dbconfig = "" // dbname|username|password - topics = [ - { - triggerName = "block" // block trigger, the value can't be modified - enable = false - topic = "block" // plugin topic, the value could be modified - }, - { - triggerName = "transaction" - enable = false - topic = "transaction" - }, - { - triggerName = "contractevent" - enable = true - topic = "contractevent" - }, - { - triggerName = "contractlog" - enable = true - topic = "contractlog" - } - ] - - filter = { - fromblock = "" // the value could be "", "earliest" or a specified block number as the beginning of the queried range - toblock = "" // the value could be "", "latest" or a specified block number as end of the queried range - contractAddress = [ - "" // contract address you want to subscribe, if it's set to "", you will receive contract logs/events with any contract address. - ] - - contractTopic = [ - "" // contract topic you want to subscribe, if it's set to "", you will receive contract logs/events with any contract topic. - ] - } -}