Commit 1a9cd573 authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

chequebook and payment threshold logging fixes (#770)

parent 7ba2deea
......@@ -85,7 +85,6 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) (e
}
func (s *Service) init(ctx context.Context, p p2p.Peer) error {
s.logger.Tracef("sending payment threshold announcement to peer %v", p.Address)
err := s.AnnouncePaymentThreshold(ctx, p.Address, s.paymentThreshold)
if err != nil {
s.logger.Warningf("error sending payment threshold announcement to peer %v", p.Address)
......
......@@ -41,8 +41,6 @@ func Init(
return nil, err
}
logger.Info("no chequebook found, deploying new one.")
var chequebookAddress common.Address
err = stateStore.Get(chequebookKey, &chequebookAddress)
if err != nil {
......@@ -50,6 +48,7 @@ func Init(
return nil, err
}
logger.Info("no chequebook found, deploying new one.")
if swapInitialDeposit != 0 {
erc20Token, err := erc20BindingFunc(erc20Address, swapBackend)
if err != nil {
......
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