From 4658a1542eaed1f5c719fbf36da5ba8d3e3e7591 Mon Sep 17 00:00:00 2001 From: Puneetha Date: Wed, 7 Nov 2018 17:22:45 +0000 Subject: [PATCH] Do not reset V value if the tx is already set to private --- core/types/transaction.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/types/transaction.go b/core/types/transaction.go index 31f88ff144..2a9f8f64d5 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -486,6 +486,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 {