mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01: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:
parent
648d6442d6
commit
0372bf9319
1 changed files with 6 additions and 1 deletions
|
@ -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{}
|
||||
|
|
Loading…
Add table
Reference in a new issue