Merge pull request #563 from Puneetha17/private_rawtx

Do not reset V value if the tx is already set to private
This commit is contained in:
Samer Falah 2019-01-07 09:22:20 -05:00 committed by GitHub
commit d77cb778ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -489,6 +489,9 @@ func (tx *Transaction) IsPrivate() bool {
}
func (tx *Transaction) SetPrivate() {
if tx.IsPrivate() {
return
}
if tx.data.V.Int64() == 28 {
tx.data.V.SetUint64(38)
} else {