Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pratik-codes/go-blockchain

A simple light weight blockchain written in Golang for devs with interest in blockchain architecture.
https://github.com/pratik-codes/go-blockchain

blockchain go grpc web3 websock

Last synced: 3 months ago
JSON representation

A simple light weight blockchain written in Golang for devs with interest in blockchain architecture.

Awesome Lists containing this project

README

        

Central Server:
Implements the central WebSocket server responsible for broadcasting new transactions to all connected miners.
Manages connections
Broadcasts newly minted blocks to rest of the miners
Adjusts difficulty accordingly to match the desired average blocktime
Manages txn pool for the chain and keeps it in sync (removes txns which are included in the block from pool)

Miner Server:
Implements the miner server code where each miner maintains its own transaction pool.
Handles block mining and interacts with the central server to receive new transactions.
Mines blocks according to a fixed interval (e.g., every 30 seconds)