Code Monkey home page Code Monkey logo

bsv-p2p's People

Contributors

andrewrjohn avatar kevinejohn avatar samooth 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

Watchers

 avatar  avatar

bsv-p2p's Issues

Tx broadcast rejections not catched

When broadcasting a new tx, the promise will resolve as soon as the other peer sends a getdata_tx request to get the actual tx hex and any rejection he sends after that is lost and not returned.

bsv-p2p: ERROR Error: Invalid payload

Hi,
my node was working fine till last week but it is giving this error

bsv-p2p: Connecting to seed.bitcoinsv.io:8333
bsv-p2p: Connected to seed.bitcoinsv.io:8333
connected
bsv-p2p: ERROR Error: Invalid payload
at Object.read (/home/mshahzaib/Desktop/upworkRobinKohzeProject/MetaShard/MetaShard_server/node_modules/bsv-p2p/src/messages/version.js:47:24)
at Peer.readMessage (/home/mshahzaib/Desktop/upworkRobinKohzeProject/MetaShard/MetaShard_server/node_modules/bsv-p2p/src/index.js:159:33)
at Socket. (/home/mshahzaib/Desktop/upworkRobinKohzeProject/MetaShard/MetaShard_server/node_modules/bsv-p2p/src/index.js:357:23)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
bsv-p2p: Disconnected from seed.bitcoinsv.io
disconnects

I have tried connecting with other nodes also but get same error
const nodes = [seed.bitcoinsv.io, seed.cascharia.com, seed.satoshisvision.network]
thank you

Support to regtest environment

I've created a small program to connect to libsv/regtest-stack node. I've used Regtest's magic number in the constructor call.

I've tried to listen block event, but it is not fired. The events that are generated are "inv" "and block_hashes" only when i generate new blocks in the node. Is it that ok?

In the constants.js file there are no entries for Regtest magic_nums, I think it would be good to have Regtest in those constant objects.

Big blocks crash heap

Hi, the block bsv-mainnet height 826363 crashes node

peer.getBlock("000000000000000007a591825ac273c21c421f8a15c67b1d7e8babb123e39b2d", 120000)
Spends some time downloading Ok the block, but then crashes processing it.

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.