github.com/annchain/OG@v0.0.9/scripts/p2p_sim/sample.toml (about) 1 # This is a TOML document. 2 3 title = "TOML Example" 4 5 [log] 6 level = "debug" 7 8 [rpc] 9 enabled = true 10 port = 8000 11 12 [p2p] 13 enabled = true 14 bootstrap_node = true 15 port = 8001 16 max_peers = 18 17 network_id = 1 18 bootstrap_nodes = "onode://6caae3f8faba3a135e2bd21d48a3be09c45653c4484fe396ac28c838ffc6b6d203295a7f963162687ec7d402157bbfaf8b602017a26945b13a98dc5a7eb43b5c@192.168.45.163:8001" 19 20 [websocket] 21 enabled = false 22 port = 8002 23 24 [profiling] 25 port = 8003 26 27 [db] 28 name = "leveldb" 29 30 [leveldb] 31 path = "datadir_1" 32 cache = 16 33 handles = 16 34 35 [txpool] 36 queue_size = 100 37 tips_size = 1000 38 reset_duration = 10 39 tx_verify_time = 2 40 tx_valid_time = 100 41 timeout_pool_queue_ms = 10000 42 timeout_subscriber_ms = 10000 43 timeout_confirmation_ms = 10000 44 timeout_latest_seq_ms = 10000 45 46 [auto_client] 47 # whether auto_tx will maintain its own nonce records. 48 # false to query latest nonce every time. 49 nonce_self_discipline = false 50 51 [auto_client.sequencer] 52 enabled = true 53 interval_ms = 5000 54 55 [auto_client.tx] 56 enabled = false 57 interval_ms = 10000000 58 account_ids = [0,1] 59 interval_mode = "random" 60 61 [debug] 62 node_id = 1 63 64 [hub] 65 sync_cycle_ms = 10000 66 67 [crypto] 68 algorithm = "ed25519" 69 70 [dag] 71 72 consensus = "dpos" 73 74 75 # samples below 76 77 #[owner] 78 #name = "Tom Preston-Werner" 79 #dob = 1979-05-27T07:32:00-08:00 # First class dates 80 # 81 #[database] 82 #server = "192.168.1.1" 83 #ports = [ 8001, 8001, 8002 ] 84 #connection_max = 5000 85 #enabled = true 86 # 87 #[servers] 88 # 89 # # Indentation (tabs and/or spaces) is allowed but not required 90 # [servers.alpha] 91 # ip = "10.0.0.1" 92 # dc = "eqdc10" 93 # 94 # [servers.beta] 95 # ip = "10.0.0.2" 96 # dc = "eqdc10" 97 # 98 #[clients] 99 #data = [ ["gamma", "delta"], [1, 2] ] 100 # 101 ## Line breaks are OK when inside arrays 102 #hosts = [ 103 # "alpha", 104 # "omega" 105 #]