Skip to content

[feature] Add spin up time for nodeos #78

@Avm07

Description

@Avm07

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions