Skip to content

Commit 6c086fc

Browse files
author
tac0turtle
committed
fix mock useage
1 parent cb25f58 commit 6c086fc

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎apps/evm/single/README.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,25 @@ The sequencer can be configured using various command-line flags. The most impor
5757
1. The sequencer must be running before starting any Full Node. You can run the EVM layer of the Full Node using `docker-compose -f docker-compose-full-node.yml` from <path_to>/execution/evm/docker.
5858
5959
2. Initialize the full node:
60+
6061
```bash
6162
./evm-single init --home ~/.evm-single-full-node
6263
```
64+
6365
3. Copy the genesis file from the sequencer node:
66+
6467
```bash
65-
cp ~/.evm-single/config/genesis.json ~/.evm-single-full-node/config/genesis.json
68+
cp ~/.evm-single/config/genesis.json ~/.evm-single-full-node/config/genesis.json
6669
```
70+
6771
4. Identify the sequencer node's P2P address from its logs. It will look similar to:
72+
6873
```
6974
1:55PM INF listening on address=/ip4/127.0.0.1/tcp/7676/p2p/12D3KooWJ1J5W7vpHuyktcvc71iuduRgb9pguY9wKMNVVPwweWPk module=main
7075
```
7176

7277
Create an environment variable with the P2P address:
78+
7379
```bash
7480
export P2P_ID="12D3KooWJbD9TQoMSSSUyfhHMmgVY3LqCjxYFz8wQ92Qa6DAqtmh"
7581
```
@@ -92,4 +98,4 @@ If you'd ever like to restart a fresh node, make sure to remove the originally c
9298
9399
```bash
94100
rm -rf ~/.evm-single-full-node
95-
```
101+
```

‎block/store_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
func setupManagerForStoreRetrieveTest(t *testing.T) (
2929
m *Manager,
3030
mockStore *mocksStore.MockStore,
31-
mockHeaderStore *extmocks.Store[*types.SignedHeader],
32-
mockDataStore *extmocks.Store[*types.Data],
31+
mockHeaderStore *extmocks.MockStore[*types.SignedHeader],
32+
mockDataStore *extmocks.MockStore[*types.Data],
3333
headerStoreCh chan struct{},
3434
dataStoreCh chan struct{},
3535
headerInCh chan NewHeaderEvent,
@@ -41,8 +41,8 @@ func setupManagerForStoreRetrieveTest(t *testing.T) (
4141

4242
// Mocks
4343
mockStore = mocksStore.NewMockStore(t)
44-
mockHeaderStore = extmocks.NewStore[*types.SignedHeader](t)
45-
mockDataStore = extmocks.NewStore[*types.Data](t)
44+
mockHeaderStore = extmocks.NewMockStore[*types.SignedHeader](t)
45+
mockDataStore = extmocks.NewMockStore[*types.Data](t)
4646

4747
// Channels (buffered to prevent deadlocks in simple test cases)
4848
headerStoreCh = make(chan struct{}, 1)

0 commit comments

Comments
 (0)