---
# System prepended metadata

title: EPHEMERAL TESTNET WITH CELEBRIMBOR

---

# EPHEMERAL TESTNET WITH CELEBRIMBOR

## Do this once [IF YOU ARE A MAINTAINER]
If you are using MacOS than you should check if MacOS binary is present in releases. It must be like `beacon-chain-darwin`, `other-name-darwin`.
To see what is the url format look at `cmd/celebrimbor/dependency.go`

To see the most recent (default) tags in each dependency look at `./cmd/celebrimbor/flags.go`
You can also steer it via flags, look at `./celebrimbor --help`.
We plan to automate each darwin release


## Do this each spin
```shell
./celebrimbor \
--force-clear-db \
--vanguard-grpc-endpoint=127.0.0.1:4000 \
--http \
--http.addr=0.0.0.0 \
--http.port=7877 \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=7878 \
--pandora-rpc-endpoint=./pandora/geth.ipc \
--verbosity=trace \
--accept-terms-of-use \
--pandora-verbosity 4  \
--pandora-etherbase YOUR_ETHERBASE_HERE \
--vanguard-bootnode=enr:-LK4QFYQgA-wif7ZFBZZe_WxhdgzolOXRfPYJSMVCKe-zcqgJWmNI1UlP3lpp5tZoivCWsZItYGakFUMDoIATefmmKMCh2F0dG5ldHOICABAAAELIASEZXRoMpBqqlfVAAAAAP__________gmlkgnY0gmlwhAoAAaqJc2VjcDI1NmsxoQKU5b-4C5Q7fv-nQfDzCTGzOM6H2jR-9MUIHro4gSnQD4N0Y3CCMsiDdWRwgi7g \
--pandora-bootnodes="enode://9adad8b1cc7b9f49e898179497e324900fa86befad2f2f4cfad975e1d074e2c58474bfbbc9d380c8c4e4d39c0c3254fa0b8b3231bd11007044d5fcba8d10f0d3@35.198.116.152:30405" \
--pandora-ethstats YOUR_NAME_HERE:VIyf7EjWlR49@catalyst.silesiacoin.com \
--vanguard-verbosity=trace \
--validator-verbosity=trace \
--vanguard-disable-sync \
--pandora-output \
--pandora-ws-apis=admin,net,eth,debug,ethash,miner,personal,txpool,web3 \
--pandora-nat=extip:83.144.95.18 \
--pandora-ws-origin="*" \
--pandora-http-origin="*" \
--vanguard-p2p-host=YOUR_EXTERNAL_IP_HERE
```


## Do this once [IF YOU ARE A VALIDATOR]

You must import your keys. Easiest way is to spin celebrimbor once, it will get the dependencies for you automatically.
After promt of downloaded dependencies form your terminal you can run:
```sh
./vanguard/v0.0.17-alpha/validator accounts import --keys-dir=./$PATH_TO_DEPOSIT_CLI_DIRECTORY
```

## Logging
Logs from vanguard and validator are inserted into `./vanguard/validator.log` and `./vanguard/vanguard.log`
To see pandora output you must add `--pandora-output` flag. Consecutively you can choose `--vanguard-output` and `--validator-output`.
Altough, it wont log any crash. Log of orchestrator is directed to stdOut and stdErr by default.
You can steer the verbosity on each client with flags:
```sh
--verbosity=trace
--pandora-verbosity 4
--validator-verbosity=trace
--vanguard-verbosity=trace
```

## How to run validator to see the current crash
To see the crash please run this manually after attaching yours merge
```shell
./vanguard/v0.0.17-alpha/validator --accept-terms-of-use --force-clear-db --chain-config-file=./vanguard/v0.0.17-alpha/config.yml --verbosity trace --pandora-http-provider=http://127.0.0.1:8565 --log-file=./vanguard/validator.log --wallet-password-file=./password.txt --datadir=./vanguard --lukso-network
```

## How to clean up and respin
- ctr (cmd) + c
- see if any of the process is still ongoing `ps -aux|grep vanguard` or `ps -aux |grep validator` or `ps -aux |grep pandora`
- if it is, kill it `kill -9 $PID`
- remove dirs ` rm -rf ./vanguard/beaconchaindata/ ./vanguard/va* ./vanguard/network-keys ./vanguard/v0.0.16-alpha/config.yml ./vanguard/v0.0.16-alpha/vanguard_private_testnet_genesis.ssz ./pandora/geth/ ./vanguard/beaconchaindata/ ./vanguard/metaData`


## Example of merged changes in orchestrator
https://github.com/lukso-network/lukso-orchestrator/tree/feature/44/ephemeral-testnet-merged

Here is the script to add additional peers manually in geth console
./pandora/v0.0.16-alpha/pandora attach ./pandora/geth.ipc
## Fast script to add additional nodes
admin.addPeer("enode://3b63b1a921c7b178abc44ee5d369748a43c7d36198a7c8f67109f9bb5db613e4a13f3a1c285feaa7bfb251cdee3918c5f9f093682cb28004afdef5a7bb0e8465@35.198.116.152:30405")
admin.addPeer("enode://a555e4597680a000ab8794f04343358f30fb09820d58498cc36f224fefdfdf952b5d8367021a862941cb9481dea6f120637b190faf002cb65d111d77c1059859@34.141.108.10:30405")
admin.addPeer("enode://c4865b96735b2f1dc8965ab4ddd4ce88859778b666468730f39af60820cb4d874fd1d5ff29751eedbde3c1ae9dbeff946ebd978f4b7b64afdae1ea4311e07558@35.198.139.247:30405")
admin.addPeer("enode://f4861ac00d83ebb6e52883573133adba8a3ea01e10458348a5bdad494edc2858f771089f5cab8cf3bc8f404e0f4e95bc000cc06703fa1d9f4bdece70d657bd7b@34.141.1.216:30405")
