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
6052e7a2
Commit
6052e7a2
authored
Sep 10, 2019
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add getRetrieveAsset
parent
d7214072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
retrieve.go
plugin/dapp/retrieve/executor/retrieve.go
+9
-1
No files found.
plugin/dapp/retrieve/executor/retrieve.go
View file @
6052e7a2
...
@@ -74,9 +74,17 @@ func calcRetrieveAssetKey(backupAddr, defaultAddr, assetExec, assetSymbol string
...
@@ -74,9 +74,17 @@ func calcRetrieveAssetKey(backupAddr, defaultAddr, assetExec, assetSymbol string
return
[]
byte
(
key
)
return
[]
byte
(
key
)
}
}
func
getRetrieveAsset
(
db
dbm
.
KVDB
,
backupAddr
,
defaultAddr
,
assetExec
,
assetSymbol
string
)
(
*
rt
.
RetrieveQuery
,
error
)
{
return
getRetrieve
(
db
,
calcRetrieveAssetKey
(
backupAddr
,
defaultAddr
,
assetExec
,
assetSymbol
))
}
func
getRetrieveInfo
(
db
dbm
.
KVDB
,
backupAddr
string
,
defaultAddr
string
)
(
*
rt
.
RetrieveQuery
,
error
)
{
func
getRetrieveInfo
(
db
dbm
.
KVDB
,
backupAddr
string
,
defaultAddr
string
)
(
*
rt
.
RetrieveQuery
,
error
)
{
return
getRetrieve
(
db
,
calcRetrieveKey
(
backupAddr
,
defaultAddr
))
}
func
getRetrieve
(
db
dbm
.
KVDB
,
key
[]
byte
)
(
*
rt
.
RetrieveQuery
,
error
)
{
info
:=
rt
.
RetrieveQuery
{}
info
:=
rt
.
RetrieveQuery
{}
retInfo
,
err
:=
db
.
Get
(
calcRetrieveKey
(
backupAddr
,
defaultAddr
)
)
retInfo
,
err
:=
db
.
Get
(
key
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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