Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Scheduler and watchdog
Added watchdog (with Dockerfile) for monitoring block production in bash using only an API.
Added bash script for pushing data to a price feed oracle (oracle_feed.sh, can be run from scheduler below).
Added Docker container for running scheduled tasks, using cron. It's damn cool!
Added a chain-aware claim script that can be run from the scheduler.
Made patroneos config run-time based on environment variables. Fewer config files!
Started working on generating nodeos config at run-time based on environment variables.
  • Loading branch information
i-love-to-code committed Jun 18, 2020
1 parent 0bf1609 commit 9e79400
Show file tree
Hide file tree
Showing 106 changed files with 1,803 additions and 861 deletions.
8 changes: 8 additions & 0 deletions .env.example
@@ -0,0 +1,8 @@
NODEOS_ROOT=/private/var/eosio
NODEOS_DATA_ROOT=$NODEOS_ROOT/data
NODEOS_CONFIG_ROOT=/Users/samnoble/Dev/EOSDublin/wax-tools/config/nodeos
NODEOS_DOCKER_IMAGE=waxtools/nodeos
NODEOS_GELF_ENDPOINT=0.0.0.0:12201
NODEOS_LOGGING_LEVEL=info

OS_GROUP_EOSIO=eosio
6 changes: 6 additions & 0 deletions Makefile
@@ -1,3 +1,9 @@
################################################################################
#
# Created by Sam Noble for eosdublinwow https://eosdublin.com
# Visit https://github.com/wax-tools for details.
#
#################################################################################
environments:=testnet production
roles:=producer api seed

Expand Down
94 changes: 5 additions & 89 deletions config/nodeos/wax-testnet-api/config.ini
@@ -1,100 +1,16 @@
################################################################################
#
# Created by @i-love-to-code from eosDublin for the WAX Netowrk
# Visit https://github.com/wax-tools/nodes for details.
# Created by Sam Noble for eosdublinwow https://eosdublin.com
# Visit https://github.com/wax-tools for details.
#
# This file serves as the base configuration for an EOSIO node.
#
#################################################################################
#
# NOTE: An EOS node should not directly expose it's internal HTTP server to the
# public internet. Place nodeos behind a reverse proxy
# public internet. Place nodeos behind a reverse proxy, e.g.
# https://github.com/eosdublin/cerberus for more details.
#
################################################################################

# Plugins
plugin = eosio::net_plugin
plugin = eosio::net_api_plugin
plugin = eosio::db_size_api_plugin
plugin = eosio::http_plugin
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::producer_plugin
plugin = eosio::producer_api_plugin

################################################################################
#
# - User Config -
# Set the following parameters to suit your setup
#
################################################################################

# eosio::chain_plugin
chain-state-db-size-mb = 16768
reversible-blocks-db-size-mb = 128

# eosio::http_plugin
http-server-address = 0.0.0.0:8888

# eosio::net_plugin
agent-name = "wax-testnet-api-1"

# p2p peer addresses
p2p-peer-address = testnet.waxsweden.org:59676
p2p-peer-address = testnet2.waxsweden.org:59676
p2p-peer-address = wax-testnet.eosphere.io:9815
p2p-peer-address = wax-test-p2p.eosdac.io:9811
p2p-peer-address = testnet.wax.pink.gg:9875
p2p-peer-address = peer.waxtest.alohaeos.com:9876
p2p-peer-address = waxtest.eosn.io:9876
p2p-peer-address = waxp2p-testnet.eoscafeblock.com:9050
p2p-peer-address = testnet.wax.eosrio.io:18032
p2p-peer-address = wax-test.eossweden.eu:9062
p2p-peer-address = wax.testnet.dublin.io:9876
p2p-peer-address = waxtestnet.greymass.com:45777
p2p-peer-address = wax-p2p.hkeos.com:59876
p2p-peer-address = p2p.waxtestnet.everstake.one:9876
p2p-peer-address = wax-testnet.dapplica.io:9877

################################################################################
#
# - Advanced Configuration -
# Curiouser and curiouser!
#
################################################################################
#
# eosio::net_plugin
#
# The network plugin is required to connect to other nodes in order to receive blocks.
#
################################################################################

connection-cleanup-period = 10
sync-fetch-span = 150
p2p-max-nodes-per-host = 5
max-clients = 250

################################################################################
#
# eosio::chain_api_plugin
# eosio::chain_plugin
#
# The chain plugin and chain API plugin are required to store chain information and then
# serve it up over HTTP
################################################################################

abi-serializer-max-time-ms = 2000
wasm-runtime = wabt

################################################################################
#
# eosio::http_plugin
#
# The HTTP plugin allows nodeos to service HTTP requests, forwarding them on to the respective plugin.
# The HTTP server should be assumed to be insecure and always run behind a reverse proxy.
################################################################################

verbose-http-errors = true
http-validate-host = false
access-control-allow-origin = *
access-control-allow-headers = Origin, X-Requested-With, Content-Type, Accept
# Put yo config mjeh!

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

87 changes: 5 additions & 82 deletions config/nodeos/wax-testnet-producer/config.ini
@@ -1,93 +1,16 @@
################################################################################
#
# Created by @i-love-to-code from eosDublin for the WAX Netowrk
# Visit https://github.com/wax-tools/nodes for details.
# Created by Sam Noble for eosdublinwow https://eosdublin.com
# Visit https://github.com/wax-tools for details.
#
# This file serves as the base configuration for an EOSIO node.
#
#################################################################################
#
# NOTE: An EOS node should not directly expose it's internal HTTP server to the
# public internet. Place nodeos behind a reverse proxy
# public internet. Place nodeos behind a reverse proxy, e.g.
# https://github.com/eosdublin/cerberus for more details.
#
################################################################################

# Plugins
plugin = eosio::net_plugin
plugin = eosio::net_api_plugin
plugin = eosio::db_size_api_plugin
plugin = eosio::http_plugin
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::producer_plugin
plugin = eosio::producer_api_plugin

################################################################################
#
# - User Config -
# Set the following parameters to suit your setup
#
################################################################################

# eosio::producer_plugin
signature-provider = your_pub_key=KEY:your_private_key
producer-name = your_producer_name
last-block-time-offset-us = 0
max-transaction-time = 30

# eosio::chain_plugin
chain-state-db-size-mb = 16768
reversible-blocks-db-size-mb = 128

# eosio::http_plugin
http-server-address = 0.0.0.0:8888

# eosio::net_plugin
agent-name = "wax-testnet-producer-1"

# p2p peer addresses
p2p-peer-address = wax-testnet-seed:9876
p2p-peer-address = wax-testnet-api:9876

################################################################################
#
# - Advanced Configuration -
# Curiouser and curiouser!
#
################################################################################
#
# eosio::net_plugin
#
# The network plugin is required to connect to other nodes in order to receive blocks.
#
################################################################################

connection-cleanup-period = 10
sync-fetch-span = 150
p2p-max-nodes-per-host = 5
max-clients = 250

################################################################################
#
# eosio::chain_api_plugin
# eosio::chain_plugin
#
# The chain plugin and chain API plugin are required to store chain information and then
# serve it up over HTTP
################################################################################

abi-serializer-max-time-ms = 2000
wasm-runtime = wabt

################################################################################
#
# eosio::http_plugin
#
# The HTTP plugin allows nodeos to service HTTP requests, forwarding them on to the respective plugin.
# The HTTP server should be assumed to be insecure and always run behind a reverse proxy.
################################################################################

verbose-http-errors = true
http-validate-host = false
access-control-allow-origin = *
access-control-allow-headers = Origin, X-Requested-With, Content-Type, Accept
# Put yo config mjeh!

This file was deleted.

This file was deleted.

0 comments on commit 9e79400

Please sign in to comment.