Docker Compose Walkthrough
- Introduction and Cheat Sheet
- Key Terms in Morse and Shannon
- Understanding Actors in the Shannon upgrade
- Prerequisites
- A. Deploying a Full Node
- B. Creating a Supplier and Deploying a RelayMiner
- C. Creating an Application and Deploying an AppGate Server
- D. Creating a Gateway Deploying an Gateway Server
Introduction and Cheat Sheet
This document uses the poktroll-docker-compose-example to help stake and deploy every actor in the Pocket Network ecosystem.
It also provides some intuition for those already familiar with Morse
and are
transitioning to Shannon
.
This document has a lot of details and explanations. If you're looking for a copy-paste quickstart guide to set all of it up on a Debian server, check out the Debian cheat sheet.
This is a text heavy walkthrough, but if all goes well, you should have something like the following:
Key Terms in Morse and Shannon
Morse
- The current version of the Pocket Network MainNet (a.k.a v0).Shannon
- The upcoming version of the Pocket Network MainNet (a.k.a v1).Validator
- A node that participates in the consensus process.- In
Morse
Same inMorse
andShannon
. - In
Shannon
- In
Node
- AMorse
actor that stakes to provide Relay services.- In
Morse
- AllValidator
are nodes but only the top 1000 stakesNode
s areValidator
s - This actor is not present in
Shannon
and decoupled intoSupplier
and aRelayMiner
.
- In
Supplier
- The on-chain actor that stakes to provide Relay services.- In
Shannon
- This actor is responsible needs access to a Full Node (sovereign or node).
- In
RelayMiner
- The off-chain service that provides Relay services on behalf of aSupplier
.- In
Shannon
- This actor is responsible for providing the Relay services.
- In
AppGate Server
- The off-chain service that provides Relay services on behalf of anApplication
orGateway
.
For more details, please refer to the Shannon actors documentation.
Understanding Actors in the Shannon upgrade
For those familiar with Morse
, Pocket Network Mainnet, the introduction of
multiple node types in the upcoming Shannon
requires some explanation.
In Shannon
, the Supplier
role is separated from the Full node
role.
In Morse
, a Validator
or a staked Node
was responsible for both holding
a copy of the on-chain data, as well as performing relays. With Shannon
, the
RelayMiner
software, which runs the supplier logic, is distinct from the full-node/validator.
Furthermore, Shannon
introduces the AppGate Server
, a software component that
acts on behalf of either Applications
or Gateways
to access services provided
by Pocket Network Supplier
s via RelayMiners
.
The following diagram from the actors page captures the relationship between on-chain records (actors) and off-chain operators (servers).