Giter VIP home page Giter VIP logo

onebackend's Introduction

One. Backend

The simple, yet powerful, ethereum backend

Requirements

  • Linux
  • Geth
  • MongoDB
  • Mgo - mongo database driver for Go
  • github.com/satori/go.uuid - uuid library for Go

Building

Run:

make

Running

Run: ./run.sh

By default, this will run the block chain explorer, payment processor and pool.

How it works

One Backend includes the following main threads:

  • scanner: a block chain scanner that informs listeners on change of state (a new block) this periodically queries geth with the current block number and processes the chain until it is up to date. It then stores the last processed block in a persistant file.

  • payments: a payment processor that takes in payments via RPC, and confirms they payment goes through. this periodically checks if a transaction had really been sent. If it had not been sent after 8 blocks (a safe limit for chain reorganization), then the processor resends the transaction. This uses a persistence file to store pending transactions and mongo to store sent transactions.

  • web: a thread to periodically update the web backend with miner and pool information.

  • pool: a web service to listen to incoming miner connections and provide ethereum block shares for proof of work and update miner statistics.

  • verify: an external RPC service that takes share information and verifies that the given share is valid. Currently implemented via a modified py-ethereum.

License

All code in this repository is licensed under the MIT open source license.

onebackend's People

Contributors

oneether avatar

Watchers

James Cloos avatar Jose Colque avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.