kevinejohn / bsv-p2p Goto Github PK
View Code? Open in Web Editor NEWCommunicate on the Bitcoin P2P network
License: MIT License
Communicate on the Bitcoin P2P network
License: MIT License
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.
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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.