# 参与区块验证

## 前提

1. 合适的硬件配置和网络环境。
2. 拥有大于最低质押数量DX的账户。

### 硬件配置

#### 最低

```
8core
16g
ssd iops>5k
network performance > 10 Gigabit
```

#### 推荐

```
16core
32g
ssd iops>5k
network-performance > 25 Gigabit
```

### 网络和端口

* 公网IP
* 端口开放 TCP/UDP : 32668

## 获取可执行节点程序

1. [从源代码中编译](/dxchain-wiki/zhong-wen-she-qu/kai-fa-zhe-wen-dang/kai-fa-zhe/bian-yi-he-yun-xing.md)
2. 从[Github](https://github.com/DxChainNetwork/dxc/releases)下载最新发布的可执行程序

## 开启节点

[开启您的节点](/dxchain-wiki/zhong-wen-she-qu/kai-fa-zhe-wen-dang/kai-fa-zhe/bian-yi-he-yun-xing.md#yun-hang)，确保数据已同步到最新区块高度。<mark style="color:red;">为了资产安全，验证节点不建议开启</mark> <mark style="color:red;"></mark><mark style="color:red;">`--http`</mark> <mark style="color:red;"></mark><mark style="color:red;">服务。</mark>

## 新建账户

进入工作目录 `/directory/of/geth`

```shell
$ ./geth account new --datadir ./data
```

或者

1. 打开控制台 `./geth attach --datadir ./data`
2. 新建账户 `personal.newAccount('password')`

新建账户的`keystore`文件位于 `/directory/of/geth` 目录下的 `data/keystore`文件夹下。

## 开启挖矿

1. 打开控制台 `./geth attach --datadir ./data`
2. 解锁矿工账户 `personal.unlockAccount("miner address","password",0)`
3. 开启挖矿 `miner.start()`

## 申请节点

1. 确保上述矿工地址账户有足够数量的DX用以申请节点。
2. 前往 <https://staking.dxchain.com/apply> 发起节点申请。
3. 申请通过之后，下一周期更新时将参与节点选举。当选之后，节点将自行按照顺序进行出块，期间请保持节点正常挖矿状态。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dxchain.gitbook.io/dxchain-wiki/zhong-wen-she-qu/kai-fa-zhe-wen-dang/can-yu-qu-kuai-yan-zheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
