mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 15:02:17 +01:00
Fix missing pattern patch case for when we have zero headers (#1242)
This commit is contained in:
parent
3e618ec1f6
commit
3f5244e390
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ trait GetHeadersMessage extends DataPayload {
|
|||
val count = hashCount.toInt
|
||||
// only display first hash, otherwise this gets really long
|
||||
val hashesStr = hashes match {
|
||||
case Nil => "empty"
|
||||
case head +: Nil => head.toString
|
||||
case head +: _ => s"$head, ..."
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue