<?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=Satoshi_Client_Transaction_Exchange</id>
	<title>Satoshi Client Transaction Exchange - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Satoshi_Client_Transaction_Exchange"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Satoshi_Client_Transaction_Exchange&amp;action=history"/>
	<updated>2026-05-15T09:20:27Z</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=Satoshi_Client_Transaction_Exchange&amp;diff=5880&amp;oldid=prev</id>
		<title>Admin: Created page with &quot; The Satoshi client advertises locally generated transactions and relays transactions from other nodes. This article describes the operations that deal with this exchange of t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Satoshi_Client_Transaction_Exchange&amp;diff=5880&amp;oldid=prev"/>
		<updated>2019-06-14T04:02:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; The Satoshi client advertises locally generated transactions and relays transactions from other nodes. This article describes the operations that deal with this exchange of t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
The Satoshi client advertises locally generated transactions and relays&lt;br /&gt;
transactions from other nodes. This article describes the operations&lt;br /&gt;
that deal with this exchange of transactions.&lt;br /&gt;
&lt;br /&gt;
Transactions are exchanged only if they are standard and [[Invalid block|valid]].&lt;br /&gt;
&lt;br /&gt;
== Wallet Send ==&lt;br /&gt;
&lt;br /&gt;
The client periodically calls SendMessages() (in main.cpp) which calls&lt;br /&gt;
ResendWalletTransactions to send transactions generated locally.&lt;br /&gt;
This routine looks to see if there has been a new block since last time,&lt;br /&gt;
and if so, and the local transaction are still not in a block,&lt;br /&gt;
then the transactions are sent to all nodes.&lt;br /&gt;
This is done only about every 30 minutes.&lt;br /&gt;
&lt;br /&gt;
Transactions are only rebroadcast if they have a timestamp at least&lt;br /&gt;
5 minutes older than the last block was received. They are sorted&lt;br /&gt;
and sent oldest first.&lt;br /&gt;
&lt;br /&gt;
== Periodic Advertisement ==&lt;br /&gt;
&lt;br /&gt;
The client periodically calls SendMessages() (in main.cpp) which&lt;br /&gt;
determines if a message should be sent to a remote node.&lt;br /&gt;
For each message processing iteration, one node is chosen as the&lt;br /&gt;
&amp;quot;trickle node&amp;quot;. This node is the only one chosen to receive&lt;br /&gt;
an &amp;quot;addr&amp;quot; message, if appropriate.&lt;br /&gt;
&lt;br /&gt;
In the section for inventory, the client sends 1/4 of the transaction&lt;br /&gt;
inventory, determined randomly, UNLESS they are the trickle node,&lt;br /&gt;
in which case they receive ALL transactions. Yes, that seems reversed,&lt;br /&gt;
but it is what it is. If the node is to receive 1/4 (not all), then the&lt;br /&gt;
code also avoids sending any transactions that came from the local&lt;br /&gt;
wallet. The comments indicate this is intended to increase privacy.&lt;br /&gt;
&lt;br /&gt;
== Relay ==&lt;br /&gt;
&lt;br /&gt;
When the client receives a transaction via a &amp;quot;tx&amp;quot; messages,&lt;br /&gt;
it calls RelayMessage, which calls RelayInventory, which queues the&lt;br /&gt;
inventory to be sent to all other nodes.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[Transaction_broadcasting | Transaction broadcasting]]&lt;br /&gt;
&lt;br /&gt;
==Footnotes==&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&lt;br /&gt;
[http://bitcoin.it/ http://bitcoin.it/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Manuals]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>