Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pratik-codes/go-blockchain
- Owner: pratik-codes
- Created: 2024-08-18T22:03:33.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-19T09:21:50.000Z (4 months ago)
- Last Synced: 2024-09-30T15:41:08.236Z (3 months ago)
- Topics: blockchain, go, grpc, web3, websock
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)