github.com/annchain/OG@v0.0.9/deployment/config_template (about) 1 # This is a TOML document. 2 3 title = "TOML Example" 4 mode ="normal" 5 6 [log] 7 level = "<log_level>" 8 9 [rpc] 10 enabled = true 11 port = <rpc_port> 12 13 [p2p] 14 enabled = true 15 bootstrap_node = false 16 port = <p2p_port> 17 max_peers = 50 18 network_id = 1 19 enable_sync = true 20 21 bootstrap_nodes = "<bootstrap_onode>" 22 # node_key = "3fa29b2f6b83e037e2573545a6d9c06c0809aeb929cc8c14f992546ae5530b7d" 23 no_encryption = false 24 genkey = true 25 26 [websocket] 27 enabled = true 28 port = <websocket_port> 29 30 [profiling] 31 port = <profiling_port> 32 33 [db] 34 name = "leveldb" 35 36 [leveldb] 37 path = "rw/datadir_1" 38 cache = 16 39 handles = 16 40 41 [statedb] 42 flush_timer_s = 5 43 purge_timer_s = 10 44 beat_expire_time_s = 300 45 46 [txpool] 47 queue_size = 100 48 tips_size = 1000 49 reset_duration = 10 50 tx_verify_time = 2 51 tx_valid_time = 100 52 timeout_pool_queue_ms = 10000 53 timeout_subscriber_ms = 10000 54 timeout_confirmation_ms = 10000 55 timeout_latest_seq_ms = 10000 56 57 [auto_client] 58 # whether auto_tx will maintain its own nonce records. 59 # false to query latest nonce every time. 60 nonce_self_discipline = false 61 62 [auto_client.sequencer] 63 enabled = false 64 interval_us = 5_000_000 65 66 [auto_client.tx] 67 enabled = false 68 interval_us = 500_000 69 account_ids = [0,1] 70 interval_mode = "random" 71 test_dag_push = false 72 test_insert_pool = false 73 74 [debug] 75 node_id = 1 76 77 [hub] 78 sync_cycle_ms = 10000 79 disable_encrypt_gossip = false 80 81 [crypto] 82 # ed25519 or secp256k1 83 algorithm = "secp256k1" 84 85 [dag] 86 genesis_path = "genesis.json" 87 #your own coinbase private key 88 my_private_key = "<coinbase_pri_key>" 89 90 91 [annsensus] 92 campaign = true 93 disable_term_change = true 94 partner_number = 4 95 threshold = 4 96 genesis_pk ="<genesis_pk>" 97 consensus_path ="consensus.json" 98 #disable consensus module 99 disable = false 100 # after 10 sequencer , will term change 101 term_change_interval = 10 102 103