whisper: fix empty topic

This commit is contained in:
b00ris 2018-01-04 23:58:19 +03:00
parent 1c2378b926
commit 3b2ff9a71d
No known key found for this signature in database
GPG key ID: 2F73E159EB73232C
2 changed files with 2 additions and 2 deletions

View file

@ -562,7 +562,7 @@ func (api *PublicWhisperAPI) NewMessageFilter(req Criteria) (string, error) {
}
if len(req.Topics) > 0 {
topics = make([][]byte, 1)
topics = make([][]byte, 0, 1)
for _, topic := range req.Topics {
topics = append(topics, topic[:])
}

View file

@ -562,7 +562,7 @@ func (api *PublicWhisperAPI) NewMessageFilter(req Criteria) (string, error) {
}
if len(req.Topics) > 0 {
topics = make([][]byte, 1)
topics = make([][]byte, 0, 1)
for _, topic := range req.Topics {
topics = append(topics, topic[:])
}