Skip to content

Commit

Permalink
cofigure first deployment for gateis
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitakunevich committed May 17, 2018
1 parent 655b154 commit 7411879
Show file tree
Hide file tree
Showing 6 changed files with 717 additions and 18 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Expand Up @@ -14,24 +14,39 @@ hardfork.hpp

libraries/utilities/git_revision.cpp

libraries/egenesis/egenesis_brief.cpp
libraries/egenesis/egenesis_full.cpp
libraries/egenesis/embed_genesis

libraries/wallet/Doxyfile
libraries/wallet/api_documentation.cpp
libraries/wallet/doxygen


programs/cli_wallet/cli_wallet
programs/js_operation_serializer/js_operation_serializer
programs/witness_node/witness_node
programs/build_helpers/cat-parts
programs/build_helpers/member_enumerator
programs/delayed_node/delayed_node
programs/genesis_util/convert_address
programs/genesis_util/genesis_update
programs/genesis_util/get_dev_key
programs/size_checker/size_checker

tests/app_test
tests/chain_bench
tests/chain_test
tests/intense_test
tests/performance_test
tests/cli_test
tests/generate_empty_blocks/generate_empty_blocks

doxygen

wallet.json
witness_node_data_dir
data

*.wallet

Expand Down
166 changes: 166 additions & 0 deletions example-config.ini
@@ -0,0 +1,166 @@
# Endpoint for P2P node to listen on
p2p-endpoint = 127.0.0.1:11010

# P2P nodes to connect to on startup (may specify multiple times)
# seed-node =

# JSON array of P2P nodes to connect to on startup
seed-nodes = []

# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
# checkpoint =

# Endpoint for websocket RPC to listen on
rpc-endpoint = 127.0.0.1:8090

# Endpoint for TLS websocket RPC to listen on
# rpc-tls-endpoint =

# The TLS certificate file for this server
# server-pem =

# Password for this certificate
# server-pem-password =

# File to read Genesis State from
genesis-json = custom-genesis.json

# Block signing key to use for init witnesses, overrides genesis file
# dbg-init-key =

# JSON file specifying API permissions
# api-access =

# Space-separated list of plugins to activate
# plugins =

# Enable block production, even if the chain is stale.
enable-stale-production = true

# Percent of witnesses (0-99) that must be participating in order to produce blocks
required-participation = false

# ID of witness controlled by this node (e.g. "1.6.5", quotes are required, may specify multiple times)
witness-id = "1.6.1"
witness-id = "1.6.2"
witness-id = "1.6.3"
witness-id = "1.6.4"
witness-id = "1.6.5"
witness-id = "1.6.6"
witness-id = "1.6.7"
witness-id = "1.6.8"
witness-id = "1.6.9"
witness-id = "1.6.10"
witness-id = "1.6.11"

# Tuple of [PublicKey, WIF private key] (may specify multiple times)
private-key = ["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]

# Tuple of [PublicKey, WIF private key] (may specify multiple times)
debug-private-key = ["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]

# Account ID to track history for (may specify multiple times)
# track-account =

# Keep only those operations in memory that are related to account history tracking
partial-operations = 1

# Maximum number of operations per account will be kept in memory
max-ops-per-account = 1000

# Elastic Search database node url
# elasticsearch-node-url =

# Number of bulk documents to index on replay(5000)
# elasticsearch-bulk-replay =

# Number of bulk documents to index on a syncronied chain(10)
# elasticsearch-bulk-sync =

# Log bulk events to database
# elasticsearch-logs =

# Use visitor to index additional data(slows down the replay)
# elasticsearch-visitor =

# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
bucket-size = [60,300,900,1800,3600,14400,86400]

# How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)
history-per-size = 1000

# Will only store this amount of matched orders for each market in order history for querying, or those meet the other option, which has more data (default: 1000)
max-order-his-records-per-market = 1000

# Will only store matched orders in last X seconds for each market in order history for querying, or those meet the other option, which has more data (default: 259200 (3 days))
max-order-his-seconds-per-market = 259200

# RPC endpoint of a trusted validating node (required)
# trusted-node =

# Block number after which to do a snapshot
# snapshot-at-block =

# Block time (ISO format) after which to do a snapshot
# snapshot-at-time =

# Pathname of JSON file where to store the snapshot
# snapshot-to =

# Elasticsearch node url
# es-objects-elasticsearch-url =

# Log bulk events to database
# es-objects-logs =

# Number of bulk documents to index on replay(5000)
# es-objects-bulk-replay =

# Number of bulk documents to index on a syncronied chain(10)
# es-objects-bulk-sync =

# Store proposal objects
# es-objects-proposals =

# Store account objects
# es-objects-accounts =

# Store asset objects
# es-objects-assets =

# Store balances objects
# es-objects-balances =

# Store limit order objects
# es-objects-limit-orders =

# Store feed data
# es-objects-asset-bitasset =

# Group orders by percentage increase on price. Specify a JSON array of numbers here, each number is a group, number 1 means 0.01%.
tracked-groups = [10,100]

# declare an appender named "stderr" that writes messages to the console
[log.console_appender.stderr]
stream=std_error

# declare an appender named "p2p" that writes messages to p2p.log
[log.file_appender.p2p]
# filename can be absolute or relative to this config file
filename=logs/p2p/p2p.log
# Rotate log every ? minutes, if leave out default to 60
rotation_interval=60
# how long will logs be kept (in days), if leave out default to 7
rotation_limit=7

# route any messages logged to the default logger to the "stderr" logger we
# declared above, if they are info level are higher
[logger.default]
level=info
appenders=stderr

# route messages sent to the "p2p" logger to the p2p appender declared above
[logger.p2p]
level=info
appenders=p2p

535 changes: 534 additions & 1 deletion genesis.json

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions libraries/app/application.cpp
Expand Up @@ -165,23 +165,6 @@ void application_impl::reset_p2p_node(const fc::path& data_dir)
{
// https://bitsharestalk.org/index.php/topic,23715.0.html
vector<string> seeds = {
"104.236.144.84:1777", // puppies (USA)
"128.199.143.47:2015", // Harvey (Singapore)
"23.92.53.182:1776", // sahkan (USA)
"192.121.166.162:1776", // sahkan (UK)
"51.15.61.160:1776", // lafona (France)
"bts-seed1.abit-more.com:62015", // abit (China)
"node.blckchnd.com:4243", // blckchnd (Germany)
"seed.bitsharesdex.com:50696", // iHashFury (Europe)
"seed.bitsharesnodes.com:1776", // wackou (Netherlands)
"seed.blocktrades.us:1776", // BlockTrades (USA)
"seed.cubeconnex.com:1777", // cube (USA)
"seed.roelandp.nl:1776", // roelandp (Canada)
"seed04.bts-nodes.net:1776", // Thom (Australia)
"seed05.bts-nodes.net:1776", // Thom (USA)
"seed06.bts-nodes.net:1776", // Thom (USA)
"seed07.bts-nodes.net:1776", // Thom (Singapore)
"seeds.bitshares.eu:1776" // pc (http://seeds.quisquis.de/bitshares.html)
};
for( const string& endpoint_string : seeds )
{
Expand Down
1 change: 1 addition & 0 deletions run_cli_wallet.sh
@@ -0,0 +1 @@
programs/cli_wallet/cli_wallet --wallet-file=wallet.json --chain-id=6fc2018e20aa515acec9ed829d5c27935f70c2d26a76c917fcd0e857c04cd555 --server-rpc-endpoint=ws://127.0.0.1:8090
1 change: 1 addition & 0 deletions run_witness_node.sh
@@ -0,0 +1 @@
programs/witness_node/witness_node --data-dir witness_node_data_dir --enable-stale-production

0 comments on commit 7411879

Please sign in to comment.