Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
4fafb1c1
Commit
4fafb1c1
authored
Dec 31, 2021
by
QM
Committed by
vipwzw
Jan 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perfect cross2eth doc
parent
e849a0af
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
deploy_contract.md
plugin/dapp/cross2eth/ebrelayer/doc/deploy_contract.md
+0
-0
start_ebrelayer.md
plugin/dapp/cross2eth/ebrelayer/doc/start_ebrelayer.md
+18
-6
No files found.
plugin/dapp/cross2eth/ebrelayer/doc/deploy_contract.md
0 → 100644
View file @
4fafb1c1
This diff is collapsed.
Click to expand it.
plugin/dapp/cross2eth/ebrelayer/doc/
deploy
_ebrelayer.md
→
plugin/dapp/cross2eth/ebrelayer/doc/
start
_ebrelayer.md
View file @
4fafb1c1
## 启动 relayer
***
[
TOC
]
### 启动 relayer A
#### 完成 ethererum 和 chain33 相关合约的部署
得到 BridgeRegistryOnChain33, BridgeRegistryOnEth, multisignChain33Addr, multisignEthAddr 4个合约地址。
#### 修改 relayer.toml 配置文件
|字段|说明|
|----|----|
...
...
@@ -40,6 +41,7 @@
```
#### 运行持续启动 relayer
编写脚步 startRelyer.sh
```
shell
#!/usr/bin/env bash
# shellcheck disable=SC2050
...
...
@@ -61,10 +63,10 @@ while [ 1 == 1 ]; do
done
sleep
2
done
```
启动脚本
`nohup ./startRelyer.sh 2>&1 &`
***
为了安全起见建议手动调用
`./ebcli_A unlock -p 密码`
### 启动 relayer B C D
#### 修改 relayer.toml 配置文件
...
...
@@ -109,8 +111,8 @@ done
#### 设置 chain33 代理地址, 及手续费设置
```
shell
# 设置 withdraw 的手续费及每日转帐最大值
result
=
$(${
CLIP
}
ethereum cfgWithdraw
-f
1
-s
ETH
-a
100
-d
18
)
# 设置 withdraw 的手续费及每日转帐最大值
, 实时变动, 价格波动大的时候重新设置
./ebcli_A ethereum cfgWithdraw
-f
0.2
-s
ETH
-a
100
-d
18
Flags:
-a
,
--amount
float 每日最大值
...
...
@@ -119,7 +121,7 @@ Flags:
-s
,
--symbol
string symbol
# 设置 chain33 代理地址
${
Boss4xCLI
}
chain33 offline set_withdraw_proxy
-c
"
${
chain33BridgeBank
}
"
-a
"
${
chain33Validatorsp
}
"
-k
"
${
chain33DeployKey
}
"
-n
"set_withdraw_proxy:
${
chain33Validatorsp
}
"
./boss4x
chain33 offline set_withdraw_proxy
-c
"
${
chain33BridgeBank
}
"
-a
"
${
chain33Validatorsp
}
"
-k
"
${
chain33DeployKey
}
"
-n
"set_withdraw_proxy:
${
chain33Validatorsp
}
"
Flags:
-a
,
--address
string withdraw address
-c
,
--contract
string bridgebank contract address
...
...
@@ -128,3 +130,12 @@ Flags:
-n
,
--note
string transaction note info
(
optional
)
```
### 停止或升级 relayer
直接 kill
```
shell
ps
-ef
|
grep
ebrelayer
root 3661 21631 0 17:58 pts/0 00:00:00
grep
--color
=
auto ebrelayer
root 4066 4057 0 15:47 pts/0 00:00:05 ./ebrelayer
kill
4066
```
如果是用持续启动方式
`nohup ./startRelyer.sh 2>&1 &`
, 要先 kill startRelyer.sh, 再 kill ebrelayer
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment