Rework NodeState.toString() (#5432)

This commit is contained in:
Chris Stewart 2024-02-27 13:59:51 -06:00 committed by GitHub
parent 3ed78b5270
commit 0053ccd853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,6 +116,10 @@ sealed trait NodeRunningState extends NodeState {
def toDoneSyncing: DoneSyncing = {
DoneSyncing(peerDataMap, waitingForDisconnection, peerFinder)
}
override def toString: String = {
s"${getClass.getSimpleName}(peers=${peers},waitingForDisconnection=${waitingForDisconnection})"
}
}
/** State to indicate that we are syncing the blockchain */