<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Network</id>
	<title>Network - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Network"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Network&amp;action=history"/>
	<updated>2026-05-15T06:25:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Network&amp;diff=2155&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;{{#seo: |title=Bitcoin network – Review, p2p structure, payments - zaoniao Wiki |keywords=Bitcoin network, blockchain, network, payment, p2p, protocol |description=Bitcoin n...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Network&amp;diff=2155&amp;oldid=prev"/>
		<updated>2019-03-16T09:07:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#seo: |title=Bitcoin network – Review, p2p structure, payments - zaoniao Wiki |keywords=Bitcoin network, blockchain, network, payment, p2p, protocol |description=Bitcoin n...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#seo:&lt;br /&gt;
|title=Bitcoin network – Review, p2p structure, payments - zaoniao Wiki&lt;br /&gt;
|keywords=Bitcoin network, blockchain, network, payment, p2p, protocol&lt;br /&gt;
|description=Bitcoin network is a peer-to-peer (p2p) payment network that operates on a cryptographic protocol. Blockchain network is used as a simple broadcasting network to propagate transactions and blocks.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;amp/&amp;gt;&lt;br /&gt;
[[File:Bitcoinnetwork.png|400px|right|Bitcoin network - Blockchain network]]&lt;br /&gt;
'''Bitcoin network''' is a [[peer-to-peer]] payment network that operates on a cryptographic protocol. Users send and receive bitcoins, the units of currency, by broadcasting digitally signed messages to the network using bitcoin cryptocurrency wallet [[software]]. Transactions are recorded into a distributed, replicated public database known as the [[blockchain]], with consensus achieved by a proof-of-work system called mining. Satoshi Nakamoto, the designer of bitcoin claimed that design and coding of bitcoin begun in 2007. The project was released in 2009 as open source software.&lt;br /&gt;
&lt;br /&gt;
The Blockchain network requires minimal structure to share transactions. An ad hoc decentralized network of volunteers is sufficient. Messages are broadcast on a best effort basis, and nodes can leave and rejoin the network at will. Upon reconnection, a node downloads and verifies new blocks from other nodes to complete its local copy of the blockchain.&lt;br /&gt;
&lt;br /&gt;
Bitcoin network is used as a simple broadcasting network to propagate transactions and blocks. All communications are done over TCP. [[Bitcoin]] is fully able to use ports other than 8333 via the -port parameter. IPv6 is [https://bitcointalk.org/index.php?topic=81378.0 supported] with Bitcoind/Bitcoin-Qt v0.7.&lt;br /&gt;
&lt;br /&gt;
== Bitcoin Network Messages ==&lt;br /&gt;
{{#ev:youtube|oSP-taqLWPQ|500|right|The Bitcoin and Blockchain Network Explained}}&lt;br /&gt;
* ''version'' - Information about program version and block count. Exchanged when first connecting.&lt;br /&gt;
* ''verack'' - Sent in response to a version message to acknowledge that we are willing to connect.&lt;br /&gt;
* ''addr'' - List of one or more IP addresses and ports.&lt;br /&gt;
* ''inv'' - &amp;quot;I have these blocks/transactions: ...&amp;quot; Normally sent only when a ''new'' block or transaction is being relayed. This is only a list, not the actual data.&lt;br /&gt;
* ''getdata'' - Request a single block or transaction by hash.&lt;br /&gt;
* ''getblocks'' - Request an ''inv'' of all blocks in a range.&lt;br /&gt;
* ''getheaders'' - Request a ''headers'' message containing all block headers in a range.&lt;br /&gt;
* ''tx'' - Send a transaction. This is sent only in response to a ''getdata'' request.&lt;br /&gt;
* ''block'' - Send a block. This is sent only in response to a ''getdata'' request.&lt;br /&gt;
* ''headers'' - Send up to 2,000 block headers. Non-generators can download the headers of blocks instead of entire blocks.&lt;br /&gt;
* ''getaddr'' - Request an ''addr'' message containing a bunch of known-active peers (for bootstrapping).&lt;br /&gt;
* ''submitorder'', ''checkorder'', and ''reply'' - Used when performing an [[IP address|IP transaction]].&lt;br /&gt;
* ''alert'' - Send a Bitcoin network alert key.&lt;br /&gt;
* ''ping'' - Does nothing. Used to check that the connection is still online. A TCP error will occur if the connection has died.&lt;br /&gt;
&lt;br /&gt;
More information and in-depth technical information is in the Bitcoin Network Protocol Specification.&lt;br /&gt;
&lt;br /&gt;
== Blockchain Network Connection ==&lt;br /&gt;
To connect to a peer, you send a ''version'' message containing your version number, block count, and current time. The remote peer will send back a ''verack'' message and his own ''version'' message if he is accepting connections from your version. You will respond with your own ''verack'' if you are accepting connections from his version.&lt;br /&gt;
&lt;br /&gt;
The time data from all of your peers is collected, and the median is used by Bitcoin for all network tasks that use the time (except for other version messages)&amp;lt;ref&amp;gt;[https://www.bitcoinmining.com/getting-started/ Bitcoin Mining Guide - Getting started with Bitcoin mining]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You then exchange ''getaddr'' and ''addr'' messages, storing all [[Bitcoin address|addresses]] that you don't know about. ''addr'' messages often contain only one address, but sometimes contain up to 1000. This is most common at the beginning of an [[exchange]].&lt;br /&gt;
&lt;br /&gt;
== Standard relaying ==&lt;br /&gt;
When someone sends a transaction, they send an ''inv'' message containing it to all of their peers. Their peers will request the full transaction with ''getdata''. If they consider the transaction valid after receiving it, they will also broadcast the transaction to all of their peers with an ''inv'', and so on. Peers ask for or relay transactions only if they don't already have them. A peer will never rebroadcast a transaction that it already knows about, though transactions will eventually be forgotten if they don't get into a block after a while. The sender and receiver of the transaction will rebroadcast, however.&lt;br /&gt;
&lt;br /&gt;
Anyone who is generating will collect valid received transactions and work on including them in a block. When someone does find a block, they send an ''inv'' containing it to all of their peers, as above. It works the same as transactions&amp;lt;ref&amp;gt;[https://bitcoin.org Bitcoin - Open P2P money]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Everyone broadcasts an ''addr'' containing their own IP address every 24 hours. Nodes relay these messages to a couple of their peers and store the address if it's new to them. Through this system, everyone has a reasonably clear picture of which IPs are connected to the network at the moment. After connecting to the network, you get added to everyone's address database almost instantly because of your initial ''addr''.&lt;br /&gt;
&lt;br /&gt;
Blockchain Network alerts are broadcast with ''alert'' messages. No ''inv''-like system is used; these contain the entire alert. If a received alert is valid (signed by one of the people with the private key), it is relayed to all peers. For as long as an alert is still in effect, it is rebroadcast at the start of every new connection.&lt;br /&gt;
&lt;br /&gt;
== Initial block download ==&lt;br /&gt;
At the start of a connection, you send a ''getblocks'' message containing the [[hash]] of the latest block you know about. If Bitcoin p2p doesn't think that this is the latest block, it will send an ''inv'' that contains up to 500 blocks ahead of the one you listed. You will then request all of these blocks with ''getdata'', and the peer will send them to you with ''block'' messages. After you have downloaded and processed all of these blocks, you will send another ''getblocks'', etc., until you have all of the blocks.&lt;br /&gt;
&lt;br /&gt;
== Thin SPV Clients ==&lt;br /&gt;
[[BIP 0037]] introduced support for thin or lite clients by way of Simple Payment Verification. SPV clients do not need to download the full block contents to verify the existence of funds in the blockchain, but rely on the chain of block headers and bloom filters to obtain the data they need from other nodes. This method of client communication allows high security trustless communication with full nodes, but at the expensive of some privacy as the peers can deduce which addresses the SPV client is seeking information about. &lt;br /&gt;
&lt;br /&gt;
[[Multibit|MultiBit]] and [[Bitcoin wallet]] work in this fashion using the library [[bitcoinj]] as their foundation. &lt;br /&gt;
&lt;br /&gt;
== Bootstrapping ==&lt;br /&gt;
You choose which peers to connect to by sorting your address database by the time since you last saw the address and then adding a bit of randomization.&lt;br /&gt;
&lt;br /&gt;
Bitcoin has three methods of finding peers&amp;lt;ref&amp;gt;[https://bitclubnetwork.com BitClub Network]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Addr ===&lt;br /&gt;
The ''addr'' messages described above create an effect similar to the [[IRC]] bootstrapping method. You know reasonably quickly whenever a peer joins, though you won't know for a while when they leave.&lt;br /&gt;
&lt;br /&gt;
Bitcoin comes with a list of addresses known as &amp;quot;seed nodes&amp;quot;. If you are unable to connect to IRC and you've never connected to the network before, the client will update the address database by connecting to one of the nodes from this list.&lt;br /&gt;
&lt;br /&gt;
The -addnode command line option can be used to manually add a node. The -connect option can force bitcoin to connect only to a specific node.&lt;br /&gt;
&lt;br /&gt;
=== DNS ===&lt;br /&gt;
Bitcoin looks up the IP Addresses of several host names and adds those to the list of potential addresses. This is the default seeding mechanism, as of v0.6.x and later.&lt;br /&gt;
&lt;br /&gt;
=== IRC ===&lt;br /&gt;
As-of version 0.6.x of the Bitcoin client, IRC bootstrapping is no longer enabled by default. The information below is accurate for most versions prior.&lt;br /&gt;
&lt;br /&gt;
Bitcoin joins a random channel between #bitcoin00 and #bitcoin99 on irc.lfnet.org. Your nick is set to an encoded form of your IP address. By decoding all the nicks of all users on the channel, you get a list of all IP addresses currently connected to Bitcoin.&lt;br /&gt;
&lt;br /&gt;
For hosts that cannot make outbound connections on port 6667, the lfnet servers are also [[FAQ#Do_I_need_to_configure_my_firewall_to_run_bitcoin?|listening on port 7777]].&lt;br /&gt;
&lt;br /&gt;
== Heartbeat ==&lt;br /&gt;
If thirty minutes or more has passed since the client has transmitted any messages it will transmit a message to keep the connection to the peer node alive.&lt;br /&gt;
&lt;br /&gt;
If ninety minutes has passed since a p2p node has communicated any messages, then the client will assume that connection has closed.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://bitcoinstatus.rowit.co.uk/ Historical Network Status (no longer updated)]&lt;br /&gt;
* [http://getaddr.bitnodes.io/ Bitnodes.io's network size estimate]&lt;br /&gt;
* [http://fullnode.info/howto.html How to run your own cheap full bitcoin node]&lt;br /&gt;
* [https://www.bitcoinmining.com/ Bitcoin Mining]&lt;br /&gt;
* [https://www.youtube.com/watch?v=GmOzih6I1zs Video: What is Bitcoin Mining]&lt;br /&gt;
* [https://en.bitcoin.it/wiki/Network https://en.bitcoin.it/wiki/Network]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Satoshi Client Node Discovery]]&lt;br /&gt;
* [[Anonymity &amp;amp; Security]]&lt;br /&gt;
* [[Transaction fee]]&lt;br /&gt;
* [[Satoshi Nakamoto]]&lt;br /&gt;
* [[Smart contract]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[es:Red]]&lt;br /&gt;
[[de:Netzwerk]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bitcoin]]&lt;br /&gt;
[[Category:Technology]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>