mirror of https://github.com/poanetwork/quorum.git
Add encrypted tx payload hash from TM to Quorum tx's data field
The TM response was being stored in an isolated scope variable, therefore the tx data was not being updated correctly for private txs. This meant the private tx payload could not be retrieved from the TM when needed.
This commit is contained in:
parent
2d22fd0044
commit
6a4c751a13
|
@ -398,7 +398,7 @@ func (s *PrivateAccountAPI) SendTransaction(ctx context.Context, args SendTxArgs
|
|||
data := []byte(*args.Data)
|
||||
if len(data) > 0 {
|
||||
log.Info("sending private tx", "data", fmt.Sprintf("%x", data), "privatefrom", args.PrivateFrom, "privatefor", args.PrivateFor)
|
||||
data, err := private.P.Send(data, args.PrivateFrom, args.PrivateFor)
|
||||
data, err = private.P.Send(data, args.PrivateFrom, args.PrivateFor)
|
||||
log.Info("sent private tx", "data", fmt.Sprintf("%x", data), "privatefrom", args.PrivateFrom, "privatefor", args.PrivateFor)
|
||||
if err != nil {
|
||||
return common.Hash{}, err
|
||||
|
|
Loading…
Reference in New Issue