Skip to content

Commit

Permalink
feat: add fairground and validators testnet to restart data-node from…
Browse files Browse the repository at this point in the history
… network history
  • Loading branch information
daniel1302 committed Jun 18, 2023
1 parent f3083cb commit fd41bfa
Showing 1 changed file with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: How to restart data-node from the network history
sidebar_label: Restart data-node from the network history
hide_title: false
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';


## Why would you start/restart your data node from network history?
Expand Down Expand Up @@ -64,6 +66,9 @@ vega tm unsafe_reset_all --home <tendermint-home>

The config is located in the `<vega_home>/config/data-node/config.toml`. Update the following parameters in your `config.toml` file for the data node:


<Tabs groupId="network">
<TabItem value="mainnet" label="Mainnet">
```toml
AutoInitialiseFromNetworkHistory = true

Expand All @@ -79,11 +84,21 @@ AutoInitialiseFromNetworkHistory = true
[NetworkHistory.Initialise]
TimeOut = "4h"
```
</TabItem>
<TabItem value="fairground" label="Fairground">
TBD for fairground
</TabItem>
<TabItem value="validators-testnet" label="Validator testnet">
TBD for validators-testnet
</TabItem>
</Tabs>

#### b. The vega core config

The config is located in the `<vega_home>/config/node/config.toml`. Update the following parameters in your `config.toml` file for the vega core:

<Tabs groupId="network">
<TabItem value="mainnet" label="Mainnet">
```toml
[Snapshot]
StartHeight = -1
Expand All @@ -92,6 +107,14 @@ The config is located in the `<vega_home>/config/node/config.toml`. Update the f
[Broker.Socket]
DialTimeout = "4h"
```
</TabItem>
<TabItem value="fairground" label="Fairground">
TBD for fairground
</TabItem>
<TabItem value="validators-testnet" label="Validator testnet">
TBD for validators-testnet
</TabItem>
</Tabs>

#### c. Tendermint config

Expand All @@ -106,6 +129,8 @@ Then select one of the latest pair for block height and hash

Once you have thrusted block, you can update the following parameters in the `<tendermint_home>/config/config.toml` file:

<Tabs groupId="network">
<TabItem value="mainnet" label="Mainnet">
```toml
[statesync]
enable = true
Expand All @@ -127,6 +152,14 @@ rpc_servers = "api0.vega.community:26657,api1.vega.community:26657,api2.vega.com
trust_height = 3040600
trust_hash = "b4b500d8fc84cce3a42b141193db7ba23ff03cc80b70cc817f6536582ebd5eda"
```
</TabItem>
<TabItem value="fairground" label="Fairground">
TBD for fairground
</TabItem>
<TabItem value="validators-testnet" label="Validator testnet">
TBD for validators-testnet
</TabItem>
</Tabs>

### 4. Start your node

Expand Down Expand Up @@ -181,4 +214,4 @@ Open the `<vega_home>/config/data-node/config.toml` file and update the followin

:::info
Do not restart your node. Just update config to avoid issues in the future restarts.
:::
:::

0 comments on commit fd41bfa

Please sign in to comment.