package
0.0.0-20240209070917-68f1f64a0020
Repository: https://github.com/elarsaks/go-blockchain.git
Documentation: pkg.go.dev

# README

MINER / NODE - Blockchain Server

About

Miner is a web server that facilitates the process of verifying and adding new blocks to the blockchain network. In the world of blockchain, it is commonly referred to as a node.

Dependenies

  • Golang
  • Air

Installation

Follow the steps below to set up the Blockchain Server:

  1. Navigate to the parent folder of the project in your terminal.

  2. Run the following command to download the necessary dependencies:

go mod tidy

Running

To run the app with the Air library (live reloading), execute the following command in this folder:

PORT=5001 HOST=127.0.0.1 air

To run it directly via Golang, execute the following command in this folder:

go run main.go -port 5001

Note:
These commands run only one miner. If you want to run multiple miners, open multiple new terminals and run the same command with different port numbers.

Feel free to adjust the port numbers as needed to run multiple miners concurrently.

# Packages

No description provided by the author

# Functions

Create a new instance of BlockchainServer.

# Structs

No description provided by the author