Skip to content

Commit

Permalink
Merge pull request steemit#1168 from steemit/removedefaultplugins
Browse files Browse the repository at this point in the history
remove account_history plugin from default/low memory config file
  • Loading branch information
Michael Vandeberg authored Jun 7, 2017
2 parents ac9f964 + 2e0057a commit d279df3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/config-for-docker.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
public-api = database_api login_api

# Plugin(s) to enable, may be specified multiple times
enable-plugin = witness account_history
enable-plugin = witness

# JSON list of [nblocks,nseconds] pairs, see doc/bcd-trigger.md
bcd-trigger = [[0,10],[85,300]]

# Defines a range of accounts to track as a json pair ["from","to"] [from,to]
# track-account-range =
# track-account-range =

# Ignore posting operations, only track transfers and account updates
# filter-posting-ops =
Expand Down
9 changes: 8 additions & 1 deletion contrib/steemd.run
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi

# if user did pass in desired seed nodes, use
# the ones the user specified:
if [[ ! -z "$STEEMD_SEED_NODES" ]]; then
if [[ ! -z "$STEEMD_SEED_NODES" ]]; then
for NODE in $STEEMD_SEED_NODES ; do
ARGS+=" --seed-node=$NODE"
done
Expand All @@ -45,6 +45,13 @@ if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
ARGS+=" --private-key=$STEEMD_PRIVATE_KEY"
fi

if [[ ! -z "$TRACK_ACCOUNT" ]]; then
if [[ ! "$USE_WAY_TOO_MUCH_RAM" ]]; then
ARGS+=" --enable-plugin=witness account_history"
fi
ARGS+=" --track-account-range=[\"$TRACK_ACCOUNT\",\"$TRACK_ACCOUNT\"]"
fi

NOW=`date +%s`
STEEMD_FEED_START_TIME=`expr $NOW - 1209600`
STEEMD_FEED_START_TIMESTAMP=`date --date=@$STEEMD_FEED_START_TIME +%Y-%m-%d:%H:%M:%S`
Expand Down
6 changes: 6 additions & 0 deletions doc/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ track-account-range = ["yourexchangeid", "yourexchangeid"]
```
Do not add other APIs or plugins unless you know what you are doing.

This configuration exists in Docker with the following command

```
docker run -d --env TRACK_ACCOUNT="yourexchangeid" steemit/steem
```

### Resources usage

Please make sure that you have enough resources available.
Expand Down

0 comments on commit d279df3

Please sign in to comment.