whisper/shhapi, whisper/whisperv5: refactoring (#3364)
* Filter refactoring * API tests added + bugfix * fixed the error logs * FilterID fixed * test cases fixed * key generation updated * POW updated * got rid of redundant stuff
This commit is contained in:
@ -165,6 +165,9 @@ func (p *Peer) broadcast() error {
|
||||
p.mark(envelope)
|
||||
}
|
||||
}
|
||||
if len(transmit) == 0 {
|
||||
return nil
|
||||
}
|
||||
// Transmit the unknown batch (potentially empty)
|
||||
if err := p2p.Send(p.ws, messagesCode, transmit); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user