github.com/annchain/OG@v0.0.9/scripts/data/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 = 30000 11 12 [p2p] 13 enabled = true 14 bootstrap_node = true 15 port = 30001 16 max_peers = 15 17 network_id = 1 18 enable_sync = true 19 bootstrap_nodes = "onode://6caae3f8faba3a135e2bd21d48a3be09c45653c4484fe396ac28c838ffc6b6d203295a7f963162687ec7d402157bbfaf8b602017a26945b13a98dc5a7eb43b5c@127.0.0.1:8001" 20 # node_key = "3fa29b2f6b83e037e2573545a6d9c06c0809aeb929cc8c14f992546ae5530b7d" 21 22 [websocket] 23 enabled = true 24 port = 30002 25 26 [profiling] 27 port = 30003 28 29 [db] 30 name = "leveldb" 31 32 [leveldb] 33 path = "datadir" 34 cache = 16 35 handles = 16 36 37 [statedb] 38 flush_timer_s = 5 39 purge_timer_s = 10 40 beat_expire_time_s = 300 41 42 [txpool] 43 queue_size = 100 44 tips_size = 1000 45 reset_duration = 10 46 tx_verify_time = 2 47 tx_valid_time = 100 48 timeout_pool_queue_ms = 10000 49 timeout_subscriber_ms = 10000 50 timeout_confirmation_ms = 10000 51 timeout_latest_seq_ms = 10000 52 53 [auto_client] 54 # whether auto_tx will maintain its own nonce records. 55 # false to query latest nonce every time. 56 nonce_self_discipline = true 57 58 [auto_client.sequencer] 59 enabled = true 60 interval_ms = 5000 61 62 [auto_client.tx] 63 enabled = true 64 interval_ms = 500 65 account_ids = [0,1] 66 interval_mode = "random" 67 68 [debug] 69 node_id = 1 70 71 [hub] 72 sync_cycle_ms = 10000 73 74 [crypto] 75 algorithm = "ed25519" 76 77 [dag] 78 consensus = "dpos"