Skip to main content

Layernode

Layernode is a peer-managed node that extends the functionality of the Layer Protocol and the LRX token. It caches data from the Layer network, performs computations, handles LRX token staking and more.

Local MySQL server

  • Install mysql server
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
  • Logon to MySQL using root user, and run the following sql
CREATE DATABASE layernode;
CREATE USER 'layer_user'@'%' IDENTIFIED BY 'layer_password';  
GRANT ALL PRIVILEGES ON layernode.* TO 'layer_user'@'%';
FLUSH PRIVILEGES;

IPFS setup

  • ipfs setup
sudo apt-get update
sudo apt-get install golang-go -y
wget https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-386.tar.gz
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
  • ipfs config creation
ipfs init
ipfs daemon
  • ipfs service
cp ./ipfs.service /etc/systemd/system/ipfs.service
systemctl daemon-reload
systemctl enable ipfs.service
systemctl start ipfs
service ipfs status

Install dependency and create python3 virtual environment

Layernode only works and tested on Python 3 and above.

sudo apt-get install build-essential
sudo apt-get install python3-dev
sudo apt-get install python3-setuptools

git clone https://github.com/LayerProtocol/layernode
cd layernode
virtualenv venv -p python3
source venv/bin/activate
pip install layernode

Create and update config

  • create config to ~/.layernode
layernode -h
  • update config

my_ip
geth_rpc_host
signer_endpoint
ipfs

How to run

cli.py module offers a cool CLI to interact with the blockchain engine. When you install this package, you can call this module by 'layernode' executable.

You can start the client by running

layernode start

Every service associated with blockchain runs at startup. This implies that your client will immediately start synchronizing with p2p network. Initial peer list is hard-coded into client but you can update this list by updating your config file. Config file can be specified at startup or can be edited manually after first start. Default data folder is inside your home directory and named .layernode.

run layernode service on terminal

  • run layernode on console
layernode start
  • show layernode commands
layernode -h
  • stop layernode service
layernode stop

run layernode service by daemon

This daemonize will be updated later just like bitcoind.

layernode start > /dev/null 2>&1 &

This project is maintained by the @LayerProtocol team, with specific development inquiries directed to:

  • @gedanziger
  • @oleg-baturov
  • @ohtayoshida

Metadata

Release files for Layernode 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Layernode 0.0.3
File Size Uploaded
Layernode-0.0.3.tar.gz 27.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Layernode 0.0.3
File Interpreter ABI Platform
Layernode-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 62.0 kB

Release files / Layernode-0.0.3.tar.gz

Download URL Layernode-0.0.3.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
be5a288018b5069f5a3533ee5146d4a1bbd5adc8e370fb74fdcd08130358ab64
BLAKE2b-256 checksum
How to use checksums
8cd096cf7b900212909deef420a96ca9afdcc8409b88efe10f724d9cb725d171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release files / Layernode-0.0.3-py3-none-any.whl

Download URL Layernode-0.0.3-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d8bd84f3685d50351aef00bc300558218703dccfcea206c234113982137f706
BLAKE2b-256 checksum
How to use checksums
a3bc227795d3a32df5c4a3b251794f20ec2b7b5cda276febbf97f5745882b84a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page