---
# System prepended metadata

title: Dev notes - w/c 21 April 2025
tags: [ephemery]

---

# Dev notes - w/c 21 April 2025

- [x] Run EL + CL together
- [ ] Update prysm branch so that CL client always retrieves latest ephemery release and verifies it

**Recap usage**

Build
`bazel build -- //... -//tools/...`

Run
`bazel-bin/cmd/beacon-chain/beacon-chain_/beacon-chain --execution-endpoint=http://localhost:8551 --genesis-beacon-api-url=https://checkpointz.bordel.wtf/ --ephemery --clear-db`

## THURSDAY

***tl;dr***
Ran ephemery-prysm with ephemery-geth (ephemery-145)


![Screenshot 2025-04-24 at 12.00.15](https://hackmd.io/_uploads/HJ0onqP1lx.png)


Done: 
- Investigated db error
- Ran prysm together with execution client
    - Cleared old ephemery-geth db

    ```
    database=/Users/hollyatkinson/Library/Ethereum/ephemery/geth/chaindata
    ```

    `rm -r chaindata`

    Build and run geth branch locally

    `make geth`
    `./build/bin/geth --ephemery --verbosity 4`

    - Rebuilt local prysm branch
![Screenshot 2025-04-24 at 14.27.14](https://hackmd.io/_uploads/SkG833D1xl.png)


    - Fixed jwt token error `ERROR execution: Could not connect to execution endpoint error=could not verify execution chain ID as your connection is not authenticated. If connecting to your execution client via HTTP, you will need to set up JWT authentication. See our documentation here https://docs.prylabs.network/docs/execution-node/authentication: 401 Unauthorized: missing token`

Ran `./prysm.sh beacon-chain generate-auth-secret`
Moved the generated jwt.hex file into the ethereum directory
Run prysm with `--jwt-secret=/Users/hollyatkinson/Library/ethereum/jwt.hex`
i.e. `bazel-bin/cmd/beacon-chain/beacon-chain_/beacon-chain --execution-endpoint=http://localhost:8551 --genesis-beacon-api-url=https://checkpointz.bordel.wtf/ --ephemery --clear-db --jwt-secret=/Users/hollyatkinson/Library/ethereum/jwt.hex`

Run geth with `--authrpc.jwtsecret=<PATH_TO_JWT_FILE>`
i.e. `./build/bin/geth --ephemery --authrpc.jwtsecret=/Users/hollyatkinson/Library/ethereum/jwt.hex`

![Screenshot 2025-04-24 at 15.11.50](https://hackmd.io/_uploads/HJcTIaPkxg.png)
Connected to ephemery-geth. Yay!

- Fixed `ERROR p2p: Invalid address of lighthouse:bootnode_pk2:167.235.1.185:9040 provided error=failed to parse multiaddr "lighthouse:bootnode_pk2:167.235.1.185:9040": must begin with /` removed this line from config - *check if should add this back in alternative format*

TODO:
- Fix prysm `ERROR execution: Unable to retrieve proof-of-stake genesis block data error=HeaderByHash, hash=0xc3b8e38f0cc3c636ba882820120975c4e197532448aaa3f25fc7d8d6cda0e281: not found`
- Share prysm updates
- Create prysm github issue
- Fix geth `WARN [04-24|15:15:01.648] Served engine_newPayloadV4               conn=127.0.0.1:64886 reqid=5 duration="114.736µs" err="Unsupported fork" errdata="{\"err\":\"newPayloadV4 must only be called for prague payloads\"}"`
- Update ephemery [status table](https://github.com/ephemery-testnet/ephemery-resources/blob/master/client-implementations.md)

## Resources
[Authentication](https://www.offchainlabs.com/prysm/docs/execution-node/authentication)
[Glory's notes](https://hackmd.io/@gconnect/BJVMDpX6R)
[Teku reset - merged](https://github.com/Consensys/teku/issues/8589)
[Besu restet - open](https://github.com/hyperledger/besu/issues/8180)