GithubHelp home page GithubHelp logo

isabella232 / bitcoin-simulated-network Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blocknative/bitcoin-simulated-network

0.0 0.0 0.0 36 MB

Simulated Bitcoin network

Shell 21.30% JavaScript 71.43% Dockerfile 7.27%

bitcoin-simulated-network's Introduction

Bitcoin simulated network

Description

Testing Bitcoin is difficult because block times are slow, and there are not many testnet transactions.

Bitcoin simulated network allows spinning up a Dockerized Bitcoin regtest network consisting of many connected nodes. The nodes have funded wallets, and periodically send Bitcoin between each other. A random node is selected every 5 seconds to mine a block.

This allows for much more rapid development compared to using the Bitcoin testnet, expecially when testing logic related to new blocks.

Dependencies

  • Docker
  • Nodejs
  • NPM

Usage

Install dependencies

npm install

Run nodes (first time running this will take some time because Docker needs to build the container)

node index.js

RPC exposed on port 1999

  • user: rpcuser
  • pw: rpcpassword

ZMQ exposed on port 29000

Troubleshooting

  1. docker build --pull --no-cache --tag bitcoin-simulated-network-image:latest .
  2. ./s/stop

Credit

Credit to Alexey Lunacharsky for the foundation this project was built on

bitcoin-simulated-network's People

Contributors

liamaharon avatar alun avatar alekseilunacharskii 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.