renaming wakuv2 for waku

This commit is contained in:
Gabriel mermelstein 2024-11-29 13:58:27 +02:00
parent 4dd321751a
commit e73f9fedd6
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
4 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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)

View File

@ -1,4 +1,4 @@
package wakuv2
package waku
import (
"encoding/json"