mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
htlcswitch/circuit_map: prevent spewing secp curve in trace
Replaces the log statement in CommitCircuits so that it prints the circuit key of the incoming channel. This way we avoid spewing the secp curve stored in the ErrorEncrypter.
This commit is contained in:
@ -495,8 +495,13 @@ func (cm *circuitMap) LookupByPaymentHash(hash [32]byte) []*PaymentCircuit {
|
||||
func (cm *circuitMap) CommitCircuits(circuits ...*PaymentCircuit) (
|
||||
*CircuitFwdActions, error) {
|
||||
|
||||
inKeys := make([]CircuitKey, 0, len(circuits))
|
||||
for _, circuit := range circuits {
|
||||
inKeys = append(inKeys, circuit.Incoming)
|
||||
}
|
||||
|
||||
log.Tracef("Committing fresh circuits: %v", newLogClosure(func() string {
|
||||
return spew.Sdump(circuits)
|
||||
return spew.Sdump(inKeys)
|
||||
}))
|
||||
|
||||
actions := &CircuitFwdActions{}
|
||||
|
Reference in New Issue
Block a user