mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-20 13:34:32 +01:00
contractcourt/chain_watcher: don't print curve of DoubleTweak
This commit is contained in:
parent
87d77a1b87
commit
5bf5a823ff
1 changed files with 13 additions and 1 deletions
|
@ -578,8 +578,20 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
|
|||
return fmt.Errorf("unable to create breach retribution: %v", err)
|
||||
}
|
||||
|
||||
// Nil the curve before printing.
|
||||
if retribution.RemoteOutputSignDesc != nil &&
|
||||
retribution.RemoteOutputSignDesc.DoubleTweak != nil {
|
||||
retribution.RemoteOutputSignDesc.DoubleTweak.Curve = nil
|
||||
}
|
||||
if retribution.LocalOutputSignDesc != nil &&
|
||||
retribution.LocalOutputSignDesc.DoubleTweak != nil {
|
||||
retribution.LocalOutputSignDesc.DoubleTweak.Curve = nil
|
||||
}
|
||||
|
||||
log.Debugf("Punishment breach retribution created: %v",
|
||||
spew.Sdump(retribution))
|
||||
newLogClosure(func() string {
|
||||
return spew.Sdump(retribution)
|
||||
}))
|
||||
|
||||
// With the event processed, we'll now notify all subscribers of the
|
||||
// event.
|
||||
|
|
Loading…
Add table
Reference in a new issue