File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Node/Sources/Node/NetworkingProtocol Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: docker
22
33on :
44 push :
5+ branches :
6+ - master
57 tags :
68 - ' *'
79
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ public actor SyncManager {
2727
2828 private let subscriptions : EventSubscriptions
2929
30- private var status = SyncStatus . discovering
30+ private var status = SyncStatus . discovering {
31+ didSet {
32+ logger. trace ( " status changed " , metadata: [ " status " : " \( status) " ] )
33+ }
34+ }
35+
3136 private var syncContinuation : [ CheckedContinuation < Void , Never > ] = [ ]
3237
3338 private var networkBest : HashAndSlot ?
@@ -61,6 +66,15 @@ public actor SyncManager {
6166
6267 private func on( peerUpdated info: PeerInfo , newBlockHeader: HeaderRef ? ) async {
6368 // TODO: improve this to handle the case misbehaved peers seding us the wrong best
69+ logger. trace (
70+ " on peer updated " ,
71+ metadata: [
72+ " peer " : " \( info. id) " ,
73+ " best " : " \( String ( describing: info. best) ) " ,
74+ " finalized " : " \( info. finalized) " ,
75+ " newBlockHeader " : " \( String ( describing: newBlockHeader) ) " ,
76+ ]
77+ )
6478 if let networkBest {
6579 if let peerBest = info. best, peerBest. timeslot > networkBest. timeslot {
6680 self . networkBest = peerBest
You can’t perform that action at this time.
0 commit comments