Change contentTopic data type to string in chat2

This commit is contained in:
Richard Ramos 2021-04-08 19:01:23 -04:00
parent ff8d4ef8a4
commit c7550f29ce
No known key found for this signature in database
GPG Key ID: 80D4B01265FDFE8F
3 changed files with 4 additions and 3 deletions

View File

@ -10,6 +10,6 @@ require (
github.com/ipfs/go-log/v2 v2.1.1
github.com/libp2p/go-libp2p-core v0.8.5
github.com/rivo/tview v0.0.0-20210312174852-ae9464cc3598
github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7
github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8
google.golang.org/protobuf v1.25.0
)

View File

@ -770,6 +770,8 @@ github.com/status-im/go-waku v0.0.0-20210406231752-e8f7a4d38c82 h1:80JU8pHRKQt0y
github.com/status-im/go-waku v0.0.0-20210406231752-e8f7a4d38c82/go.mod h1:949jqEGfl0gWv8NMWJU5xhW0hSRJicDxYWQAZkJMsqQ=
github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7 h1:I7SKeIuqUum7yLrGfD6A1dcKgLRWbG+lQjNdCbkePcs=
github.com/status-im/go-waku v0.0.0-20210407211629-9c224c1849b7/go.mod h1:2fHIqaNF8M8W/DQL5J3R9dXbrTLpOefvD5tbKSvoxBg=
github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8 h1:EB+dNeKJovYLJxnj7dPrhysrhGMkTucdlk2iqPE+XMc=
github.com/status-im/go-waku v0.0.0-20210408220731-ff8d4ef8a4e8/go.mod h1:2fHIqaNF8M8W/DQL5J3R9dXbrTLpOefvD5tbKSvoxBg=
github.com/status-im/go-wakurelay-pubsub v0.4.2 h1:F4UGcP80H0PGaeJ0mRMzA1Ux3DKYiyv/qu3bOR/efTg=
github.com/status-im/go-wakurelay-pubsub v0.4.2/go.mod h1:LSCVYR7mnBBsxVJghrGpQ3yJAAATEe6XeQQqGCZhwrE=
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=

View File

@ -3,7 +3,6 @@ package main
import (
"context"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"encoding/json"
"flag"
@ -23,7 +22,7 @@ import (
"github.com/status-im/go-waku/waku/v2/node"
)
var DefaultContentTopic uint32 = binary.LittleEndian.Uint32([]byte("dingpu"))
var DefaultContentTopic string = "dingpu"
func main() {
mrand.Seed(time.Now().UTC().UnixNano())