github.com/annchain/OG@v0.0.9/deployment/docker_private_server.toml (about) 1 # This is a TOML document. 2 # Private net will not embed bootstrap node, networkid and mode inside toml 3 title = "OG Private Net With Server configuration" 4 5 [log] 6 level = "info" 7 8 [rpc] 9 enabled = true 10 port = 8000 11 12 [p2p] 13 enabled = true 14 bootstrap_config_server = "http://ogboot:8008" 15 #bootstrap_node = false 16 port = 8001 17 max_peers = 50 18 #network_id = 1 19 enable_sync = true 20 #bootstrap_nodes = "onode://6caae3f8faba3a135e2bd21d48a3be09c45653c4484fe396ac28c838ffc6b6d203295a7f963162687ec7d402157bbfaf8b602017a26945b13a98dc5a7eb43b5c@47.100.222.11:8001" 21 # node_key = "3fa29b2f6b83e037e2573545a6d9c06c0809aeb929cc8c14f992546ae5530b7d" 22 no_encryption = false 23 24 [websocket] 25 enabled = true 26 port = 8002 27 28 [profiling] 29 port = 8003 30 31 [db] 32 name = "leveldb" 33 34 [leveldb] 35 path = "/rw/datadir_1" 36 cache = 256 37 handles = 256 38 39 [statedb] 40 flush_timer_s = 5 41 purge_timer_s = 10 42 beat_expire_time_s = 300 43 44 [txpool] 45 queue_size = 100 46 tips_size = 1000 47 reset_duration = 10 48 tx_verify_time = 2 49 tx_valid_time = 100 50 timeout_pool_queue_ms = 10000 51 timeout_subscriber_ms = 10000 52 timeout_confirmation_ms = 10000 53 timeout_latest_seq_ms = 10000 54 55 [auto_client] 56 # whether auto_tx will maintain its own nonce records. 57 # false to query latest nonce every time. 58 nonce_self_discipline = false 59 60 [auto_client.sequencer] 61 enabled = false 62 interval_us = 5_000_000 63 64 [auto_client.tx] 65 enabled = false 66 interval_us = 500_000 67 account_ids = [0,1] 68 interval_mode = "random" 69 70 [auto_client.archive] 71 enabled = false 72 interval_us = 500_000 73 74 [debug] 75 node_id = 1 76 77 [hub] 78 sync_cycle_ms = 10000 79 disable_encrypt_gossip = false 80 disable_feedback = true 81 82 [crypto] 83 # ed25519 or secp256k1 84 algorithm = "secp256k1" 85 86 [dag] 87 genesis_path = "genesis.json" 88 89 [annsensus] 90 campaign = true 91 disable_term_change = true 92 #partner_number = 4 93 #threshold = 4 94 #genesis_pk ="0x0104994735dfcf60eb43bb5286334a7a83b622685fc3feb92247c65cc4b4cd55497fbc767f2e59a222abb650e5f411d9f7b6266b49439cdb348d859e33e89846bcaf;0x01046ce80b57488632dd7fc1488f5c2ed4746b16e2656b9ec7793f6f7d23663a5bd68ba37a00313d55042480c23b98b2cbee334eda939eab12a737f4a5d3e646da93;0x0104329ad4860f4835427efe677cecfda463e9fa0be722b41d64109197499b2804fbe9fa41416191c81fc9f819f83fad0a891a4eb3c5ee7d7122c8a6c948f71c8028;0x0104f25bceb564a148de47ba2725eaa4f88898d54dee044d8bbf75b4f209edd67a0e21ab145e249a5dd236a7bd9d7bb42ef24c30fb9da94d8001faac29588c61c45b" 95 consensus_path ="consensus.json" 96 #disable consensus module 97 disable = false 98 # after 10 sequencer , will term change 99 term_change_interval = 10 100 sequencerTime = 1000 101 102 mode = "normal"