An open API service indexing awesome lists of open source software.

https://github.com/dozyio/gossipsub-simulator

Gossipsub Simulator - playground for libp2p protocols
https://github.com/dozyio/gossipsub-simulator

gossipsub libp2p p2p pubsub

Last synced: 14 days ago
JSON representation

Gossipsub Simulator - playground for libp2p protocols

Awesome Lists containing this project

README

        

# GossipSub Simulator

![GossipSub Simulator](https://github.com/dozyio/gossipsub-simulator/blob/main/docs/images/screenshot.png?raw=true "GossipSub Simulator")

## Setup

Require `npm` and `golang`

```sh
cd nodes && npm i
```

```sh
cd controller-ui && npm i
```

## Usage

### Build Bootstrap/Relay and Gossipsub Nodes

```sh
make build
```

### Run UI

```sh
make ui
```

### Run Controller

```sh
make controller
```

If the controller fails to run, you may need to set the path to the docker socket:

```sh
DOCKER_HOST=unix:///Users/YOUR_USERNAME/.docker/run/docker.sock make controller
```

### Stop

```sh
make stop
```

### Related Projects and info

* [Gossipsub Specs](https://github.com/libp2p/specs/tree/master/pubsub/gossipsub)

* [Testground](https://github.com/testground/testground)

* [Shadow](https://github.com/shadow/shadow)