mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
40359f9c1b
* Adding wakunode module * Adding wakuv2 fleet files * Add waku fleets to update-fleet-config script * Adding config items for waku v2 * Conditionally start waku v2 node depending on config * Adapting common code to use go-waku * Setting log level to info * update dependencies * update fleet config to use WakuNodes instead of BootNodes * send and receive messages * use hash returned when publishing a message * add waku store protocol * trigger signal after receiving store messages * exclude linting rule SA1019 to check deprecated packages
40 lines
1.4 KiB
Go
40 lines
1.4 KiB
Go
// Copyright 2019 The Waku Library Authors.
|
|
//
|
|
// The Waku library is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// The Waku library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty off
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
// along with the Waku library. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
// This software uses the go-ethereum library, which is licensed
|
|
// under the GNU Lesser General Public Library, version 3 or any later.
|
|
|
|
package wakuv2
|
|
|
|
import (
|
|
"github.com/status-im/status-go/wakuv2/common"
|
|
)
|
|
|
|
// Config represents the configuration state of a waku node.
|
|
type Config struct {
|
|
MaxMessageSize uint32 `toml:",omitempty"`
|
|
SoftBlacklistedPeerIDs []string `toml:",omitempty"`
|
|
Host string `toml:",omitempty"`
|
|
Port int `toml:",omitempty"`
|
|
BootNodes []string `toml:",omitempty"`
|
|
StoreNodes []string `toml:",omitempty"`
|
|
}
|
|
|
|
var DefaultConfig = Config{
|
|
MaxMessageSize: common.DefaultMaxMessageSize,
|
|
Host: "0.0.0.0",
|
|
Port: 60000,
|
|
}
|