GithubHelp home page GithubHelp logo

bsv-p2p's People

Contributors

andhovesyan avatar breavyn avatar deanmlittle avatar dependabot[bot] 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

Watchers

 avatar  avatar  avatar

bsv-p2p's Issues

Crash caused by changes that are missing from git history.

There are some changes from bitcore that seem to be missing from the history. How was the original upload produced? I'm currently running into an issue from this difference:

bitcore-p2p has stop = BufferUtil.NULL_HASH: https://github.com/bitpay/bitcore-p2p/blob/master/lib/messages/utils.js#L110

but bsv-p2p has stop = Buffer.alloc(1): https://github.com/deanmlittle/bsv-p2p/blob/master/lib/messages/utils.js#L112

in bsv-p2p, this unrecorded change causes a crash at https://github.com/deanmlittle/bsv-p2p/blob/master/lib/messages/commands/getheaders.js#L57 where the length is not 32: if (this.stop.length !== 32) { throw new Error('Invalid hash length: ' + this.stop.length); }

Add 'bsv' dependency

Installing bsv-p2p doesn't automatically install the bsv package.

The bitcore-p2p package.json includes bitcore-lib as a dependency whereas bsv-p2p doesn't include bsv as a dependency.

bsv.util.js does not have integerAsBuffer

TypeError: JSUtil.integerAsBuffer is not a function
at addNetwork (.\node_modules\bsv-p2p\lib\networks.js:105:28)
at Object. (.\node_modules\bsv-p2p\lib\networks.js:243:1)

Error: Cannot find module 'lodash'

I got this error when I install this package and run my program:

Error: Cannot find module 'lodash'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/some_dir/node_modules/bsv-p2p/lib/networks.js:1:71)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

Should lodash be added to package.json?

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.