Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add spin up time for nodeos #78

Open
Avm07 opened this issue Oct 8, 2020 · 0 comments
Open

[feature] Add spin up time for nodeos #78

Avm07 opened this issue Oct 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Avm07
Copy link

Avm07 commented Oct 8, 2020

For various reasons some time need to spin up time on nodeos to trigger some dApp logic.

For example:

  • some EOS account can call action once a day/week/month and receive some tokens etc.

Here is some bash script example how to trigger spin up on nodeos using shared lib:

#!/usr/bin/env bash

kill -s SIGTERM $(pgrep nodeos)
sleep 5

FAKETIME=$1 LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_NO_CACHE=1 nodeos --plugin eosio::producer_plugin -e -p eosio \
--disable-replay-opts \
--plugin=eosio::chain_plugin \
--plugin=eosio::chain_api_plugin \
--chain-state-db-size-mb=4096 \
--contracts-console \
--plugin=eosio::http_plugin \
--http-server-address=0.0.0.0:8888 \
--verbose-http-errors \
--http-validate-host=false \
--access-control-allow-origin=* \
--plugin=eosio::state_history_plugin \
--state-history-endpoint=0.0.0.0:8080 \
--trace-history \
--chain-state-history \
--plugin=eosio::net_plugin \
--plugin=eosio::net_api_plugin \
--abi-serializer-max-time-ms=3000 \
--http-max-response-time-ms=30 \
--max-transaction-time=1000 \
--plugin=eosio::history_plugin \
--plugin=eosio::history_api_plugin \
--filter-on=* &> /dev/null & 
sleep 5

@bakasura980 bakasura980 added the enhancement New feature or request label Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants