1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 14:22:39 +01:00

reduced polling interval to 10s

This commit is contained in:
pm47 2016-02-17 11:25:33 +01:00
parent 82fe428b99
commit 6e33c036b0

View file

@ -32,7 +32,7 @@ class PollingWatcher(client: BitcoinJsonRPCClient)(implicit ec: ExecutionContext
case w: Watch if !watches.contains(w) =>
log.info(s"adding watch $w for $sender")
val cancellable = context.system.scheduler.schedule(2 seconds, 30 seconds)(w match {
val cancellable = context.system.scheduler.schedule(2 seconds, 10 seconds)(w match {
case w@WatchConfirmed(channel, txId, minDepth, event) =>
getTxConfirmations(client, txId.toString).map(_ match {
case Some(confirmations) if confirmations >= minDepth =>