status-go/cmd/topics/main.go
Andrea Maria Piana a1b3e3a772
Clean topics that we don't listen to
There was a bug on status-react where it would save filters that were
not listened to.
This commit adds a task to clean up those filters as they might result
in long syncing times.

This commit also returns topics/ranges/mailserves from messenger in
order to make the initialization of the app simpler and start moving
logic to status-go.

It also removes whisper from vendor.
2021-01-26 09:39:57 +01:00

18 lines
315 B
Go

package main
import (
"encoding/hex"
"fmt"
"github.com/status-im/status-go/protocol/transport"
)
func main() {
for i := 0; i < 5001; i++ {
topic := fmt.Sprintf("contact-discovery-%d", i)
topicBytes := "0x" + hex.EncodeToString(transport.ToTopic(topic))
fmt.Printf("%s - %s\n", topic, topicBytes)
}
}