Add tx-spammer
This commit is contained in:
parent
8f63328d60
commit
5591830bbb
@ -17,3 +17,4 @@ cerc/test-container
|
|||||||
cerc/eth-probe
|
cerc/eth-probe
|
||||||
cerc/builder-js
|
cerc/builder-js
|
||||||
cerc/keycloak
|
cerc/keycloak
|
||||||
|
cerc/tx-spammer
|
||||||
|
@ -14,3 +14,4 @@ watcher-mobymask
|
|||||||
test
|
test
|
||||||
eth-probe
|
eth-probe
|
||||||
keycloak
|
keycloak
|
||||||
|
tx-spammer
|
||||||
|
@ -14,3 +14,4 @@ cerc-io/mobymask-watcher
|
|||||||
cerc-io/watcher-ts
|
cerc-io/watcher-ts
|
||||||
vulcanize/assemblyscript
|
vulcanize/assemblyscript
|
||||||
cerc-io/eth-probe
|
cerc-io/eth-probe
|
||||||
|
cerc-io/tx-spammer
|
||||||
|
18
compose/docker-compose-tx-spammer.yml
Normal file
18
compose/docker-compose-tx-spammer.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
version: '3.2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
tx-spammer:
|
||||||
|
restart: always
|
||||||
|
image: cerc/tx-spammer:local
|
||||||
|
env_file:
|
||||||
|
- ../config/tx-spammer/tx-spammer.env
|
||||||
|
environment:
|
||||||
|
ACCOUNTS_CSV_URL: http://fixturenet-eth-bootnode-geth:9898/accounts.csv
|
||||||
|
ETH_HTTP_PATH: http://fixturenet-eth-geth-1:8545
|
||||||
|
LOG_LEVEL: debug
|
||||||
|
SPAMMER_COMMAND: autoSend
|
||||||
|
depends_on:
|
||||||
|
fixturenet-eth-bootnode-geth:
|
||||||
|
condition: service_started
|
||||||
|
fixturenet-eth-geth-1:
|
||||||
|
condition: service_healthy
|
1
config/tx-spammer/keys/0.key
Normal file
1
config/tx-spammer/keys/0.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218
|
1
config/tx-spammer/keys/1.key
Normal file
1
config/tx-spammer/keys/1.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597
|
1
config/tx-spammer/keys/2.key
Normal file
1
config/tx-spammer/keys/2.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
111b7500bdce494d6f4bcfe8c2a0dde2ef92f751d9070fac6475dbd6d8021b3f
|
1
config/tx-spammer/keys/3.key
Normal file
1
config/tx-spammer/keys/3.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
fb1e9af328c283ca3e2486e7c24d13582b7912057d8b9542ff41503c85bc05c0
|
1
config/tx-spammer/keys/4.key
Normal file
1
config/tx-spammer/keys/4.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
be4aa664815ea3bc3d63118649a733f6c96b243744310806ecb6d96359ab62cf
|
1
config/tx-spammer/keys/5.key
Normal file
1
config/tx-spammer/keys/5.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
6177345b77c4069ac4d553f8b43cf68a799ca4bb63eac93d6cf796d63694ebf0
|
2
config/tx-spammer/tx-spammer.env
Normal file
2
config/tx-spammer/tx-spammer.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ETH_CALL_FREQ=1000
|
||||||
|
ETH_SEND_FREQ=1000
|
3
container-build/cerc-tx-spammer/build.sh
Executable file
3
container-build/cerc-tx-spammer/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build cerc/tx-spammer
|
||||||
|
docker build -t cerc/tx-spammer:local ${CERC_REPO_BASE_DIR}/tx-spammer
|
@ -43,18 +43,19 @@ Several other containers can used with the basic `fixturenet-eth`:
|
|||||||
* `ipld-eth-beacon-db` and `ipld-eth-beacon-indexer` (for indexing Beacon chain blocks)
|
* `ipld-eth-beacon-db` and `ipld-eth-beacon-indexer` (for indexing Beacon chain blocks)
|
||||||
* `eth-probe` (captures eth1 tx gossip)
|
* `eth-probe` (captures eth1 tx gossip)
|
||||||
* `keycloak` (nginx proxy with keycloak auth for API authentication)
|
* `keycloak` (nginx proxy with keycloak auth for API authentication)
|
||||||
|
* `tx-spammer` (generates and sends automated transactions to the fixturenet)
|
||||||
|
|
||||||
It is not necessary to use them all at once, but a complete example follows:
|
It is not necessary to use them all at once, but a complete example follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
# Setup
|
# Setup
|
||||||
$ laconic-so setup-repositories --include cerc-io/go-ethereum,cerc-io/ipld-eth-db,cerc-io/ipld-eth-server,cerc-io/ipld-eth-beacon-db,cerc-io/ipld-eth-beacon-indexer,cerc-io/eth-probe
|
$ laconic-so setup-repositories --include cerc-io/go-ethereum,cerc-io/ipld-eth-db,cerc-io/ipld-eth-server,cerc-io/ipld-eth-beacon-db,cerc-io/ipld-eth-beacon-indexer,cerc-io/eth-probe,cerc-io/tx-spammer
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
$ laconic-so build-containers --include cerc/go-ethereum,cerc/lighthouse,cerc/fixturenet-eth-geth,cerc/fixturenet-eth-lighthouse,cerc/ipld-eth-db,cerc/ipld-eth-server,cerc/ipld-eth-beacon-db,cerc/ipld-eth-beacon-indexer,cerc/eth-probe,cerc/keycloak
|
$ laconic-so build-containers --include cerc/go-ethereum,cerc/lighthouse,cerc/fixturenet-eth-geth,cerc/fixturenet-eth-lighthouse,cerc/ipld-eth-db,cerc/ipld-eth-server,cerc/ipld-eth-beacon-db,cerc/ipld-eth-beacon-indexer,cerc/eth-probe,cerc/keycloak,cerc/tx-spammer
|
||||||
|
|
||||||
# Deploy
|
# Deploy
|
||||||
$ laconic-so deploy-system --include db,fixturenet-eth,ipld-eth-server,ipld-eth-beacon-db,ipld-eth-beacon-indexer,eth-probe,keycloak up
|
$ laconic-so deploy-system --include db,fixturenet-eth,ipld-eth-server,ipld-eth-beacon-db,ipld-eth-beacon-indexer,eth-probe,keycloak,tx-spammer up
|
||||||
|
|
||||||
# Status
|
# Status
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user