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
e54b919d
Commit
e54b919d
authored
Apr 26, 2019
by
jiangpeng
Committed by
vipwzw
Apr 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tx expire
parent
a28e3aaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
privacy.go
plugin/dapp/privacy/wallet/privacy.go
+0
-3
privacybizpolicy.go
plugin/dapp/privacy/wallet/privacybizpolicy.go
+6
-0
No files found.
plugin/dapp/privacy/wallet/privacy.go
View file @
e54b919d
...
...
@@ -606,7 +606,6 @@ func (policy *privacyPolicy) createPublic2PrivacyTx(req *types.ReqCreateTransact
Nonce
:
policy
.
getWalletOperate
()
.
Nonce
(),
To
:
address
.
ExecAddress
(
types
.
ExecName
(
privacytypes
.
PrivacyX
)),
}
tx
.
SetExpire
(
time
.
Duration
(
req
.
Expire
))
tx
.
Signature
=
&
types
.
Signature
{
Signature
:
types
.
Encode
(
&
privacytypes
.
PrivacySignatureParam
{
ActionType
:
action
.
Ty
,
...
...
@@ -687,7 +686,6 @@ func (policy *privacyPolicy) createPrivacy2PrivacyTx(req *types.ReqCreateTransac
Nonce
:
policy
.
getWalletOperate
()
.
Nonce
(),
To
:
address
.
ExecAddress
(
types
.
ExecName
(
privacytypes
.
PrivacyX
)),
}
tx
.
SetExpire
(
time
.
Duration
(
req
.
Expire
))
if
isPara
{
tx
.
Fee
,
err
=
tx
.
GetRealFee
(
types
.
GInt
(
"MinFee"
))
if
err
!=
nil
{
...
...
@@ -773,7 +771,6 @@ func (policy *privacyPolicy) createPrivacy2PublicTx(req *types.ReqCreateTransact
Nonce
:
policy
.
getWalletOperate
()
.
Nonce
(),
To
:
address
.
ExecAddress
(
types
.
ExecName
(
privacytypes
.
PrivacyX
)),
}
tx
.
SetExpire
(
time
.
Duration
(
req
.
Expire
))
if
isPara
{
tx
.
Fee
,
err
=
tx
.
GetRealFee
(
types
.
GInt
(
"MinFee"
))
if
err
!=
nil
{
...
...
plugin/dapp/privacy/wallet/privacybizpolicy.go
View file @
e54b919d
...
...
@@ -7,6 +7,7 @@ package wallet
import
(
"sync"
"sync/atomic"
"time"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common/crypto"
...
...
@@ -152,6 +153,11 @@ func (policy *privacyPolicy) SignTransaction(key crypto.PrivKey, req *types.ReqS
bizlog
.
Error
(
"SignTransaction"
,
"action type "
,
action
.
Ty
,
"signature action type "
,
signParam
.
ActionType
)
return
}
expire
,
err
:=
types
.
ParseExpire
(
req
.
GetExpire
())
if
err
!=
nil
{
return
}
tx
.
SetExpire
(
time
.
Duration
(
expire
))
switch
action
.
Ty
{
case
privacytypes
.
ActionPublic2Privacy
:
// 隐私交易的公对私动作,不存在交易组的操作
...
...
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