You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the `finalized_headers/` directory is present, the node automatically verifies the checkpoint on startup by calling `verify_checkpoint_chain` with the genesis state, the loaded headers, and the checkpoint. This allows the node to trustlessly validate a checkpoint received from an untrusted source.
189
+
When the `finalized_headers/` directory is present, the node loads the checkpoint artifacts from disk first, then verifies the checkpoint during startup after loading genesis by calling `verify_checkpoint_chain` with the genesis state, the loaded headers, and the checkpoint. This allows the node to trustlessly validate a checkpoint received from an untrusted source.
189
190
190
191
If the `finalized_headers/` directory is absent, verification is skipped and the node trusts the checkpoint as-is.
@@ -182,4 +184,4 @@ let provider = ProviderBuilder::default().connect_ipc(ipc).await?;
182
184
183
185
**Logging**: Summit uses the `tracing` crate for logging
184
186
185
-
**Health Checks**: Summit exposes an HTTP API bound to port 3030 by default. This API includes the method `GET /health`which will reply with `"OK"` if you are lucky. While this API is fairly minimal at the time of this writing, we would not be surprised this bloats up in the future
187
+
**Health Checks**: Summit exposes a JSON-RPC API bound to port 3030 by default. The health check is the `health`RPC method, which currently returns `"Ok"`.
Copy file name to clipboardExpand all lines: docs/running-local-network.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ Easiest way to run a network locally is to use the testnet bin. This will start
4
4
5
5
## Steps to do this:
6
6
7
-
1. First make sure you have seismic-rethinstalled and in your PATH
7
+
1. First make sure you have a `reth` binary installed and in your `PATH`. For Seismic development, that typically means building `seismic-reth` and placing the resulting binary in your path as `reth`.
-move the seismic bin somewhere in your path under the name reth
11
+
-Move the built binary somewhere in your path under the name `reth`
12
12
```bash
13
13
mv target/release/seismic-reth ~/.cargo/bin/reth
14
14
```
15
15
16
-
2. Then run cd into this repo and run `cargo run --bin testnet` at root of this repo. This will start 4 nodes in that terminal
16
+
2. Then `cd` into this repo and run `cargo run --bin testnet` at the repo root. This will start 4 Summit nodes and 4 Reth nodes in that terminal.
17
17
18
-
3. You can reach the reth rpc at localhost:8545 (ports for the other 3 nodes ar 8546, 8547, 8548)
18
+
3. You can reach the Reth RPC endpoints on the ports printed by the testnet binary. By default they are `localhost:8545`, `localhost:8546`, `localhost:8547`, and `localhost:8548`.
19
19
20
-
4. To start the network fresh run this from the root of this repo
20
+
4. To reset the local testnet data and start fresh, run this from the repo root:
21
21
```bash
22
22
cd testnet && ./reset.sh &&cd ..
23
23
```
@@ -26,8 +26,8 @@ Easiest way to run a network locally is to use the testnet bin. This will start
26
26
27
27
## Running distributed
28
28
29
-
To run a fresh network on multiple systems you should install summit on each server and then run `cargo run -- keys generate && cargo run -- keys show` to get the keys for each node.
29
+
To run a fresh network on multiple systems you should install Summit on each server and then run `cargo run -- keys generate` and `cargo run -- keys show` to get the keys for each node.
30
30
31
-
You will then recreate the example_genesis.toml file to have the keys and ips of all your nodes.
31
+
You will then recreate the example_genesis.toml file to have the keys and IPs of all your nodes.
32
32
33
-
After the genesis file is in place you would just start seismic-reth with the `--mock-enclave` flag and then start summit on each and the network should start
33
+
After the genesis file is in place you would start your `reth`/`seismic-reth` instance and then start Summit on each host with the matching genesis configuration.
Copy file name to clipboardExpand all lines: docs/staking-and-participating.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,16 @@ The changes were made to accommodate every consensus node having 2 keys to parti
11
11
## Becoming a Validator
12
12
13
13
1. Deploy the Summit image on a TDX VM. This will start seismic-reth and Summit as well as the enclave.
14
-
2. The deposit function requires a signature with the node's keys. Since they are only available from within the secure enclave, an RPC endpoint is exposed to receive the signed calldata that includes the signature from the node at default port 3030:
14
+
2. The deposit function requires a signature with the node's keys. Since they are only available from within the secure enclave, the node exposes a JSON-RPC method on port 3030 by default to produce the signed deposit calldata:
The `amount` should be the staking amount and `address` should be your Ethereum address you want to be able to withdraw to.
23
+
The `amount` should be the staking amount and `address` should be the Ethereum address you want to be able to withdraw to.
19
24
3. Send a signed transaction to the deposit contract with the calldata from the previous step, along with a value equal to the amount being staked (contract address: `0x00000000219ab540356cBB839Cbe05303d7705Fa`, same as Ethereum).
20
25
4. Download the latest checkpoint and load it into the node.
21
26
5. Keep your node running and it will start participating in the next epoch.
0 commit comments