GithubHelp home page GithubHelp logo

bcash-rewrite's Introduction

Bcash

NOTE: The latest release of bcash contains a non-backward compatible change to the rest API. Please read the changelog's "migrating" section for more details.


Bcash is an alternative implementation of the bitcoin-cash protocol, written in node.js.

Bcash is well tested and aware of all known consensus rules.

Uses

  • Full Node
  • SPV Node
  • Wallet Backend (bip44 derivation)
  • Layer 2 Backend
  • General Purpose Bitcoin Library

Try it in the browser: http://bcoin.io/browser.html

Install

$ git clone git://github.com/bcash-org/bcash.git
$ cd bcash
$ npm install
$ ./bin/bcash

See the Beginner's Guide for more in-depth installation instructions.

Documentation

Disclaimer

Bcash does not guarantee you against theft or lost funds due to bugs, mishaps, or your own incompetence. You and you alone are responsible for securing your money.

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. </legalese>

License

  • Copyright (c) 2014-2015, Fedor Indutny (MIT License).
  • Copyright (c) 2014-2017, Christopher Jeffrey (MIT License).
  • Copyright (c) 2017-2018, Rojikku (MIT License).

See LICENSE for more info.

bcash-rewrite's People

Contributors

jonajosejg avatar

bcash-rewrite's Issues

Net Magic Accepted through Peers

[info] (net) Added inbound peer (5.189.177.233:37386).
[debug] (chain) Memory: rss=228mb, js-heap=32/62mb native-heap=166mb
[info] (chain) Block 000000000000000000bdc2444c5e093adc96a3286eefbe4206f3e812133ec81d (477919) added to chain (size=895567 txs=1498 time=1955.2578119999998).
[debug] (net) Error: Invalid magic value: e8f3e1e3. (5.189.177.233:37386)
[debug] (peer) Rejecting packet from 5.189.177.233:37386: code=malformed reason=error parsing message.

Fixing Block Sigops Checking after block 478571

Although the current Re-Targeting Algorithm is fixed. The current Signature Operation checks on the proceeding blocks after the new Re-targeting algorithm (478571),
Exceed the current consensus defaults for each Block / Transaction

All transactions are considered non-standard if this fix is not assessed which will eventually cause invalidity to connection-blocks in the Mempool.

There's currently a rewrite in the primitives library that count P2SH / Legacy Sigops.
This may require a new rewrite or change in the chain file that segregates both.

Although they both must be used to calculate transaction sizes.

Example of Error:

(chain) Tried to connect invalid block: 0000000000000000012401ef17c6eefc28a25ebc98ac5c085174d5f418ebc3db (478571).
[debug] (peer) Rejecting block 0000000000000000012401ef17c6eefc28a25ebc98ac5c085174d5f418ebc3db (52.7.233.13:8333): code=invalid reason=bad-blk-sigops.

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.