mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-09 17:33:06 +00:00
renaming wakuv2 for waku
This commit is contained in:
parent
4dd321751a
commit
e73f9fedd6
2
Makefile
2
Makefile
@ -29,7 +29,7 @@ prepare:
|
||||
# Build Waku Go Bindings
|
||||
build: prepare
|
||||
@echo "Building Waku Go Bindings..."
|
||||
go build ./wakuv2/...
|
||||
go build ./waku/...
|
||||
|
||||
# Clean up generated files
|
||||
clean:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package wakuv2
|
||||
package waku
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -L../third_party/nwaku/build/ -lnegentropy -lwaku
|
||||
@ -375,7 +375,7 @@ func (w *Waku) Start() error {
|
||||
return err
|
||||
}
|
||||
|
||||
w.logger.Info("WakuV2 PeerID", zap.Stringer("id", peerID))
|
||||
w.logger.Info("Waku PeerID", zap.Stringer("id", peerID))
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -504,7 +504,7 @@ func newWakuNode(ctx context.Context, config *WakuConfig) (*WakuNode, error) {
|
||||
return n, nil
|
||||
}
|
||||
|
||||
// New creates a WakuV2 client ready to communicate through the LibP2P network.
|
||||
// New creates a Waku client ready to communicate through the LibP2P network.
|
||||
func New(nwakuCfg *WakuConfig, logger *zap.Logger) (*Waku, error) {
|
||||
var err error
|
||||
if logger == nil {
|
||||
@ -514,7 +514,7 @@ func New(nwakuCfg *WakuConfig, logger *zap.Logger) (*Waku, error) {
|
||||
}
|
||||
}
|
||||
|
||||
logger.Info("starting wakuv2 with config", zap.Any("nwakuCfg", nwakuCfg))
|
||||
logger.Info("starting Waku with config", zap.Any("nwakuCfg", nwakuCfg))
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
wakunode, err := newWakuNode(ctx, nwakuCfg)
|
||||
@ -1,4 +1,4 @@
|
||||
package wakuv2
|
||||
package waku
|
||||
|
||||
import (
|
||||
"context"
|
||||
@ -26,7 +26,7 @@ import (
|
||||
// --discv5-discovery=true --cluster-id=16 --log-level=DEBUG --shard=64 --tcp-port=61000 \
|
||||
// --nat=extip:${IP_ADDRESS} --discv5-udp-port=8000 --rest-address=0.0.0.0 --store --rest-port=8646
|
||||
|
||||
func TestBasicWakuV2(t *testing.T) {
|
||||
func TestBasicWaku(t *testing.T) {
|
||||
extNodeRestPort := 8646
|
||||
storeNodeInfo, err := GetNwakuInfo(nil, &extNodeRestPort)
|
||||
require.NoError(t, err)
|
||||
@ -1,4 +1,4 @@
|
||||
package wakuv2
|
||||
package waku
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
Loading…
x
Reference in New Issue
Block a user