contractcourt: nil keyring curves on breach info
This commit is contained in:
parent
cd54625c2d
commit
088fb33718
@ -747,13 +747,27 @@ func (c *chainWatcher) dispatchContractBreach(spendEvent *chainntnfs.SpendDetail
|
|||||||
retribution.RemoteOutputSignDesc.DoubleTweak != nil {
|
retribution.RemoteOutputSignDesc.DoubleTweak != nil {
|
||||||
retribution.RemoteOutputSignDesc.DoubleTweak.Curve = nil
|
retribution.RemoteOutputSignDesc.DoubleTweak.Curve = nil
|
||||||
}
|
}
|
||||||
|
if retribution.RemoteOutputSignDesc != nil &&
|
||||||
|
retribution.RemoteOutputSignDesc.KeyDesc.PubKey != nil {
|
||||||
|
retribution.RemoteOutputSignDesc.KeyDesc.PubKey.Curve = nil
|
||||||
|
}
|
||||||
if retribution.LocalOutputSignDesc != nil &&
|
if retribution.LocalOutputSignDesc != nil &&
|
||||||
retribution.LocalOutputSignDesc.DoubleTweak != nil {
|
retribution.LocalOutputSignDesc.DoubleTweak != nil {
|
||||||
retribution.LocalOutputSignDesc.DoubleTweak.Curve = nil
|
retribution.LocalOutputSignDesc.DoubleTweak.Curve = nil
|
||||||
}
|
}
|
||||||
|
if retribution.LocalOutputSignDesc != nil &&
|
||||||
|
retribution.LocalOutputSignDesc.KeyDesc.PubKey != nil {
|
||||||
|
retribution.LocalOutputSignDesc.KeyDesc.PubKey.Curve = nil
|
||||||
|
}
|
||||||
|
|
||||||
log.Debugf("Punishment breach retribution created: %v",
|
log.Debugf("Punishment breach retribution created: %v",
|
||||||
newLogClosure(func() string {
|
newLogClosure(func() string {
|
||||||
|
retribution.KeyRing.CommitPoint.Curve = nil
|
||||||
|
retribution.KeyRing.LocalHtlcKey = nil
|
||||||
|
retribution.KeyRing.RemoteHtlcKey = nil
|
||||||
|
retribution.KeyRing.DelayKey = nil
|
||||||
|
retribution.KeyRing.NoDelayKey = nil
|
||||||
|
retribution.KeyRing.RevocationKey = nil
|
||||||
return spew.Sdump(retribution)
|
return spew.Sdump(retribution)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user