<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wakoinc</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wakoinc"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Wakoinc"/>
	<updated>2026-05-15T16:02:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Running_Bitcoin&amp;diff=53420</id>
		<title>Running Bitcoin</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Running_Bitcoin&amp;diff=53420"/>
		<updated>2014-12-10T12:48:55Z</updated>

		<summary type="html">&lt;p&gt;Wakoinc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two variations of the original bitcoin program available; one with a graphical user interface (usually referred to as just “Bitcoin”), and a &#039;headless&#039; version (called [[bitcoind]]). They are completely compatible with each other, and take the same command-line arguments, read the same configuration file, and read and write the same data files. You can run one copy of either Bitcoin or bitcoind on your system at a time (if you accidently try to launch another, the copy will let you know that Bitcoin or bitcoind is already running and will exit).&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Linux Quickstart==&lt;br /&gt;
&lt;br /&gt;
The simplest way to start from scratch with the command line client, automatically syncing blockchain and creating a wallet, is to just run this command (without arguments) from the directory containing your bitcoind binary:&lt;br /&gt;
&lt;br /&gt;
  ./bitcoind&lt;br /&gt;
&lt;br /&gt;
To run with the standard GUI interface:&lt;br /&gt;
&lt;br /&gt;
  ./bitcoin-qt&lt;br /&gt;
&lt;br /&gt;
==Command-line arguments==&lt;br /&gt;
&lt;br /&gt;
Give Bitcoin (or bitcoind) the -? or –-help argument and it will print out a list of the most commonly used command-line arguments and then exit:&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
  bitcoin-qt [command-line options]                     &lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
  -?                     This help message&lt;br /&gt;
  -conf=&amp;lt;file&amp;gt;           Specify configuration file (default: bitcoin.conf)&lt;br /&gt;
  -datadir=&amp;lt;dir&amp;gt;         Specify data directory&lt;br /&gt;
  -testnet               Use the test network&lt;br /&gt;
  -pid=&amp;lt;file&amp;gt;            Specify pid file (default: bitcoind.pid)&lt;br /&gt;
  -gen                   Generate coins (default: 0)&lt;br /&gt;
  -dbcache=&amp;lt;n&amp;gt;           Set database cache size in megabytes (4 to 4096, default: 100)&lt;br /&gt;
  -timeout=&amp;lt;n&amp;gt;           Specify connection timeout in milliseconds (default: 5000)&lt;br /&gt;
  -proxy=&amp;lt;ip:port&amp;gt;       Connect through SOCKS proxy&lt;br /&gt;
  -socks=&amp;lt;n&amp;gt;             Select SOCKS version for -proxy (4 or 5, default: 5)&lt;br /&gt;
  -onion=&amp;lt;ip:port&amp;gt;       Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)&lt;br /&gt;
  -dns                   Allow DNS lookups for -addnode, -seednode and -connect&lt;br /&gt;
  -port=&amp;lt;port&amp;gt;           Listen for connections on &amp;lt;port&amp;gt; (default: 8333 or testnet: 18333)&lt;br /&gt;
  -maxconnections=&amp;lt;n&amp;gt;    Maintain at most &amp;lt;n&amp;gt; connections to peers (default: 125)&lt;br /&gt;
  -addnode=&amp;lt;ip&amp;gt;          Add a node to connect to and attempt to keep the connection open&lt;br /&gt;
  -connect=&amp;lt;ip&amp;gt;          Connect only to the specified node(s)&lt;br /&gt;
  -seednode=&amp;lt;ip&amp;gt;         Connect to a node to retrieve peer addresses, and disconnect&lt;br /&gt;
  -externalip=&amp;lt;ip&amp;gt;       Specify your own public address&lt;br /&gt;
  -onlynet=&amp;lt;net&amp;gt;         Only connect to nodes in network &amp;lt;net&amp;gt; (IPv4, IPv6 or Tor)&lt;br /&gt;
  -discover              Discover own IP address (default: 1 when listening and no -externalip)&lt;br /&gt;
  -checkpoints           Only accept block chain matching built-in checkpoints (default: 1)&lt;br /&gt;
  -listen                Accept connections from outside (default: 1 if no -proxy or -connect)&lt;br /&gt;
  -bind=&amp;lt;addr&amp;gt;           Bind to given address and always listen on it. Use [host]:port notation for IPv6&lt;br /&gt;
  -dnsseed               Find peers using DNS lookup (default: 1 unless -connect)&lt;br /&gt;
  -banscore=&amp;lt;n&amp;gt;          Threshold for disconnecting misbehaving peers (default: 100)&lt;br /&gt;
  -bantime=&amp;lt;n&amp;gt;           Number of seconds to keep misbehaving peers from reconnecting (default: 86400)&lt;br /&gt;
  -maxreceivebuffer=&amp;lt;n&amp;gt;  Maximum per-connection receive buffer, &amp;lt;n&amp;gt;*1000 bytes (default: 5000)&lt;br /&gt;
  -maxsendbuffer=&amp;lt;n&amp;gt;     Maximum per-connection send buffer, &amp;lt;n&amp;gt;*1000 bytes (default: 1000)&lt;br /&gt;
  -upnp                  Use UPnP to map the listening port (default: 1 when listening)&lt;br /&gt;
  -debug=&amp;lt;category&amp;gt;      Output debugging information (default: 0, supplying &amp;lt;category&amp;gt; is optional)&lt;br /&gt;
                         If &amp;lt;category&amp;gt; is not supplied, output all debugging information.&lt;br /&gt;
                         &amp;lt;category&amp;gt; can be: addrman, alert, coindb, db, lock, rand, rpc, selectcoins, mempool, net, qt.&lt;br /&gt;
  -logtimestamps         Prepend debug output with timestamp (default: 1)&lt;br /&gt;
  -shrinkdebugfile       Shrink debug.log file on client startup (default: 1 when no -debug)&lt;br /&gt;
  -printtoconsole        Send trace/debug info to console instead of debug.log file&lt;br /&gt;
  -regtest               Enter regression test mode, which uses a special chain in which blocks can be solved instantly.&lt;br /&gt;
                         This is intended for regression testing tools and app development.&lt;br /&gt;
  -server                Accept command line and JSON-RPC commands&lt;br /&gt;
  -rpcuser=&amp;lt;user&amp;gt;        Username for JSON-RPC connections&lt;br /&gt;
  -rpcpassword=&amp;lt;pw&amp;gt;      Password for JSON-RPC connections&lt;br /&gt;
  -rpcport=&amp;lt;port&amp;gt;        Listen for JSON-RPC connections on &amp;lt;port&amp;gt; (default: 8332 or testnet: 18332)&lt;br /&gt;
  -rpcallowip=&amp;lt;ip&amp;gt;       Allow JSON-RPC connections from specified IP address&lt;br /&gt;
  -rpcthreads=&amp;lt;n&amp;gt;        Set the number of threads to service RPC calls (default: 4)&lt;br /&gt;
  -blocknotify=&amp;lt;cmd&amp;gt;     Execute command when the best block changes (all %s in cmd are replaced by block hash)&lt;br /&gt;
  -alertnotify=&amp;lt;cmd&amp;gt;     Execute command when a relevant alert is received or we see a really long fork (all %s in cmd are replaced by message)&lt;br /&gt;
  -keypool=&amp;lt;n&amp;gt;           Set key pool size to &amp;lt;n&amp;gt; (default: 100)&lt;br /&gt;
  -checkblocks=&amp;lt;n&amp;gt;       How many blocks to check at startup (default: 288, 0 = all)&lt;br /&gt;
  -checklevel=&amp;lt;n&amp;gt;        How thorough the block verification is (0-4, default: 3)&lt;br /&gt;
  -txindex               Maintain a full transaction index (default: 0)&lt;br /&gt;
  -loadblock=&amp;lt;file&amp;gt;      Imports blocks from external blk000??.dat file&lt;br /&gt;
  -reindex               Rebuild block chain index from current blk000??.dat files&lt;br /&gt;
  -par=&amp;lt;n&amp;gt;               Set the number of script verification threads (up to 16, 0 = auto, &amp;lt;0 = leave that many cores free, default: 0)&lt;br /&gt;
&lt;br /&gt;
Wallet options:&lt;br /&gt;
  -disablewallet         Do not load the wallet and disable wallet RPC calls&lt;br /&gt;
  -paytxfee=&amp;lt;amt&amp;gt;        Fee per kB to add to transactions you send&lt;br /&gt;
  -rescan                Rescan the block chain for missing wallet transactions&lt;br /&gt;
  -zapwallettxes         Clear list of wallet transactions (diagnostic tool; implies -rescan)&lt;br /&gt;
  -salvagewallet         Attempt to recover private keys from a corrupt wallet.dat&lt;br /&gt;
  -upgradewallet         Upgrade wallet to latest format&lt;br /&gt;
  -wallet=&amp;lt;file&amp;gt;         Specify wallet file (within data directory)&lt;br /&gt;
  -walletnotify=&amp;lt;cmd&amp;gt;    Execute command when a wallet transaction changes (all %s in cmd are replaced by TxID)&lt;br /&gt;
  -spendzeroconfchange   Spend unconfirmed change when sending transactions (default: 1)&lt;br /&gt;
&lt;br /&gt;
Block creation options:&lt;br /&gt;
  -blockminsize=&amp;lt;n&amp;gt;      Set minimum block size in bytes (default: 0)&lt;br /&gt;
  -blockmaxsize=&amp;lt;n&amp;gt;      Set maximum block size in bytes (default: 750000)&lt;br /&gt;
  -blockprioritysize=&amp;lt;n&amp;gt; Set maximum size of high-priority/low-fee transactions in bytes (default: 50000)&lt;br /&gt;
&lt;br /&gt;
SSL options: (see the Bitcoin Wiki for SSL setup instructions)&lt;br /&gt;
  -rpcssl                                  Use OpenSSL (https) for JSON-RPC connections&lt;br /&gt;
  -rpcsslcertificatechainfile=&amp;lt;file.cert&amp;gt;  Server certificate file (default: server.cert)&lt;br /&gt;
  -rpcsslprivatekeyfile=&amp;lt;file.pem&amp;gt;         Server private key (default: server.pem)&lt;br /&gt;
  -rpcsslciphers=&amp;lt;ciphers&amp;gt;                 Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)&lt;br /&gt;
&lt;br /&gt;
UI options:&lt;br /&gt;
  -lang=&amp;lt;lang&amp;gt;           Set language, for example &amp;quot;de_DE&amp;quot; (default: system locale)&lt;br /&gt;
  -min                   Start minimized&lt;br /&gt;
  -splash                Show splash screen on startup (default: 1)&lt;br /&gt;
  -choosedatadir         Choose data directory on startup (default: 0)&lt;br /&gt;
&lt;br /&gt;
Many of the boolean options can also be set to off by specifying them with a &amp;quot;no&amp;quot; prefix: e.g. -nodnseed.&lt;br /&gt;
&lt;br /&gt;
==Bitcoin.conf Configuration File==&lt;br /&gt;
All command-line options (except for -datadir and -conf) may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file.&lt;br /&gt;
&lt;br /&gt;
The configuration file is a list of setting=value pairs, one per line, with optional comments starting with the &#039;#&#039; character.&lt;br /&gt;
&lt;br /&gt;
The configuration file is not automatically created; you can create it using your favorite plain-text editor. By default, Bitcoin (or bitcoind) will look for a file named &#039;bitcoin.conf&#039; in the bitcoin [[data directory]], but both the data directory and the configuration file path may be changed using the -datadir and -conf command-line arguments.&lt;br /&gt;
{|&lt;br /&gt;
! Operating System&lt;br /&gt;
! Default bitcoin datadir&lt;br /&gt;
! Typical path to configuration file&lt;br /&gt;
|-&lt;br /&gt;
| Windows&lt;br /&gt;
| %APPDATA%\Bitcoin\&lt;br /&gt;
| (XP) C:\Documents and Settings\username\Application Data\Bitcoin\bitcoin.conf&lt;br /&gt;
(Vista, 7) C:\Users\username\AppData\Roaming\Bitcoin\bitcoin.conf&lt;br /&gt;
|-&lt;br /&gt;
| Linux&lt;br /&gt;
| $HOME/.bitcoin/&lt;br /&gt;
| /home/username/.bitcoin/bitcoin.conf&lt;br /&gt;
|-&lt;br /&gt;
| Mac OSX&lt;br /&gt;
| $HOME/Library/Application Support/Bitcoin/&lt;br /&gt;
| /Users/username/Library/Application Support/Bitcoin/bitcoin.conf&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note: if running Bitcoin in testnet mode, the sub-folder &amp;quot;testnet&amp;quot; will be appended to the data directory automatically.&lt;br /&gt;
&lt;br /&gt;
==Sample Bitcoin.conf==&lt;br /&gt;
Here is a sample bitcoin.conf file.&lt;br /&gt;
&lt;br /&gt;
  # bitcoin.conf configuration file. Lines beginning with # are comments.&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  # Network-related settings:&lt;br /&gt;
  &lt;br /&gt;
  # Run on the test network instead of the real bitcoin network.&lt;br /&gt;
  #testnet=0&lt;br /&gt;
  &lt;br /&gt;
  # Connect via a socks4 proxy&lt;br /&gt;
  #proxy=127.0.0.1:9050&lt;br /&gt;
  &lt;br /&gt;
  ##############################################################&lt;br /&gt;
  ##            Quick Primer on addnode vs connect            ##&lt;br /&gt;
  ##  Let&#039;s say for instance you use addnode=4.2.2.4          ##&lt;br /&gt;
  ##  addnode will connect you to and tell you about the      ##&lt;br /&gt;
  ##    nodes connected to 4.2.2.4.  In addition it will tell ##&lt;br /&gt;
  ##    the other nodes connected to it that you exist so     ##&lt;br /&gt;
  ##    they can connect to you.                              ##&lt;br /&gt;
  ##  connect will not do the above when you &#039;connect&#039; to it. ##&lt;br /&gt;
  ##    It will *only* connect you to 4.2.2.4 and no one else.##&lt;br /&gt;
  ##                                                          ##&lt;br /&gt;
  ##  So if you&#039;re behind a firewall, or have other problems  ##&lt;br /&gt;
  ##  finding nodes, add some using &#039;addnode&#039;.                ##&lt;br /&gt;
  ##                                                          ##&lt;br /&gt;
  ##  If you want to stay private, use &#039;connect&#039; to only      ##&lt;br /&gt;
  ##  connect to &amp;quot;trusted&amp;quot; nodes.                             ##&lt;br /&gt;
  ##                                                          ##&lt;br /&gt;
  ##  If you run multiple nodes on a LAN, there&#039;s no need for ##&lt;br /&gt;
  ##  all of them to open lots of connections.  Instead       ##&lt;br /&gt;
  ##  &#039;connect&#039; them all to one node that is port forwarded   ##&lt;br /&gt;
  ##  and has lots of connections.                            ##&lt;br /&gt;
  ##       Thanks goes to [Noodle] on Freenode.               ##&lt;br /&gt;
  ##############################################################&lt;br /&gt;
  &lt;br /&gt;
  # Use as many addnode= settings as you like to connect to specific peers&lt;br /&gt;
  #addnode=69.164.218.197&lt;br /&gt;
  #addnode=10.0.0.2:8333&lt;br /&gt;
  &lt;br /&gt;
  # ... or use as many connect= settings as you like to connect ONLY&lt;br /&gt;
  # to specific peers:&lt;br /&gt;
  #connect=69.164.218.197&lt;br /&gt;
  #connect=10.0.0.1:8333&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  # Maximum number of inbound+outbound connections.&lt;br /&gt;
  #maxconnections=&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  # JSON-RPC options (for controlling a running Bitcoin/bitcoind process)&lt;br /&gt;
  &lt;br /&gt;
  # server=1 tells Bitcoin-QT to accept JSON-RPC commands.&lt;br /&gt;
  #server=0&lt;br /&gt;
  &lt;br /&gt;
  # You must set rpcuser and rpcpassword to secure the JSON-RPC api&lt;br /&gt;
  #rpcuser=Ulysseys&lt;br /&gt;
  #rpcpassword=random_authvalue_DO_NOT_USE_THIS_STRING_OR_YOU_WILL_GET_ROBBED._USE_THE_ONE_BITCOIND_RECOMMENDS_WHEN_RUN_WITHOUT_ONE_SET_385593&lt;br /&gt;
  &lt;br /&gt;
  # How many seconds bitcoin will wait for a complete RPC HTTP request.&lt;br /&gt;
  # after the HTTP connection is established. &lt;br /&gt;
  #rpctimeout=30&lt;br /&gt;
  &lt;br /&gt;
  # By default, only RPC connections from localhost are allowed.  Specify&lt;br /&gt;
  # as many rpcallowip= settings as you like to allow connections from&lt;br /&gt;
  # other hosts (and you may use * as a wildcard character).&lt;br /&gt;
  # NOTE: opening up the RPC port to hosts outside your local&lt;br /&gt;
  # trusted network is NOT RECOMMENDED, because the rpcpassword&lt;br /&gt;
  # is transmitted over the network unencrypted.&lt;br /&gt;
  #rpcallowip=10.1.1.34&lt;br /&gt;
  #rpcallowip=192.168.1.*&lt;br /&gt;
  &lt;br /&gt;
  # Listen for RPC connections on this TCP port:&lt;br /&gt;
  #rpcport=8332&lt;br /&gt;
  &lt;br /&gt;
  # You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind&lt;br /&gt;
  # running on another host using this option:&lt;br /&gt;
  #rpcconnect=127.0.0.1&lt;br /&gt;
  &lt;br /&gt;
  # Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate&lt;br /&gt;
  # with Bitcoin -server or bitcoind&lt;br /&gt;
  #rpcssl=1&lt;br /&gt;
  &lt;br /&gt;
  # OpenSSL settings used when rpcssl=1&lt;br /&gt;
  #rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH&lt;br /&gt;
  #rpcsslcertificatechainfile=server.cert&lt;br /&gt;
  #rpcsslprivatekeyfile=server.pem&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  # Miscellaneous options&lt;br /&gt;
  &lt;br /&gt;
  # Set gen=1 to attempt to generate bitcoins&lt;br /&gt;
  #gen=0&lt;br /&gt;
   &lt;br /&gt;
  # Pre-generate this many public/private key pairs, so wallet backups will be valid for&lt;br /&gt;
  # both prior transactions and several dozen future transactions.&lt;br /&gt;
  #keypool=100&lt;br /&gt;
  &lt;br /&gt;
  # Pay an optional transaction fee every time you send bitcoins.  Transactions with fees&lt;br /&gt;
  # are more likely than free transactions to be included in generated blocks, so may&lt;br /&gt;
  # be validated sooner.&lt;br /&gt;
  #paytxfee=0.00&lt;br /&gt;
  &lt;br /&gt;
  # Allow direct connections for the &#039;pay via IP address&#039; feature.&lt;br /&gt;
  #allowreceivebyip=1&lt;br /&gt;
    &lt;br /&gt;
  # User interface options&lt;br /&gt;
  &lt;br /&gt;
  # Start Bitcoin minimized&lt;br /&gt;
  #min=1&lt;br /&gt;
  &lt;br /&gt;
  # Minimize to the system tray&lt;br /&gt;
  #minimizetotray=1&lt;br /&gt;
&lt;br /&gt;
==Platforms==&lt;br /&gt;
===Windows===&lt;br /&gt;
&lt;br /&gt;
====Start automatically====&lt;br /&gt;
To configure the Bitcoin client to start automatically:&lt;br /&gt;
&lt;br /&gt;
You might use the configuration-file, or the GUI-Settings:&lt;br /&gt;
&lt;br /&gt;
Settings -&amp;gt; Options&lt;br /&gt;
&lt;br /&gt;
then mark the checkbox titled:&lt;br /&gt;
 [X] Start Bitcoin on system startup&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:Client_Settings_Options_windows.png]]&lt;br /&gt;
&lt;br /&gt;
====Batch automation====&lt;br /&gt;
To work with batch, you have to start the daemon (bitcoind.exe). The bitcoin.exe run with option &amp;quot;-server&amp;quot; will respond with GUI-messages you are not able to process its answers.&lt;br /&gt;
&lt;br /&gt;
===Mac===&lt;br /&gt;
[[{{ns:file}}:MacBitcoinStartOnLogin.png]]&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
[[{{ns:file}}:Client_Settings_Options.png]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Data directory]]&lt;br /&gt;
&lt;br /&gt;
[[es:Ejecución de Bitcoin]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Wakoinc</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Irreversible_Transactions&amp;diff=53311</id>
		<title>Irreversible Transactions</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Irreversible_Transactions&amp;diff=53311"/>
		<updated>2014-12-04T01:26:15Z</updated>

		<summary type="html">&lt;p&gt;Wakoinc: Fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Double-spending is the result of successfully spending some money more than once.  Bitcoin protects against double spending by verifying each transaction added to the [[block chain]] to ensure that the inputs for the transaction had not previously already been spent.&lt;br /&gt;
&lt;br /&gt;
Other electronic systems prevent double-spending by having a master authoritative source that follows business rules for authorizing each transaction.  Bitcoin uses a decentralized system, where a consensus among nodes following the same protocol is substituted for a central authority.  &lt;br /&gt;
&lt;br /&gt;
Bitcoin has some exposure to fraudulent double-spending when a transaction is first made, with less and less risk as a transaction gains [[confirmation|confirmations]].&lt;br /&gt;
&lt;br /&gt;
==Attack vectors==&lt;br /&gt;
&lt;br /&gt;
===Race attack===&lt;br /&gt;
&lt;br /&gt;
Traders and merchants who accept a payment immediately on seeing &amp;quot;0/unconfirmed&amp;quot; are exposed to a double-spend occurring, if there was a fraudulent attempt that successfully communicated one transaction to the merchant yet communicated a different transaction that spends the same coin that was first to eventually make it into the block chain.&lt;br /&gt;
&lt;br /&gt;
Merchants can take precautions (e.g., disable incoming connections, only connect to well connected nodes) to lessen the risk of a race attack but the risk cannot be eliminated.  Therefore, the cost/benefit of the risk needs to be considered when accepting payment on 0/unconfirmed when there is no recourse against the attacker.&lt;br /&gt;
&lt;br /&gt;
The [[research]] paper [http://eprint.iacr.org/2012/248.pdf Two Bitcoins at the Price of One] finds that the protocol allows a high degree of success by an attacker in performing race attacks.  The method studied in the research paper depends on access to the merchant&#039;s Bitcoin node which is why that even prior to this paper, recommendations for merchants include disabling incoming connections and to choose specific outgoing connections&amp;lt;ref&amp;gt;[http://bitcointalk.org/index.php?topic=79090.msg881283#msg881283 BitcoinTalk Thread - Two Bitcoins at the Price of One]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Finney attack===&lt;br /&gt;
&lt;br /&gt;
Another attack the trader or merchant is exposed to when accepting payment on 0/unconfirmed.  The Finney attack is a fraudulent double-spend that requires the participation of a miner once a block has been mined&amp;lt;ref&amp;gt;[http://www.bitcointalk.org/index.php?topic=3441.msg48384#msg48384 Best practice for fast transaction acceptance - how high is the risk?]&amp;lt;/ref&amp;gt;.  The risk of a Finney attack cannot be eliminated regardless of the precautions taken by the merchant, but the participation of a miner is required and a specific sequence of events must occur.  Thus the attack is not trivial nor inexpensive to perform and only makes sense for the attacker when the gains from the attack are significant.  Just like with the race attack, a trader or merchant should consider the cost / benefit when accepting payment on just one confirmation when there is no recourse against the attacker.&lt;br /&gt;
&lt;br /&gt;
===Vector76 attack===&lt;br /&gt;
&lt;br /&gt;
Also referred to as a one-confirmation attack, is a combination of the race attack and the Finney attack such that a transaction that even has one confirmation can still be double-spent.  The same protective action for the race attack (no incoming connections, explicit outgoing connection to a well-connected node) significantly reduces the risk of this occurring.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that a successful attack costs the attacker one block - they need to &#039;sacrifice&#039; a block by not broadcasting it, and instead relaying it only to the attacked node.&lt;br /&gt;
&lt;br /&gt;
See on [http://bitcointalk.org/index.php?topic=36788.msg463391#msg463391 BitcoinTalk] or further [http://www.reddit.com/r/Bitcoin/comments/2e7bfa/vector76_double_spend_attack/cjwya6x example of an attack scenario].&lt;br /&gt;
&lt;br /&gt;
===Brute force attack===&lt;br /&gt;
&lt;br /&gt;
This attack has a chance to work even if the merchant waits for some confirmations, but requires relatively high hashrate.&lt;br /&gt;
&lt;br /&gt;
The attacker submits to the merchant/network a transaction which pays the merchant, while privately mining a blockchain fork in which a double-spending transaction is included instead. After waiting for &#039;&#039;n&#039;&#039; confirmations, the merchant sends the product. If the attacker happened to find more than &#039;&#039;n&#039;&#039; blocks at this point, he releases his fork and regains his coins; otherwise, he can try to continue extending his fork with the hope of being able to catch up with the network. If he never manages to do this, the attack fails and the payment to the merchant will go through.&lt;br /&gt;
&lt;br /&gt;
The probability of success is a function of the attacker&#039;s hashrate (as a proportion of the total network hashrate) and the number of confirmations the merchant waits for. For example, if the attacker controls 10% of the network hashrate but the merchant waits for 6 confirmations, the success probability is on the order of 0.1%&amp;lt;ref&amp;gt;[https://bitcoil.co.il/Doublespend.pdf Analysis of hashrate-based double-spending]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===&amp;gt;50% attack===&lt;br /&gt;
&lt;br /&gt;
If the attacker controls more than half of the network hashrate, the previous attack has a probability of 100% to succeed. Since the attacker can generate blocks faster than the rest of the network, he can simply persevere with his private fork until it becomes longer than the branch built by the honest network, from whatever disadvantage.&lt;br /&gt;
&lt;br /&gt;
No amount of confirmations can prevent this attack; however, waiting for confirmations does increase the aggregate resource cost of performing the attack, which could make it unprofitable or delay it long enough for the circumstances to change or slower-acting synchronization methods to kick in.&lt;br /&gt;
&lt;br /&gt;
==Risk management==&lt;br /&gt;
&lt;br /&gt;
There are third-party services to assist traders and merchants to help manage the risk or to insure against losses.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Weaknesses]]&lt;br /&gt;
* [http://codinginmysleep.com/bitcoin-attacks-in-plain-english Bitcoin Attacks in Plain English] by David Perry&lt;br /&gt;
&lt;br /&gt;
[[de:Doppelausgaben]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;/div&gt;</summary>
		<author><name>Wakoinc</name></author>
	</entry>
</feed>