mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Add filter header and filter count to logs (#5202)
This commit is contained in:
parent
26290bf4c0
commit
11ab921923
1 changed files with 5 additions and 1 deletions
|
@ -963,6 +963,8 @@ case class PeerManager(
|
|||
def syncHelper(syncPeerOpt: Option[Peer]): Future[Unit] = {
|
||||
val chainApi: ChainApi = ChainHandler.fromDatabase()
|
||||
val headerF = chainApi.getBestBlockHeader()
|
||||
val filterHeaderCountF = chainApi.getFilterHeaderCount()
|
||||
val filterCountF = chainApi.getFilterCount()
|
||||
for {
|
||||
_ <- chainApi.setSyncing(true)
|
||||
_ <- getHeaderSyncHelper(syncPeerOpt)
|
||||
|
@ -982,9 +984,11 @@ case class PeerManager(
|
|||
}
|
||||
}
|
||||
header <- headerF
|
||||
filterHeaderCount <- filterHeaderCountF
|
||||
filterCount <- filterCountF
|
||||
} yield {
|
||||
logger.info(
|
||||
s"Starting sync node, height=${header.height} hash=${header.hashBE.hex} peerOpt=$syncPeerOpt")
|
||||
s"Starting sync node, height=${header.height} hash=${header.hashBE.hex} filterHeaderCount=$filterHeaderCount filterCount=$filterCount peerOpt=$syncPeerOpt")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue