Skip to content

Commit

Permalink
Merge pull request #563 from Puneetha17/private_rawtx
Browse files Browse the repository at this point in the history
Do not reset V value if the tx is already set to private
  • Loading branch information
jpmsam authored Jan 7, 2019
2 parents c090cea + 4658a15 commit d77cb77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d77cb77

Please sign in to comment.