From e17b0d771a0035bd726f5d7577cc888cbc9ffb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B5=E5=81=A5?= Date: Fri, 18 Sep 2020 16:03:39 +0800 Subject: [PATCH] Update src/test/resources/config-example.toml --- src/test/resources/config-example.toml | 64 ++++++++++++-------------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/src/test/resources/config-example.toml b/src/test/resources/config-example.toml index ca96b7f2f..91d54f3d6 100644 --- a/src/test/resources/config-example.toml +++ b/src/test/resources/config-example.toml @@ -1,52 +1,46 @@ [cryptoMaterial] -certPath = "conf" -# CA cert file path -# caCert = "conf/ca.crt" -# SSL cert file path -# sslCert = "conf/sdk.crt" -# SSL key file path -# sslKey = "conf/sdk.key" -# enSslCert = "conf/gm/gmensdk.crt" -# enSslKey = "conf/gm/gmensdk.key" + +certPath = "conf" # The certification path + +# The following configuration items take the certPath by default: + +# caCert = "conf/ca.crt" # CA cert file path +# sslCert = "conf/sdk.crt" # SSL cert file path +# sslKey = "conf/sdk.key" # SSL key file path +# enSslCert = "conf/gm/gmensdk.crt" # GM encryption cert file path +# enSslKey = "conf/gm/gmensdk.key" # GM ssl cert file path [network] -# The peer list to connect -peers=["127.0.0.1:20200", "127.0.0.1:20201"] +peers=["127.0.0.1:20200", "127.0.0.1:20201"] # The peer list to connect # Configure a private topic as a topic message sender. # [[amop]] # topicName = "PrivateTopic1" -# Public keys of the nodes that you want to send AMOP message of this topic to. -# publicKeys = [ "conf/amop/consumer_public_key_1.pem" ] +# publicKeys = [ "conf/amop/consumer_public_key_1.pem" ] # Public keys of the nodes that you want to send AMOP message of this topic to. # Configure a private topic as a topic subscriber. # [[amop]] # topicName = "PrivateTopic2" -# Your private key that used to subscriber verification. -# privateKey = "conf/amop/consumer_private_key.p12" +# privateKey = "conf/amop/consumer_private_key.p12" # Your private key that used to subscriber verification. # password = "123456" [account] -# The directory where the account private key file is placed in -keyStoreDir = "account" -# The account file path(Default load account from keyStoreDir directory when accountFilePath is not configured) -# accountFilePath = "" -# The storage format of the account, support pem and p12, default is pem -accountFileFormat = "pem" -# The address of the account used to send transactions -# When it's empty, use a randomly generated account to send transactions, -# and the randomly generated account information is stored in tmp sub-directory of keyStoreDir -# accountAddress = "" -# The password used to load the account private key file -# password = "" +keyStoreDir = "account" # The account private key file path +# accountFilePath = "" # The account file path (When accountFilePath is not configured, default load from the path specified by the keyStoreDir configuration) +accountFileFormat = "pem" # The storage format of account file (Default is pem, p12 as option) + +### When it's empty, use a randomly generated account to send transactions, +### the randomly generated account is stored in the path specified by the keyStoreDir configuration +# accountAddress = "" # The transactions sending address of the account + +# password = "" # The password used to load the account private key file [threadPool] -# The size of the thread pool used to process the callback of the channel -# Default is the number of cpu cores of the physical machine -# channelProcessorThreadSize = "16" -# The size of the thread pool used to process the transaction receipt notification -# Default is the number of cpu cores of the physical machine -# receiptProcessorThreadSize = "16" -# The max blocking queue size of the thread pool -maxBlockingQueueSize = "102400" +### Default is the number of cpu cores of the physical machine +# channelProcessorThreadSize = "16" # The size of the thread pool used to process the callback of the channel + +### Default is the number of cpu cores of the physical machine +# receiptProcessorThreadSize = "16" # The size of the thread pool used to process the transaction receipt notification + +maxBlockingQueueSize = "102400" # The max blocking queue size of the thread pool