diff --git a/config/environments/local/local.node.config.toml b/config/environments/local/local.node.config.toml index a6cefd8195..a2c1a7ac56 100644 --- a/config/environments/local/local.node.config.toml +++ b/config/environments/local/local.node.config.toml @@ -151,6 +151,24 @@ MaxGasPriceWei = 0 #GasPriceUsdt = 0.0001 #L2CoinId = 7184 +## the follower strategy config demo that can dynamic adjust the factor through get the L1 and L2 coin price from kafka +#Type = "follower" +#UpdatePeriod = "10s" +#Factor = 1 +#DefaultGasPriceWei = 1000000000 +#KafkaURL = "127.0.0.1:9092" +#Topic = "middle_coinPrice_push" +#GroupID = "web3_okbc_explorerchainprice" +## just in SASL_SSL mode +#Username = "" +#Password = "" +#RootCAPath = "only-4096-ca-cert" +#L1CoinId = 15756 +#L2CoinId = 7184 +#DefaultL2CoinPrice = 40 +#DefaultL1CoinPrice = 1600 +#EnableFollowerAdjustByL2L1Price = true # dynamic adjust the factor through the L1 and L2 coins price in follower strategy + [MTClient] URI = "x1-prover:50061" diff --git a/docs/config-file/node-config-doc.html b/docs/config-file/node-config-doc.html index 6245bcbf84..40fb3d4e6c 100644 --- a/docs/config-file/node-config-doc.html +++ b/docs/config-file/node-config-doc.html @@ -62,6 +62,6 @@
"300ms"
"1m"
"300ms"
-DefaultL2CoinPrice is the native token's coin price
MaxResourceExhaustedAttempts is the max number of attempts to make a transaction succeed because of resource exhaustion
WaitOnResourceExhaustion is the time to wait before retrying a transaction because of resource exhaustion
"1m"
+DefaultL1CoinPrice is the L1 token's coin price
DefaultL2CoinPrice is the native token's coin price
EnableFollowerAdjustByL2L1Price is dynamic adjust the factor through the L1 and L2 coins price in follower strategy
MaxResourceExhaustedAttempts is the max number of attempts to make a transaction succeed because of resource exhaustion
WaitOnResourceExhaustion is the time to wait before retrying a transaction because of resource exhaustion
"1m"
"300ms"
URI is the server URI.
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.
Host is the address to bind the metrics server
Port is the port to bind the metrics server
Enabled is the flag to enable/disable the metrics server
ProfilingHost is the address to bind the profiling server
ProfilingPort is the port to bind the profiling server
ProfilingEnabled is the flag to enable/disable the profiling server
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.
Database name
Database User name
Database Password of the user
Host address of database
Port Number of database
EnableLog
MaxConns is the maximum number of connections in the pool.