neoneo-go/cli/config/testnet.go
Ekaterina Pavlova c3705664c2 cli: add config generate command
Add cli command to generate YAML configuration files.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-06-07 11:00:16 +03:00

121 lines
3.7 KiB
Go

package config
import (
"time"
"github.com/nspcc-dev/neo-go/pkg/config"
"github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig"
)
// Testnet is the configuration for the Neo N3 testnet.
var Testnet = config.Config{
ProtocolConfiguration: config.ProtocolConfiguration{
Magic: 894710606,
MaxBlockSize: 2097152,
MaxBlockSystemFee: 150000000000,
MaxTraceableBlocks: 2102400,
MaxTransactionsPerBlock: 5000,
InitialGASSupply: 52000000,
TimePerBlock: 15 * time.Second,
MemPoolSize: 50000,
StandbyCommittee: []string{
"03408dcd416396f64783ac587ea1e1593c57d9fea880c8a6a1920e92a259477806",
"02a7834be9b32e2981d157cb5bbd3acb42cfd11ea5c3b10224d7a44e98c5910f1b",
"0214baf0ceea3a66f17e7e1e839ea25fd8bed6cd82e6bb6e68250189065f44ff01",
"030205e9cefaea5a1dfc580af20c8d5aa2468bb0148f1a5e4605fc622c80e604ba",
"025831cee3708e87d78211bec0d1bfee9f4c85ae784762f042e7f31c0d40c329b8",
"02cf9dc6e85d581480d91e88e8cbeaa0c153a046e89ded08b4cefd851e1d7325b5",
"03840415b0a0fcf066bcc3dc92d8349ebd33a6ab1402ef649bae00e5d9f5840828",
"026328aae34f149853430f526ecaa9cf9c8d78a4ea82d08bdf63dd03c4d0693be6",
"02c69a8d084ee7319cfecf5161ff257aa2d1f53e79bf6c6f164cff5d94675c38b3",
"0207da870cedb777fceff948641021714ec815110ca111ccc7a54c168e065bda70",
"035056669864feea401d8c31e447fb82dd29f342a9476cfd449584ce2a6165e4d7",
"0370c75c54445565df62cfe2e76fbec4ba00d1298867972213530cae6d418da636",
"03957af9e77282ae3263544b7b2458903624adc3f5dee303957cb6570524a5f254",
"03d84d22b8753cf225d263a3a782a4e16ca72ef323cfde04977c74f14873ab1e4c",
"02147c1b1d5728e1954958daff2f88ee2fa50a06890a8a9db3fa9e972b66ae559f",
"03c609bea5a4825908027e4ab217e7efc06e311f19ecad9d417089f14927a173d5",
"0231edee3978d46c335e851c76059166eb8878516f459e085c0dd092f0f1d51c21",
"03184b018d6b2bc093e535519732b3fd3f7551c8cffaf4621dd5a0b89482ca66c9",
},
ValidatorsCount: 7,
VerifyTransactions: false,
P2PSigExtensions: false,
Hardforks: map[string]uint32{
"Aspidochelone": 210000,
"Basilisk": 2680000,
"Cockatrice": 3967000,
},
SeedList: []string{
"seed1t5.neo.org:20333",
"seed2t5.neo.org:20333",
"seed3t5.neo.org:20333",
"seed4t5.neo.org:20333",
"seed5t5.neo.org:20333",
},
},
ApplicationConfiguration: config.ApplicationConfiguration{
DBConfiguration: dbconfig.DBConfiguration{
Type: dbconfig.LevelDB,
LevelDBOptions: dbconfig.LevelDBOptions{
DataDirectoryPath: "./chains/testnet",
},
},
P2P: config.P2P{
Addresses: []string{":20333"},
DialTimeout: 3 * time.Second,
ProtoTickInterval: 2 * time.Second,
PingInterval: 30 * time.Second,
PingTimeout: 90 * time.Second,
MaxPeers: 100,
MinPeers: 10,
AttemptConnPeers: 20,
},
Relay: true,
Consensus: config.Consensus{
Enabled: false,
UnlockWallet: config.Wallet{
Path: "/cn_wallet.json",
Password: "pass",
},
},
Oracle: config.OracleConfiguration{
Enabled: false,
AllowedContentTypes: []string{
"application/json",
},
},
P2PNotary: config.P2PNotary{
Enabled: false,
UnlockWallet: config.Wallet{
Path: "/notary_wallet.json",
Password: "pass",
},
},
RPC: config.RPC{
BasicService: config.BasicService{
Enabled: true,
Addresses: []string{":20332"},
},
MaxGasInvoke: 15,
EnableCORSWorkaround: false,
TLSConfig: config.TLS{
BasicService: config.BasicService{
Enabled: false,
Addresses: []string{":20331"},
},
CertFile: "serv.crt",
KeyFile: "serv.key",
},
},
Prometheus: config.BasicService{
Enabled: true,
Addresses: []string{":2112"},
},
Pprof: config.BasicService{
Enabled: false,
Addresses: []string{":2113"},
},
},
}