Giter Club home page Giter Club logo

bitcoind.js's Introduction

bitcoind.js's People

Contributors

chjj avatar igorbarinov avatar kleetus avatar pnagurny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoind.js's Issues

Migration of project to bitcore

I read this project has been moved to bitcore. When I look at both sources they look very different.

How has the architecture/setup changed from one project to another? Any benefits for using this one over the newer one?

Compiling requires some additional modifications

A few additional steps are needed to compile the bindings.

  • Copying ./libbitcoind/src/leveldb/helpers/memenv/memenv.h to /usr/local/include/
  • Compiling and installing ./libbitcoind/src/secp256k1/
cd libbitcoind/src/secp256k1
./configure
make
install
  • Adding additional libraries (though not ideal)
'libraries': [
  ...
  '/usr/lib/libdb_cxx-4.8.so',
  '/usr/local/lib/libsecp256k1.a',
  '/usr/lib/x86_64-linux-gnu/libboost_program_options.so',
  '/usr/lib/x86_64-linux-gnu/libanl.so'
]

Provide benchmarks

Please show how much of a performance increase you can get if you provide node bindings to bitcoind versus calling the json rpc methods.

Primary Bindings for Transactions

The primary methods needed are:

  • getInfo
  • getRawTransaction
  • sendRawTransaction
  • getTransaction

Wallet functionality isn't needed, and libbitcoind.so could be compiled with the --disable-wallet flag.

Three methods of starting the blockchain download

Hey guys,

Right now, bitcoindjs.cc has 3-4 different methods of starting the blockchain download (as if you were to run bitcoind straight away). Most of them have problems (the first which simply starts the boost threads in net.cpp cannot connect to peers). The AppInit2 methods start downloading the blockchain but have exception issues. The AppInit method gets run on the node thread pool. It works well, but the callback never gets executed because AppInit blocks, adding -daemon to the argv isn't what we want because it will just fork it.

Would love people to mess around with this and bitpay/libbitcoind. Checkout src/bitcoindjs.cc

dockerfile

i tried setting it up on my Mac but had some issues, and I don't want to make this a forum for debugging my build. Could you provide a Dockerfile? Thanks!

ideas to optimize update outputs handler

Related code https://github.com/bitpay/bitcoind.js/blob/master/lib/modules/address.js#L32

  • reduce the number of calls to isPublicKeyOut
  • call toAddress as this will run the isPublicKeyHashOut and isScripthashOut checks, if there isn't an address check that it's a publickey out (or add this functionality to the toAddress method)
  • outputs.length memoized as var length = outputs.length;
  • script should be stored as hex, and parsing it as opcodes can be avoided by using _scriptBuffer
  • use benchmarks to compare the performance of using join(':') and buffer writing (passing a buffer directly to the value for the key). Ultimately it's converted to a buffer, so there may likely be some improvements.
  • we may or may not need to store the script, though it may help with performance.

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.