Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-chain33
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-chain33
Commits
060c3c67
Commit
060c3c67
authored
May 04, 2023
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment
parent
fe155cbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
evmxgo.go
evmxgo/evmxgo.go
+1
-0
paracross.go
paracross/paracross.go
+3
-0
No files found.
evmxgo/evmxgo.go
View file @
060c3c67
...
...
@@ -334,6 +334,7 @@ func (e *Evmxgo) pollAppChain() chan *types.Event {
burnEvent
:=
action
.
BurnMap
e
.
logger
.
Info
(
"printf burnEvent"
,
"burnEvent"
,
util
.
FormatJSON
(
action
))
//销毁指定的token
if
strings
.
ToLower
(
burnEvent
.
Symbol
)
==
strings
.
ToLower
(
e
.
config
.
Chain33
.
Symbol
)
{
// extra, _ := util.FromHex(burnEvent.Extra)
// 已销毁
...
...
paracross/paracross.go
View file @
060c3c67
...
...
@@ -163,7 +163,9 @@ func (p *Paracross) Initialize(configPath string, ID string, extra []byte) error
p
.
MinTxFeeRate
=
chain33Config
.
Chain33
.
Fee
p
.
isTest
=
chain33Config
.
Chain33
.
IsTest
p
.
paraHeight
=
atomic
.
NewInt64
(
-
1
)
//判断执行器地址类型
if
strings
.
ToUpper
(
chain33Config
.
Chain33
.
Symbol
)
==
"YCC"
{
//执行器地址类型,YCC是以太坊地址类型。
execAddress
,
err
:=
address
.
GetExecAddress
(
p
.
title
+
execer
,
2
)
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"execAddress"
)
...
...
@@ -728,6 +730,7 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
// 第一次提交。
TokenSymbol
:=
""
if
strings
.
ToUpper
(
p
.
chain33Config
.
Chain33
.
Symbol
)
==
"YCC"
{
//主链的token映射到平行链: coins.xxx
TokenSymbol
=
"coins.ycc"
}
else
{
TokenSymbol
=
"coins.bty"
...
...
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