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
822bd87c
Commit
822bd87c
authored
Nov 25, 2021
by
yxq
Committed by
vipwzw
Dec 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: paracross get tx from block
parent
8efcb50b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
action.go
plugin/dapp/paracross/executor/action.go
+0
-0
filtertxs.go
plugin/dapp/paracross/executor/filtertxs.go
+11
-0
No files found.
plugin/dapp/paracross/executor/action.go
View file @
822bd87c
This diff is collapsed.
Click to expand it.
plugin/dapp/paracross/executor/filtertxs.go
View file @
822bd87c
...
...
@@ -102,6 +102,17 @@ func FilterTxsForPara(cfg *types.Chain33Config, main *types.ParaTxDetail) []*typ
return
txs
}
// FilterParaCrossTxs only all para chain cross txs like xx.paracross exec
func
FilterParaCrossTxs
(
txs
[]
*
types
.
Transaction
)
[]
*
types
.
Transaction
{
var
paraCrossTxs
[]
*
types
.
Transaction
for
_
,
tx
:=
range
txs
{
if
types
.
IsParaExecName
(
string
(
tx
.
Execer
))
&&
bytes
.
HasSuffix
(
tx
.
Execer
,
[]
byte
(
pt
.
ParaX
))
{
paraCrossTxs
=
append
(
paraCrossTxs
,
tx
)
}
}
return
paraCrossTxs
}
// FilterParaCrossTxHashes only all para chain cross txs like xx.paracross exec
func
FilterParaCrossTxHashes
(
txs
[]
*
types
.
Transaction
)
[][]
byte
{
var
txHashs
[][]
byte
...
...
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