Skip to content

Commit 06f5bb4

Browse files
authored
Merge pull request starcoinorg#191 from starcoinorg/fix_import_script
Fix import script
2 parents e7bdaa2 + 7c52cab commit 06f5bb4

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: export import block
33
weight: 4
44
---
55
`starcoin_db_exporter` command can export and offline import net main, barnard, halley, proxima block
6-
offline import block also can use import_net_block.sh
6+
offline import block also can use import_block.sh
77

88
<!--more-->
99

@@ -47,15 +47,15 @@ OPTIONS:
4747
-o, --to-path <to-path> starcoin node db path. like ~/.starcoin/main
4848
```
4949

50-
#### use `import_net_block.sh` offline import
51-
`starcoin_db_exporter`and`import_net_block.sh` under same path
52-
`import_net_block.sh $1 $2`
50+
#### use `import_block.sh` offline import
51+
`starcoin_db_exporter`and`import_block.sh` under same path
52+
`import_block.sh $1 $2`
5353
$1 is net node like main, barnard
5454
$2 is storage dir like ~/.starcoin/main, ~/.starcoin/barnard
5555

5656
run cmd
5757
```shell
58-
./import_net_block.sh barnard ~/.starcoin/barnard
58+
./import_block.sh barnard ~/.starcoin/barnard
5959
```
6060

6161
this cmd can skip block already executed

content/developer/cli/import_net_block.zh.md renamed to content/developer/cli/import_block.zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 4
44
---
55
`starcoin_db_exporter`命令行工具提供了离线导出导入
66
main,barnard,halley, proxima网络的区块
7-
离线导入区块也可以使用import_net_block.sh脚本
7+
离线导入区块也可以使用import_block.sh脚本
88

99
<!--more-->
1010

@@ -47,15 +47,15 @@ OPTIONS:
4747
-n, --net <net> Chain Network
4848
-o, --to-path <to-path> starcoin node db path. like ~/.starcoin/main
4949
```
50-
#### 使用`import_net_block.sh`离线导入
51-
`starcoin_db_exporter``import_net_block.sh`在同一路径下
52-
`import_net_block.sh $1 $2`
50+
#### 使用`import_block.sh`离线导入
51+
`starcoin_db_exporter``import_block.sh`在同一路径下
52+
`import_block.sh $1 $2`
5353
$1是节点名称可以是main, barnard
5454
$2是数据存储的地方,可以使用~/.starcoin/main, ~/.starcoin/barnard
5555

5656
执行命令
5757
```shell
58-
./import_net_block.sh barnard ~/.starcoin/barnard
58+
./import_block.sh barnard ~/.starcoin/barnard
5959
```
6060

6161
这个命令会跳过已经有的区块,每获取一个区块更新下进度,中断脚本后会从下一个高度执行

content/developer/cli/import_snapshot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ OPTIONS:
6464

6565
#### use `import_snapshot.sh` offline import snapshot
6666
`starcoin_db_exporter`and`import_snapshot.sh` under same path
67-
`import_net_block.sh $1 $2`
67+
`import_snapshot.sh $1 $2 $3`
6868
$1 is net node like main, barnard
6969
$2 is import_snapshot.sh download snapshot which dir
7070
$3 is storage dir like ~/.starcoin/main, ~/.starcoin/barnard

content/developer/cli/import_snapshot.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 4
44
---
55
`starcoin_db_exporter`命令行工具提供了离线导出导入
66
main,barnard,halley, proxima网络的快照功能,这样可以快速的搭建区块链网络
7-
离线导入快照也可以使用import_net_block.sh脚本
7+
离线导入快照也可以使用import_snapshot.sh脚本
88

99
<!--more-->
1010

@@ -66,7 +66,7 @@ OPTIONS:
6666
```
6767
#### 使用`import_snapshot.sh`离线导入
6868
`starcoin_db_exporter``import_snapshot.sh`在同一路径下
69-
`import_net_block.sh $1 $2 `
69+
`import_snapshot.sh $1 $2 $3`
7070
$1是网络名称可以是main, barnard
7171
$2是指定import_snapshot.sh下载快照路径
7272
$3是数据存储的地方,可以使用~/.starcoin/main, ~/.starcoin/barnard

0 commit comments

Comments
 (0)