---
# System prepended metadata

title: Prepare OpenEthereum for tracer compatibility tests

---

# Prepare OpenEthereum for tracer compatibility tests

# Clone repo

```
git clone git@github.com:ziogaschr/openethereum.git

```

Go to ETC branch

# Build OpenEthereum

```
cargo build --verbose
```

# Run OpenEthereum

```
./dev-run.sh
```

# Core-geth prepare

## Mordor config

Change `config_mordor.go` and keep forks up to `999_983`.

### Working genesis_mordor.json

```json
{"config":{"networkId":7,"chainId":63,"supportedProtocolVersions":[66],"eip2FBlock":0,"eip7FBlock":0,"eip150Block":0,"eip155Block":0,"eip160Block":0,"eip161FBlock":0,"eip170FBlock":0,"eip100FBlock":0,"eip140FBlock":0,"eip198FBlock":0,"eip211FBlock":0,"eip212FBlock":0,"eip213FBlock":0,"eip214FBlock":0,"eip658FBlock":0,"eip145FBlock":301243,"eip1014FBlock":301243,"eip1052FBlock":301243,"eip152FBlock":999983,"eip1108FBlock":999983,"eip1344FBlock":999983,"eip1884FBlock":999983,"eip2028FBlock":999983,"eip2200FBlock":999983,"ecip1017FBlock":0,"ecip1017EraRounds":2000000,"disposalBlock":0,"ethash":{},"requireBlockHashes":{"840013":"0x2ceada2b191879b71a5bcf2241dd9bc50d6d953f1640e62f9c2cee941dc61c9d","840014":"0x8ec29dd692c8985b82410817bac232fc82805b746538d17bc924624fe74a0fcf"}},"nonce":"0x0","timestamp":"0x5d9676db","extraData":"0x70686f656e697820636869636b656e206162737572642062616e616e61","gasLimit":"0x2fefd8","difficulty":"0x20000","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","coinbase":"0x0000000000000000000000000000000000000000","alloc":{},"number":"0x0","gasUsed":"0x0","parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000","baseFeePerGas":null}
```

## Reapply genesis

```
geth --mordor --datadir=$ETC_DATADIR dumpgenesis > genesis_mordor.json
geth --mordor --datadir=$ETC_DATADIR dumpgenesis init genesis_mordor.json
```

## Start core-geth using `extip`

```
--nat=extip:<public_ip>
```

# Add core-geth as a peer to OpenEthereum

```
curl --location --request POST '<oe_public_ip>:8555' \
--header 'Content-Type: application/json' \
--data-raw '{
    "method": "parity_addReservedPeer",
    "params": [
        "enode://1ea6c9d98e4baa59df32266f29d185c18ef0689cd465f037fed332702ae0e0a6130bb08cdd02d2a0565528acfca42a385d48bb74bd2c8f923c6503a4e04df5ed@<core_geth_public_ip>:30303"
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'
```