|
|
@@ -0,0 +1,110 @@
|
|
|
+
|
|
|
+log:
|
|
|
+ config_file: ./node4/log.yml # config file of logger configuration.
|
|
|
+
|
|
|
+blockchain:
|
|
|
+ - chainId: chain1
|
|
|
+ genesis: ./node4/chainconfig/bc1.yml
|
|
|
+
|
|
|
+node:
|
|
|
+ # 节点类型:full
|
|
|
+ type: full
|
|
|
+ org_id: hao.yumawk.com
|
|
|
+ priv_key_file: ./node4/certs/node/consensus1/consensus1.sign.key
|
|
|
+ cert_file: ./node4/certs/node/consensus1/consensus1.sign.crt
|
|
|
+ signer_cache_size: 1000
|
|
|
+ cert_cache_size: 1000
|
|
|
+ pkcs11:
|
|
|
+ enabled: false
|
|
|
+ library: # path to the so file of pkcs11 interface
|
|
|
+ label: # label for the slot to be used
|
|
|
+ password: # password to logon the HSM
|
|
|
+ session_cache_size: 10 # size of HSM session cache, default to 10
|
|
|
+ hash: "SHA256" # hash algorithm used to compute SKI
|
|
|
+
|
|
|
+net:
|
|
|
+ provider: LibP2P
|
|
|
+ listen_addr: /ip4/0.0.0.0/tcp/11304
|
|
|
+ seeds:
|
|
|
+ - "/ip4/124.71.218.7/tcp/11301/p2p/QmVHR2DVso55J5ofymsWyVzma9pY2Z2JzsagpASThN1Jsh"
|
|
|
+
|
|
|
+ tls:
|
|
|
+ enabled: true
|
|
|
+ priv_key_file: ./node4/certs/node/consensus1/consensus1.tls.key
|
|
|
+ cert_file: ./node4/certs/node/consensus1/consensus1.tls.crt
|
|
|
+
|
|
|
+
|
|
|
+txpool:
|
|
|
+ max_txpool_size: 50000 # 普通交易池上限
|
|
|
+ max_config_txpool_size: 10 # config交易池的上限
|
|
|
+ full_notify_again_time: 30 # 交易池溢出后,再次通知的时间间隔(秒)
|
|
|
+
|
|
|
+rpc:
|
|
|
+ provider: grpc
|
|
|
+ port: 12304
|
|
|
+ # 检查链配置TrustRoots证书变化时间间隔,单位:s,最小值为10s
|
|
|
+ check_chain_conf_trust_roots_change_interval: 60
|
|
|
+ ratelimit:
|
|
|
+ # 每秒补充令牌数,取值:-1-不受限;0-默认值(10000)
|
|
|
+ token_per_second: -1
|
|
|
+ # 令牌桶大小,取值:-1-不受限;0-默认值(10000)
|
|
|
+ token_bucket_size: -1
|
|
|
+ subscriber:
|
|
|
+ # 历史消息订阅流控,实时消息订阅不会进行流控
|
|
|
+ ratelimit:
|
|
|
+ # 每秒补充令牌数,取值:-1-不受限;0-默认值(1000)
|
|
|
+ token_per_second: 100
|
|
|
+ # 令牌桶大小,取值:-1-不受限;0-默认值(1000)
|
|
|
+ token_bucket_size: 100
|
|
|
+ tls:
|
|
|
+ # TLS模式:
|
|
|
+ # disable - 不启用TLS
|
|
|
+ # oneway - 单向认证
|
|
|
+ # twoway - 双向认证
|
|
|
+ #mode: disable
|
|
|
+ #mode: oneway
|
|
|
+ mode: twoway
|
|
|
+ priv_key_file: ./node4/certs/node/consensus1/consensus1.tls.key
|
|
|
+ cert_file: ./node4/certs/node/consensus1/consensus1.tls.crt
|
|
|
+
|
|
|
+monitor:
|
|
|
+ enabled: true
|
|
|
+ port: 14324
|
|
|
+
|
|
|
+pprof:
|
|
|
+ enabled: false
|
|
|
+ port: 24324
|
|
|
+
|
|
|
+storage:
|
|
|
+ store_path: ./data/hao.yumawk.com/ledgerData1
|
|
|
+ # 最小的不允许归档的区块高度
|
|
|
+ unarchive_block_height: 15
|
|
|
+ blockdb_config:
|
|
|
+ provider: leveldb
|
|
|
+ leveldb_config:
|
|
|
+ store_path: ./data/hao.yumawk.com/blocks
|
|
|
+ statedb_config:
|
|
|
+ provider: leveldb # leveldb/sql 二选一
|
|
|
+ leveldb_config: # leveldb config
|
|
|
+ store_path: ./data/hao.yumawk.com/state
|
|
|
+ # sqldb_config: # sql config,只有provider为sql的时候才需要配置和启用这个配置
|
|
|
+ # sqldb_type: mysql #具体的sql db类型,目前支持mysql,sqlite
|
|
|
+ # dsn: root:password@tcp(127.0.0.1:3306)/ #mysql的连接信息,包括用户名、密码、ip、port等,示例:root:admin@tcp(127.0.0.1:3306)/
|
|
|
+ historydb_config:
|
|
|
+ provider: leveldb
|
|
|
+ leveldb_config:
|
|
|
+ store_path: ./data/hao.yumawk.com/history
|
|
|
+ resultdb_config:
|
|
|
+ provider: leveldb
|
|
|
+ leveldb_config:
|
|
|
+ store_path: ./data/hao.yumawk.com/result
|
|
|
+ disable_contract_eventdb: true #是否禁止合约事件存储功能,默认为true,如果设置为false,需要配置mysql
|
|
|
+ contract_eventdb_config:
|
|
|
+ provider: sql #如果开启contract event db 功能,需要指定provider为sql
|
|
|
+ sqldb_config:
|
|
|
+ sqldb_type: mysql #contract event db 只支持mysql
|
|
|
+ dsn: root:password@tcp(127.0.0.1:3306)/ #mysql的连接信息,包括用户名、密码、ip、port等,示例:root:admin@tcp(127.0.0.1:3306)/
|
|
|
+core:
|
|
|
+ evidence: false
|
|
|
+scheduler:
|
|
|
+ rwset_log: false #whether log the txRWSet map in the debug mode
|