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
3240044f
Commit
3240044f
authored
May 29, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata test sh
parent
c98d25d0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
docker-compose.sh
build/docker-compose.sh
+2
-2
chain33.toml
chain33.toml
+1
-0
testcase.sh
plugin/dapp/x2ethereum/cmd/build/testcase.sh
+1
-1
chain33_test.go
...dapp/x2ethereum/ebrelayer/relayer/chain33/chain33_test.go
+1
-1
publicTest.sh
plugin/dapp/x2ethereum/testsh/publicTest.sh
+3
-0
No files found.
build/docker-compose.sh
View file @
3240044f
...
...
@@ -73,7 +73,6 @@ echo "CLI=$CLI"
####################
function
base_init
()
{
# update test environment
sed
-i
$sedfix
's/^Title.*/Title="local"/g'
chain33.toml
sed
-i
$sedfix
's/^TestNet=.*/TestNet=true/g'
chain33.toml
...
...
@@ -116,8 +115,9 @@ function base_init() {
sed
-i
$sedfix
's/^useBalance=.*/useBalance=true/g'
chain33.toml
sed
-i
$sedfix
's/^total="16htvcBNS.*/total="1Q9sQwothzM1gKSzkVZ8Dt1tqKX1uzSagx"/g'
chain33.toml
if
[
"
$DAPP
"
==
"x2
E
thereum"
]
;
then
if
[
"
$DAPP
"
==
"x2
e
thereum"
]
;
then
sed
-i
$sedfix
's/^enableReduceLocaldb=.*/enableReduceLocaldb=false/g'
chain33.toml
sed
-i
$sedfix
's/^enablePushSubscribe=.*/enablePushSubscribe=true/g'
chain33.toml
fi
}
...
...
chain33.toml
View file @
3240044f
...
...
@@ -42,6 +42,7 @@ enableTxQuickIndex=true
enableReExecLocal
=
true
# 使能精简localdb
enableReduceLocaldb
=
true
enablePushSubscribe
=
false
[p2p]
# p2p类型
...
...
plugin/dapp/x2ethereum/cmd/build/testcase.sh
View file @
3240044f
...
...
@@ -11,7 +11,7 @@ function x2ethereum() {
elif
[
"
${
2
}
"
==
"config"
]
;
then
return
elif
[
"
${
2
}
"
==
"test"
]
;
then
echo
"========================== x2
E
thereum test =========================="
echo
"========================== x2
e
thereum test =========================="
set
+e
set
-x
AllRelayerMainTest 1
...
...
plugin/dapp/x2ethereum/ebrelayer/relayer/chain33/chain33_test.go
View file @
3240044f
...
...
@@ -200,7 +200,7 @@ func (r *suiteChain33Relayer) deployContracts() {
}
func
(
r
*
suiteChain33Relayer
)
syncProc
(
syncCfg
*
ebTypes
.
SyncTxReceiptConfig
)
{
var
ret
=
types
.
ReplySub
TxReceipt
{
IsOk
:
true
}
var
ret
=
types
.
ReplySub
scribePush
{
IsOk
:
true
}
var
he
=
types
.
Header
{
Height
:
10000
}
mockapi
:=
&
mocks
.
QueueProtocolAPI
{}
...
...
plugin/dapp/x2ethereum/testsh/publicTest.sh
View file @
3240044f
...
...
@@ -349,6 +349,9 @@ function updata_relayer_toml() {
sed
-i
's/EthMaturityDegree=10/'
EthMaturityDegree
=
"
${
maturityDegree
}
"
'/g'
"
${
file
}
"
sed
-i
's/maturityDegree=10/'
maturityDegree
=
"
${
maturityDegree
}
"
'/g'
"
${
file
}
"
sed
-i
's/^EthBlockFetchPeriod=.*/EthBlockFetchPeriod=500/g'
"
${
file
}
"
sed
-i
's/^fetchHeightPeriodMs=.*/fetchHeightPeriodMs=500/g'
"
${
file
}
"
#sed -i 's/#BridgeRegistry=\"0x40BFE5eD039A9a2Eb42ece2E2CA431bFa7Cf4c42\"/BridgeRegistry=\"'${BridgeRegistry}'\"/g' "../build/relayer.toml"
#sed -i 's/192.168.64.2/'${chain33Host}'/g' "../build/relayer.toml"
#sed -i 's/192.168.3.156/'${pushHost}'/g' "../build/relayer.toml"
...
...
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