1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-20 10:39:19 +01:00

improved logging in router

This commit is contained in:
pm47 2017-01-27 20:28:38 +01:00
parent 69b82990e9
commit 2d2ecdabf2

View File

@ -66,6 +66,7 @@ class Router(watcher: ActorRef, announcement: NodeAnnouncement) extends Actor wi
makeChannelUpdate(Globals.Node.privateKey, d.commitments.channelId, false, Platform.currentTime / 1000)
)
}
log.info(s"added channel channelId=${c.channelId} (nodes=${nodes.size} channels=${channels.size + 1})")
// let's trigger the broadcast immediately so that we don't wait for 60 seconds to announce our newly created channel
self ! 'tick_broadcast
context become main(local, nodes, channels + (c.channelId -> c), updates, rebroadcast :+ c :+ local :+ u)