Commit 6a8e4352 authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix payment threshold log message (#1219)

parent 5e1a341d
...@@ -80,9 +80,10 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) (e ...@@ -80,9 +80,10 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) (e
s.logger.Debugf("could not receive payment threshold announcement from peer %v", p.Address) s.logger.Debugf("could not receive payment threshold announcement from peer %v", p.Address)
return fmt.Errorf("read request from peer %v: %w", p.Address, err) return fmt.Errorf("read request from peer %v: %w", p.Address, err)
} }
s.logger.Tracef("received payment threshold announcement from peer %v of %d", p.Address, req.PaymentThreshold) paymentThreshold := big.NewInt(0).SetBytes(req.PaymentThreshold)
s.logger.Tracef("received payment threshold announcement from peer %v of %d", p.Address, paymentThreshold)
return s.paymentThresholdObserver.NotifyPaymentThreshold(p.Address, big.NewInt(0).SetBytes(req.PaymentThreshold)) return s.paymentThresholdObserver.NotifyPaymentThreshold(p.Address, paymentThreshold)
} }
func (s *Service) init(ctx context.Context, p p2p.Peer) error { func (s *Service) init(ctx context.Context, p p2p.Peer) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment