Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Xenland on April 17, 2013, 12:47:04 PM



Title: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: Xenland on April 17, 2013, 12:47:04 PM
How does one ping a peer for new blocks?  ??? Is it TCP commands RPC what?


Title: Re: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: headygains on April 17, 2013, 04:08:36 PM
I think it's RPC but I'm not sure, I was trying to setup a ltc miner last night that had me editing conf files and rpc was the precursor in the code...


Title: Re: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: grue on April 17, 2013, 04:45:32 PM
https://en.bitcoin.it/wiki/Protocol_specification#getblocks
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list (getblockhash/getblock/getblockcount)


Title: Re: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: Xenland on April 17, 2013, 10:46:08 PM
Like how do I "ping" a peer with out username/password over a network?
I know the current Bitcoin client does it, It can't just query it self, where would the Blockchain sync download come from?
So how do I as my own Bitcoin client query BitcoinDevkit.com node for block information?


Title: Re: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: grue on April 18, 2013, 01:36:17 AM
I really don't understand what you're trying to do. Are you trying to make your own custom client that communicates with other clients? If that's the case, look into how bitcoin communicates with other clients over tcp (https://en.bitcoin.it/wiki/Protocol_specification#Common_structures). Alternately, run your own bitcoin instance and query that.


Title: Re: Manually pinging bitcoind/bitcoin-qt peers for new blocks?
Post by: Xenland on April 18, 2013, 03:15:46 AM
I really don't understand what you're trying to do. Are you trying to make your own custom client that communicates with other clients? If that's the case, look into how bitcoin communicates with other clients over tcp (https://en.bitcoin.it/wiki/Protocol_specification#Common_structures). Alternately, run your own bitcoin instance and query that.

That is it, I've been considering making my own personal client for learning and I know i've asked this before but got around 10-15 frustrated people wondering what i was talking about I believe they referred me to that page you showed me as I've seen it 1000 times and have it booked marked but I needed someone to say "This is the points of interest for what your accomplishing" instead of "Here is a full page of everything about bitcoin here ya go!", so now I know where to look and I know others were asking this question as well and seem to be in the same state of mind as me on how to go about this. thanks this is what in needed :)