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
eab03b50
Commit
eab03b50
authored
Jul 19, 2021
by
mdj33
Committed by
vipwzw
Jul 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt privacy coins
parent
3a1cc6db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
kv.go
plugin/dapp/privacy/executor/kv.go
+1
-1
privacystore.go
plugin/dapp/privacy/wallet/privacystore.go
+1
-2
No files found.
plugin/dapp/privacy/executor/kv.go
View file @
eab03b50
...
...
@@ -24,7 +24,7 @@ const (
//计算隐私资产utxo的前缀, 和exec,token相关
func
calcUtxoAssetPrefix
(
exec
,
token
string
)
string
{
//只有coins资产的key不加exec前缀, 主要考虑是不加分叉兼容历史隐私交易
if
exec
==
""
||
exec
==
types
.
DefaultCoinsExec
||
exec
==
types
.
DefaultCoinsXExec
{
if
exec
==
""
||
exec
==
types
.
DefaultCoinsExec
{
return
token
}
return
exec
+
":"
+
token
...
...
plugin/dapp/privacy/wallet/privacystore.go
View file @
eab03b50
...
...
@@ -21,7 +21,6 @@ import (
const
(
// PRIVACYDBVERSION 隐私交易数据库版本号
PRIVACYDBVERSION
int64
=
1
COINSEXEC
=
"coins"
)
func
newStore
(
db
db
.
DB
,
coinsExec
string
)
*
privacyStore
{
...
...
@@ -557,7 +556,7 @@ func (store *privacyStore) selectCurrentWalletPrivacyTx(txDetal *types.Transacti
}
if
assetExec
==
""
{
assetExec
=
COINSEXEC
assetExec
=
store
.
coinsExec
}
//处理output
...
...
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