Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit a3a7d73

Browse files
authored
release: 11.0.3 (#1054)
* fix database clean up for v4 orders * add multiple external sources to grab public IP by mesh - add an optional configuration for custom public ip sources - update docs * cut release
1 parent ee90a94 commit a3a7d73

File tree

21 files changed

+758
-687
lines changed

21 files changed

+758
-687
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Version](https://img.shields.io/badge/version-11.0.2-orange.svg)](https://github.com/0xProject/0x-mesh/releases)
1+
[![Version](https://img.shields.io/badge/version-11.0.3-orange.svg)](https://github.com/0xProject/0x-mesh/releases)
22
[![Docs](https://img.shields.io/badge/docs-website-yellow.svg)](https://0x-org.gitbook.io/mesh)
33
[![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-blueViolet.svg)](https://discord.gg/HF7fHwk)
44
[![Circle CI](https://img.shields.io/circleci/project/0xProject/0x-mesh/master.svg)](https://circleci.com/gh/0xProject/0x-mesh/tree/master)

core/core.go

+22-14
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const (
5757
estimatedNonPollingEthereumRPCRequestsPer24Hrs = 50000
5858
// logStatsInterval is how often to log stats for this node.
5959
logStatsInterval = 5 * time.Minute
60-
version = "11.0.2"
60+
version = "11.0.3"
6161
// ordersyncMinPeers is the minimum amount of peers to receive orders from
6262
// before considering the ordersync process finished.
6363
ordersyncMinPeers = 5
@@ -194,6 +194,13 @@ type Config struct {
194194
// MaxBytesPerSecond is the maximum number of bytes per second that a peer is
195195
// allowed to send before failing the bandwidth check. Defaults to 5 MiB.
196196
MaxBytesPerSecond float64 `envvar:"MAX_BYTES_PER_SECOND" default:"5242880"`
197+
// AdditionalPublicIPSources is a list of external public IP source like
198+
// https://whatismyip.api.0x.org/ which return the IP address in a
199+
// text/plain format. This list is prepended to the default sources list.
200+
//
201+
// It expects a comma delimited list of external sources for example:
202+
// ADDITIONAL_PUBLIC_IP_SOURCES="https://ifconfig.me/ip,http://192.168.5.10:1337/ip"
203+
AdditionalPublicIPSources string `envvar:"ADDITIONAL_PUBLIC_IP_SOURCES" default:""`
197204
}
198205

199206
type App struct {
@@ -614,19 +621,20 @@ func (app *App) Start() error {
614621
return err
615622
}
616623
nodeConfig := p2p.Config{
617-
SubscribeTopic: app.orderFilter.Topic(),
618-
PublishTopics: publishTopics,
619-
TCPPort: app.config.P2PTCPPort,
620-
WebSocketsPort: app.config.P2PWebSocketsPort,
621-
Insecure: false,
622-
PrivateKey: app.privKey,
623-
MessageHandler: app,
624-
RendezvousPoints: rendezvousPoints,
625-
UseBootstrapList: app.config.UseBootstrapList,
626-
BootstrapList: bootstrapList,
627-
DB: app.db,
628-
CustomMessageValidator: app.orderFilter.ValidatePubSubMessage,
629-
MaxBytesPerSecond: app.config.MaxBytesPerSecond,
624+
SubscribeTopic: app.orderFilter.Topic(),
625+
PublishTopics: publishTopics,
626+
TCPPort: app.config.P2PTCPPort,
627+
WebSocketsPort: app.config.P2PWebSocketsPort,
628+
Insecure: false,
629+
PrivateKey: app.privKey,
630+
MessageHandler: app,
631+
RendezvousPoints: rendezvousPoints,
632+
UseBootstrapList: app.config.UseBootstrapList,
633+
BootstrapList: bootstrapList,
634+
DB: app.db,
635+
CustomMessageValidator: app.orderFilter.ValidatePubSubMessage,
636+
MaxBytesPerSecond: app.config.MaxBytesPerSecond,
637+
AdditionalPublicIPSources: strings.Split(app.config.AdditionalPublicIPSources, ","),
630638
}
631639
app.node, err = p2p.New(innerCtx, nodeConfig)
632640
if err != nil {

docs/browser-bindings/browser-lite/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @0x/mesh-browser-lite - v11.0.2
1+
# @0x/mesh-browser-lite - v11.0.3
22

33
## @0x/mesh-browser-lite
44

0 commit comments

Comments
 (0)