Skip to content

Commit

Permalink
Auto format doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ytvchsy authored Oct 12, 2024
1 parent a3cc6c0 commit f8c79ec
Show file tree
Hide file tree
Showing 23 changed files with 131 additions and 144 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const enNavbar = navbar([
"staking-dbc-and-voting",
"fast-track",
"common-questions",
"dbc-chain-upgrade",
"dbc-chain-upgrade",
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/navbar/kr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const krNavbar = navbar([
"staking-dbc-and-voting",
"fast-track",
"common-questions",
"dbc-chain-upgrade",
"dbc-chain-upgrade",
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const zhNavbar = navbar([
"fast-track",
"council-proposal",
"common-questions",
"dbc-chain-upgrade",
"dbc-chain-upgrade",
],
},
{
Expand Down
25 changes: 13 additions & 12 deletions docs/en/install-update-dbc-node/dbc-client-api/http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,9 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal
],
"additional": {},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down Expand Up @@ -1030,6 +1030,7 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal
```

When the "peer_nodes_list" array in the request body contains the node_id of the bare metal node, you can also query the specified bare metal server based on the `uuid` entered when adding the bare metal server.

- Use `http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/<node_id>` to query related information about the bare metal server with the specified `node_id`.
- Use `http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/<uuid>` to query related information about the bare metal server with the specified `uuid`.

Expand Down Expand Up @@ -1077,9 +1078,9 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/add
]
},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down Expand Up @@ -1125,9 +1126,9 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/delete
]
},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down Expand Up @@ -1172,9 +1173,9 @@ The node_id in the URL is the node_id corresponding to the bare metal server. Pl
"ipmi_port": 623
},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/add
]
},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down Expand Up @@ -120,9 +120,9 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal
],
"additional": {},
// Generated by the node_id and node_private_key of the bare metal node
"wallet":"ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce":"5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign":"3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
"wallet": "ccd9a2118ba3c95cd458302601f15281edc39d72dcf11a07527893d97ac1a573",
"nonce": "5tYLiAF9vVP8bRqSfV9DfZnizsDNY7dNeEWrSUAY8f1LKiZqBu8zaVs",
"sign": "3c680ba745af6695981fe2b30aedf6861749f570d9a6fe949930caf4613c225d4a674c33ec3d4af26c20caf871dd0f3a7cb4e0c045f12c211a345781054fc282"
}
```

Expand Down Expand Up @@ -152,6 +152,7 @@ http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal
```

When the "peer_nodes_list" array in the request body contains the node_id of the bare metal node, you can also query the specified bare metal server based on the `uuid` entered when adding the bare metal server.

- Use `http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/<node_id>` to query related information about the bare metal server with the specified `node_id`.
- Use `http://{{dbc_client_ip}}:{{dbc_client_port}}/api/v1/bare_metal/<uuid>` to query related information about the bare metal server with the specified `uuid`.

Expand Down Expand Up @@ -215,6 +216,7 @@ In addition, you need to modify `http_ip=127.0.0.1` in the configuration file `d
When the GPU machine and the bare metal node of dbc are in the same network, you can directly use the HTTP service of the bare metal node to get/set device information, and the request at this time does not need `session_id` and `session_id_sign` parameters. When the renter queries the device information through the HTTP service of the client node, it must have `session_id` and `session_id_sign` parameters.

The specific usage process is as follows:

1. After the GPU machine is turned on, the service program of the cloud Internet cafe calls the DeepLink device information setting interface of the bare metal node immediately.

- request method:POST
Expand All @@ -238,9 +240,9 @@ http://{{dbc_baremetal_ip}}:{{dbc_baremetal_port}}/api/v1/deeplink/set
"device_password": "aAbBcC"
},
// Generated by the node_id and node_private_key of the GPU machine
"wallet":"fcf2cd8b99958606d260ca00c5ac00c88c242bcf8eb38e7cc3f29e9719a73f39",
"nonce":"3bxrsXVW2z2ELH7G9RvF7BMUQkEGkBfQhd8YD5r8somf3UdNWcEYAFa",
"sign":"e096764ac7462220bc9b8fa223b81cfb9a501eaea9ea355c0d561b6fe61cb729abed61e5d8488178856e198d9cde51c37e2aac8886cb5e7b674591b1eca8108f"
"wallet": "fcf2cd8b99958606d260ca00c5ac00c88c242bcf8eb38e7cc3f29e9719a73f39",
"nonce": "3bxrsXVW2z2ELH7G9RvF7BMUQkEGkBfQhd8YD5r8somf3UdNWcEYAFa",
"sign": "e096764ac7462220bc9b8fa223b81cfb9a501eaea9ea355c0d561b6fe61cb729abed61e5d8488178856e198d9cde51c37e2aac8886cb5e7b674591b1eca8108f"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd
- virsh connect qemu+tcp://localhost:16509/system
- If there is no output error, it means the startup is successful


## Install the DBC node program

- **Note**: need to switch to dbc user installation
Expand Down Expand Up @@ -300,12 +299,12 @@ https://github.com/DeepBrainChain/DBC-DOC/blob/master/chain_ops/machine_online_e
- Set the miner's monitoring server address:add configuration "miner_monitor_server=ip:port" in conf/core.conf
- Set the renter's monitoring server address:https://deepbrainchain.github.io/DBC-Wiki/en/install-and-update-dbc/dbc-monitor/http-monitor-api.html
## Listen to DBC broadcast
## Listen to DBC broadcast
> Miners can start the virtual machine for their own use when the machine is idle, but they need to shut down the virtual machine in use within 10 seconds when the user rents it, so that they will not be reported and punished by the user. The UDP broadcast related messages are as follows:
+ The dbc node will broadcast the device node_id and its corresponding status in the intranet
+ Broadcast address: UDP broadcast 255.255.255.255 port 55555
+ Broadcast content: { "node_id": "xxx", "status": "renting" }
{ "node_id": "xxx", "status": "empty" }
+ Encryption method: base64 encryption
- The dbc node will broadcast the device node_id and its corresponding status in the intranet
- Broadcast address: UDP broadcast 255.255.255.255 port 55555
- Broadcast content: { "node_id": "xxx", "status": "renting" }
{ "node_id": "xxx", "status": "empty" }
- Encryption method: base64 encryption
5 changes: 3 additions & 2 deletions docs/en/staking-model/dbc-chain-upgrade.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# DBC-Chain verification node upgrade

# DBC-Chain verification node upgrade

> Note:In order to maintain the stability of block production and prevent the penalty mechanism from being triggered due to excessive node offline during the upgrade process, it is recommended that you stop participating in the super node election before upgrading the node, and then continue to participate in the election after the upgrade is completed.
> Note: It is best to use ubuntu22.04 and above for the system
## 1. Get the new dbc-chain binary

### Method 1: Use precompiled version
Expand Down Expand Up @@ -86,6 +86,7 @@ tail -f dbc_node.log
```
## 4. Use script to assist automatic restart
```shell
cat <<EOF > start.sh
#!/usr/bin/env sh
Expand Down
1 change: 0 additions & 1 deletion docs/en/staking-model/generate-new-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Secret phrase `final huge obscure action vacuum public banner autumn remove clos

> Install `subkey` and other flags, please reference:[https://substrate.dev/docs/en/knowledgebase/integrate/subkey](https://substrate.dev/docs/en/knowledgebase/integrate/subkey)

## How to convert `secret phrase` to `private key`

Some operations on the chain sometimes need to be signed with a private key. When the mnemonic phrase is saved, you can use subkey to convert the mnemonic phrase into a private key.
Expand Down
2 changes: 1 addition & 1 deletion docs/en/staking-model/run-archive-node_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cargo build --release
> ```
>
> When encountering the phenomenon of 0 peers during synchronization, you need to specify bootnodes for synchronization. Old users can find it by querying the previous synchronization node logs. New users can try to specify
> ```` --bootnodes /ip4/122.99.183.53/tcp/3308/p2p/12D3KooWDx4pgzT2RAPF12QkmiBZy6BUsTtPt7JgiYxgFm6Z5Hc5````
> ` --bootnodes /ip4/122.99.183.53/tcp/3308/p2p/12D3KooWDx4pgzT2RAPF12QkmiBZy6BUsTtPt7JgiYxgFm6Z5Hc5`
## 3. After synchronization is completed, upgrade to 3.0 synchronization node
Expand Down
54 changes: 21 additions & 33 deletions docs/en/staking-model/网吧配置.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ pcie关闭
debug_wnd=1
network
encode
encode
max越大有问题 10000以上问题大 Nvidia主频起不来
参数capture speed 跟画面复杂度有关
ipmi 调度请求 用户开关机
ipmi 调度请求 用户开关机
```

## 颜色问题
Expand All @@ -75,7 +75,7 @@ cmd color 13 14
增加
%binpath% local.black
[black]
list=valorant.exe
list=valorant.exe
设置两端鼠标加速度一致
Expand All @@ -87,14 +87,8 @@ list=valorant.exe
增加多通道,
```





# DBC Runtime 274 更新



**DBC Mainnet Update 说明**

- Github Release:https://github.com/DeepBrainChain/DeepBrainChain-MainChain/releases/tag/v3.2
Expand All @@ -107,18 +101,18 @@ list=valorant.exe

2.新版本引入了多项重要特性和改进:

+ StorageStreamIter:一种新的特性,使得与存储值的数据处理更加高效
+ Ensure-ops系列方法:这些方法提供了安全的算术操作,通过traits暴露,可用于pallet Config类型
+ 非活动资金追踪改进:改进了对非活动 资金的追踪,包含迁移逻辑以确保正确追踪非活动发行量
+ 实现`chainHead` RPC API:新的RPC API方法,用于更好地跟踪和查询区块
+ 运行时改进:包括多项低影响改进和中等优先级变更,如部署调度器议程清理迁移和可选择的运行时升级检查
+ XCM版本3:该版本允许桥接、跨链锁定、NFT、条件和上下文跟踪等新特性
- StorageStreamIter:一种新的特性,使得与存储值的数据处理更加高效
- Ensure-ops系列方法:这些方法提供了安全的算术操作,通过traits暴露,可用于pallet Config类型
- 非活动资金追踪改进:改进了对非活动 资金的追踪,包含迁移逻辑以确保正确追踪非活动发行量
- 实现`chainHead` RPC API:新的RPC API方法,用于更好地跟踪和查询区块
- 运行时改进:包括多项低影响改进和中等优先级变更,如部署调度器议程清理迁移和可选择的运行时升级检查
- XCM版本3:该版本允许桥接、跨链锁定、NFT、条件和上下文跟踪等新特性

3.节点和模块开发:
3.节点和模块开发:

+ 支持NFT功能,包括NFT有效期、激活时间等参数的优化;
- 支持NFT功能,包括NFT有效期、激活时间等参数的优化;

4.支持自由租模式,矿工上线机器无需质押DBC,但是也无DBC在线奖励,可以随时撤销机器无惩罚,租金的5%被销毁,自由租模式适合闲置机器临时出租的场景
4.支持自由租模式,矿工上线机器无需质押DBC,但是也无DBC在线奖励,可以随时撤销机器无惩罚,租金的5%被销毁,自由租模式适合闲置机器临时出租的场景

**更新计划:**

Expand All @@ -142,16 +136,16 @@ list=valorant.exe

2. The new version introduces a number of important features and improvements:

+ StorageStreamIter: a new feature that makes data processing with stored values more efficient
+ Ensure-ops family of methods: These methods provide safe arithmetic operations, exposed through traits, available for pallet Config types
+ Inactive funds tracking improvements: Improved tracking of inactive funds, including migration logic to ensure inactive issuance is tracked correctly
+ Implement `chainHead` RPC API: new RPC API method for better tracking and querying blocks
+ Runtime improvements: includes several low-impact improvements and medium-priority changes, such as deployment scheduler agenda cleanup migrations and optional runtime upgrade checks
+ XCM version 3: This version allows new features such as bridging, cross-chain locking, NFT, conditional and contextual tracking
- StorageStreamIter: a new feature that makes data processing with stored values more efficient
- Ensure-ops family of methods: These methods provide safe arithmetic operations, exposed through traits, available for pallet Config types
- Inactive funds tracking improvements: Improved tracking of inactive funds, including migration logic to ensure inactive issuance is tracked correctly
- Implement `chainHead` RPC API: new RPC API method for better tracking and querying blocks
- Runtime improvements: includes several low-impact improvements and medium-priority changes, such as deployment scheduler agenda cleanup migrations and optional runtime upgrade checks
- XCM version 3: This version allows new features such as bridging, cross-chain locking, NFT, conditional and contextual tracking

3. Node and module development:

+ Support NFT function, including optimization of NFT validity period, activation time and other parameters;
- Support NFT function, including optimization of NFT validity period, activation time and other parameters;

4. Support the free rental model. Miners do not need to pledge DBC when putting their machines online, but there is no DBC online reward. The machine can be revoked at any time without penalty. 5% of the rent will be destroyed. The free rental model is suitable for temporary rental of idle machines.

Expand All @@ -165,14 +159,9 @@ This update is planned to be carried out through a rapid referendum initiated by
4. The technical committee votes and after passing
5. The referendum will be held in accordance with the time parameters set by the technical committee

'TP-Link_0CB3_5G' {length = 15, bytes = 0x54502d4c696e6b5f304342335f3547}, bssid=0c:80:63:bb:0c:b2, channel=[44, width=80], cc=(null), type=11n, rssi=-65, rsn=(null), wpa=(null), wep=no, ibss=no, ph=no, swap=no, hs20=no, airport=no,




'TP-Link_0CB3_5G' {length = 15, bytes = 0x54502d4c696e6b5f304342335f3547}, bssid=0c:80:63:bb:0c:b2, channel=[44, width=80], cc=(null), type=11n, rssi=-65, rsn=(null), wpa=(null), wep=no, ibss=no, ph=no, swap=no, hs20=no, airport=no,

'KodFlex_5G' {length = 10, bytes = 0x4b6f64466c65785f3547}, bssid=e8:01:8d:6b:f7:04, channel=[157, width=80], cc=(null), type=11n, rssi=-62, rsn=(null), wpa=(null), wep=no, ibss=no, ph=no, swap=no, hs20=no, airport=no,

'KodFlex_5G' {length = 10, bytes = 0x4b6f64466c65785f3547}, bssid=e8:01:8d:6b:f7:04, channel=[157, width=80], cc=(null), type=11n, rssi=-62, rsn=(null), wpa=(null), wep=no, ibss=no, ph=no, swap=no, hs20=no, airport=no,

```txt
1cf25ef382023f9af62bb00c40f3225cd85b049f9e73b64c3eeddbecf9a83b47
Expand Down Expand Up @@ -296,4 +285,3 @@ This update is planned to be carried out through a rapid referendum initiated by
f624ed5b5bc7c5145c7a404f53600175bf3d9e3a0f8277efeb5d4fef98ef1021
fa23f2d040d12992e7f5f5431963d9bf04c15d0bb5e4f75135d63d57da38025b
```

Loading

0 comments on commit f8c79ec

Please sign in to comment.