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
16337c7a
Commit
16337c7a
authored
Dec 02, 2021
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
726fbf3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
ethereum.go
plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go
+5
-6
cli.go
plugin/dapp/dex/boss/cli.go
+2
-2
No files found.
plugin/dapp/cross2eth/ebrelayer/relayer/ethereum/ethereum.go
View file @
16337c7a
...
...
@@ -14,6 +14,7 @@ import (
"crypto/ecdsa"
"errors"
"fmt"
dexDeploy
"github.com/33cn/plugin/plugin/dapp/dex/boss/deploy/ethereum"
"math/big"
"regexp"
"sync"
...
...
@@ -129,7 +130,8 @@ func StartEthereumRelayer(startPara *EthereumStartPara) *Relayer4Ethereum {
// Start clientSpec with infura ropsten provider
relayerLog
.
Info
(
"Relayer4Ethereum proc"
,
"Started Ethereum websocket with provider:"
,
ethRelayer
.
provider
)
client
,
err
:=
ethtxs
.
SetupWebsocketEthClient
(
ethRelayer
.
provider
)
//client, err := ethtxs.SetupWebsocketEthClient(ethRelayer.provider)
client
,
err
:=
dexDeploy
.
SetupWebsocketEthClient
(
ethRelayer
.
provider
)
if
err
!=
nil
{
panic
(
err
)
}
...
...
@@ -139,12 +141,9 @@ func StartEthereumRelayer(startPara *EthereumStartPara) *Relayer4Ethereum {
clientChainID
,
err
:=
client
.
NetworkID
(
ctx
)
if
err
!=
nil
{
errinfo
:=
fmt
.
Sprintf
(
"Failed to get NetworkID due to:%s"
,
err
.
Error
())
//panic(errinfo)
relayerLog
.
Info
(
"QM_NetworkID"
,
"errinfo :"
,
errinfo
)
ethRelayer
.
clientChainID
=
big
.
NewInt
(
97
)
}
else
{
ethRelayer
.
clientChainID
=
clientChainID
panic
(
errinfo
)
}
ethRelayer
.
clientChainID
=
clientChainID
ethRelayer
.
totalTxRelayFromChain33
=
ethRelayer
.
getTotalTxAmount2Eth
()
if
0
==
ethRelayer
.
totalTxRelayFromChain33
{
statics
:=
&
ebTypes
.
Ethereum2Chain33Statics
{}
...
...
plugin/dapp/dex/boss/cli.go
View file @
16337c7a
...
...
@@ -21,8 +21,8 @@ func main() {
buildFlags
.
RPCAddr4Chain33
=
testTLS
(
buildFlags
.
RPCAddr4Chain33
)
if
buildFlags
.
RPCAddr4Ethereum
==
""
{
//
buildFlags.RPCAddr4Ethereum = "https://data-seed-prebsc-1-s1.binance.org:8545"
buildFlags
.
RPCAddr4Ethereum
=
"wss://ws-testnet.huobichain.com"
buildFlags
.
RPCAddr4Ethereum
=
"https://data-seed-prebsc-1-s1.binance.org:8545"
//
buildFlags.RPCAddr4Ethereum = "wss://ws-testnet.huobichain.com"
}
rootCmd
:=
RootCmd
()
...
...
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