Commit eab03b50 authored by mdj33's avatar mdj33 Committed by vipwzw

adapt privacy coins

parent 3a1cc6db
...@@ -24,7 +24,7 @@ const ( ...@@ -24,7 +24,7 @@ const (
//计算隐私资产utxo的前缀, 和exec,token相关 //计算隐私资产utxo的前缀, 和exec,token相关
func calcUtxoAssetPrefix(exec, token string) string { func calcUtxoAssetPrefix(exec, token string) string {
//只有coins资产的key不加exec前缀, 主要考虑是不加分叉兼容历史隐私交易 //只有coins资产的key不加exec前缀, 主要考虑是不加分叉兼容历史隐私交易
if exec == "" || exec == types.DefaultCoinsExec || exec == types.DefaultCoinsXExec { if exec == "" || exec == types.DefaultCoinsExec {
return token return token
} }
return exec + ":" + token return exec + ":" + token
......
...@@ -21,7 +21,6 @@ import ( ...@@ -21,7 +21,6 @@ import (
const ( const (
// PRIVACYDBVERSION 隐私交易数据库版本号 // PRIVACYDBVERSION 隐私交易数据库版本号
PRIVACYDBVERSION int64 = 1 PRIVACYDBVERSION int64 = 1
COINSEXEC = "coins"
) )
func newStore(db db.DB, coinsExec string) *privacyStore { func newStore(db db.DB, coinsExec string) *privacyStore {
...@@ -557,7 +556,7 @@ func (store *privacyStore) selectCurrentWalletPrivacyTx(txDetal *types.Transacti ...@@ -557,7 +556,7 @@ func (store *privacyStore) selectCurrentWalletPrivacyTx(txDetal *types.Transacti
} }
if assetExec == "" { if assetExec == "" {
assetExec = COINSEXEC assetExec = store.coinsExec
} }
//处理output //处理output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment