GithubHelp home page GithubHelp logo

dagbpa / dag-pizza-chef Goto Github PK

View Code? Open in Web Editor NEW

This project forked from byteball/obyte-witness

0.0 1.0 0.0 26 KB

Chef of DAG Pizza network

License: MIT License

JavaScript 98.71% Shell 1.29%

dag-pizza-chef's Introduction

Witness node in DAG Pizza network

This is an example of witness node for DAG Pizza network. It periodically posts transactions from the same address.

Running this code is not the only way to run a witness. If some other (more useful) activity implies frequent posting from a constant address, this address can become a witness address. For example, if you are an oracle and already post frequently enough, then you can become a witness as well. Some oracles who are already doing it are price oracle and Bitcoin oracle. The code in this module is a "naked" witness, which just periodically posts transactions that move money to itself.

Requirements

To become a winess, you are expected to:

  • have a publicly known real name, no anonymity
  • be well known in the community
  • be trusted
  • have a lot to lose (material and/or nonmaterial) in case of misbehavior. The loss is your business (outside DAG Pizza) and/or reputation
  • have enough technical expertise to ensure uninterrupted operation 24/7 and security of your private keys (they must not be stolen and used to post on your behalf)
  • be prepared to adapt your own witness list when you feel the community wants to change the list in some way and the new candidate satisfies the above rules. This includes removing your witness from the witness list.

If you think that you satisfy these criteria, this is your course of action:

  • start running this code, or other code that periodically posts from a constant address. At this point you are burning money on fees and not earning anything as witness.
  • convince the community that you would be a better witness than some other witness you are going to replace. If users agree with you, they manually change their witness lists to set your witness address in place of somebody else
  • wait that other witnesses take note of the changing community opinion and change their witness lists accordingly

Install

Install node.js, clone the repository, then say

npm install

Enabling TOR is highly recommended in order to keep your IP address unknown to potential attackers. See dag-pizza-dough documentation.

Run

node start.js

Witness node is based on headless node, see its documentation about running and configuring a headless node.

dag-pizza-chef's People

Contributors

tonyofbyteball avatar

Watchers

 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.