Dissem / Jabit

Bitmessage Library for Java
Apache License 2.0
26 stars 10 forks source link

Search for Magic Number #8

Closed Dissem closed 9 years ago

Dissem commented 9 years ago

At the moment it is just checked if a new message starts with the magic number. The client should instead read until it finds the magic number. I propose reading no more than the maximal message length and disconnecting if it still can't be found.