Browse Source

remove transaction hash log

pull/8094/head
William Banfield 3 years ago
parent
commit
1500369946
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      abci/types/types.go

+ 4
- 4
abci/types/types.go View File

@ -266,20 +266,20 @@ func (rpp *ResponsePrepareProposal) Validate(maxSizeBytes int64, otxs [][]byte)
} }
} }
if _, ok := ntx[string(tr.Tx)]; ok { if _, ok := ntx[string(tr.Tx)]; ok {
return errors.New("TxRecords contains duplicate transaction, transaction hash: %x")
return errors.New("TxRecords contains duplicate transaction")
} }
ntx[string(tr.Tx)] = struct{}{} ntx[string(tr.Tx)] = struct{}{}
if _, ok := otxsSet[string(tr.Tx)]; ok { if _, ok := otxsSet[string(tr.Tx)]; ok {
if tr.Action == TxRecord_ADDED { if tr.Action == TxRecord_ADDED {
return fmt.Errorf("unmodified transaction incorrectly marked as %s, transaction hash: %x", tr.Action.String())
return fmt.Errorf("unmodified transaction incorrectly marked as %s", tr.Action.String())
} }
} else { } else {
if tr.Action == TxRecord_REMOVED || tr.Action == TxRecord_UNMODIFIED { if tr.Action == TxRecord_REMOVED || tr.Action == TxRecord_UNMODIFIED {
return fmt.Errorf("unmodified transaction incorrectly marked as %s, transaction hash: %x", tr.Action.String())
return fmt.Errorf("unmodified transaction incorrectly marked as %s", tr.Action.String())
} }
} }
if tr.Action == TxRecord_UNKNOWN { if tr.Action == TxRecord_UNKNOWN {
return fmt.Errorf("transaction incorrectly marked as %s, transaction hash: %x", tr.Action.String())
return fmt.Errorf("transaction incorrectly marked as %s", tr.Action.String())
} }
} }
return nil return nil


Loading…
Cancel
Save