6 steps to running the Bitcoin network (2024)

In section five of the Bitcoin white paper, Satoshi Nakamoto defines a set of instructions that describe the optimal behaviours that a node participating on the network should exhibit.

These nodes are characterised by their work of producing valid blocks, which they then distribute to other nodes and validating their blocks in return. Without nodes performing these tasks, the network will not function.

Nodes take on these important tasks by collating, validating and recording all interactions occurring on the Bitcoin network in real time.

Section 5 of the Bitcoin white paper, called ‘Network’, outlines a list of instructions that nodes must follow to correctly operate the Bitcoin network.

The steps to run the network are as follows:

  1. New transactions are broadcast to all nodes.
  2. Each node collects new transactions into a block.
  3. Each node works on finding a difficult proof-of-work for its block.
  4. When a node finds a proof-of-work, it broadcasts the block to all nodes.
  5. Nodes accept the block only if all transactions in it are valid and not already spent.
  6. Nodes express their acceptance of the block by working on creating the next block in the chain, using the hash of the accepted block as the previous hash.

Bitcoin mining is a competition, and cheating is a losing game

By collectively following these instructions, nodes are incentivised to find ways to develop their own competitive advantage. By doing so, their investment in hardware and connectivity will allow the network to scale efficiently. These incentives are structured such that the most honest, open and capable participants are the most likely to be rewarded for their actions.

When trying to understand these instructions, it helps to think of the system operating at a global scale, managing many billions of transactions per block. By keeping this scenario in mind, it becomes very easy to understand why there is a strong drive to follow the instructions very closely.

The network is designed like this so that attacks are not economically viable and thus won’t be sustained.

Steps to running the Bitcoin network

Step 1: New transactions are broadcast to all nodes

This instruction states that nodes should transmit and broadcast any new transactions that it sees to all other nodes and:

  • If the transaction came from one node, it should not be sent back to that same node.
  • If a node knows that the node it received the transaction from would have sent it to other nodes already, there is no reason to send it to those nodes either, however;
  • If a node knows that another node has not received a transaction it has, the node will send it.

Step 2: Each node collects new transactions into a block

There are numerous steps to this process, and at scale there is significant investment in infrastructure needed to manage this task effectively. Each transaction spends outputs from the UTXO set to which the spending party must attach a valid scriptSig. The node then puts the transaction through a set of tests checking the following:

* the scriptSig for each input validly solves the locking script / scriptPubkey
* this is the first time these inputs have been spent
* the outputs being generated are valid

A node can append transactions to a block in any order they like. However, thanks to the simplicity of Merkle trees, as new transactions arrive the most efficient method is to append transactions to the end of the block and calculate what is added to the Merkle tree.

At scale this effectively minimises the work that is re-done in the management of the Merkle tree allowing the block building capacity of the node to increase in the most efficient manner.

Step 3: Each node works on finding a difficult proof-of-work block

The process of finding a proof-of-work is done by specialised machines called ASIC miners or ‘hashers’. The process is typically governed by an intermediate control system called a ‘Pool Miner’, which manages the process. Nodes distribute key information about the incomplete block to the pool miners who use it to manage one or more hashers in the search for a valid proof-of-work.

Hashers perform the process of ‘hashing’ the block header by modifying a nonce (number used once) in an effort to solve a difficult puzzle, trying to find a block header that hashes to a number that is less than another number (difficulty target). This puzzle has a random outcome whose solution frequency is ‘self tuned’ by the network to try and maintain the block discovery rate to as close to 10 minutes as possible.

This time is fairly close to optimal in that it results in a low number of orphan blocks, while still giving ample opportunity (2016 per fortnight) for nodes to be complete in the process of ordering the ledger. Block templates to which the most hash has been applied have the highest probability of being valid.

Step 4: When a node finds a proof-of-work, it broadcasts the block to all nodes

When a node solves the puzzle, it must also propagate the solution to all other nodes on the network as quickly as possible. This is to minimise the chance that a competing node will also find their own valid proof-of-work and propagate it to the network, sparking what is known as an ‘Orphan Race’.

When analysing this directive it is important to also look at what is in a block so that we can understand how much information needs to be transmitted across the network. In its full form, a block is a set of all transactions in the Merkle Tree plus the block header.

These blocks represent an incorruptible record of valid transactions. In this way we can consider the chain of blocks as a chronologically ordered set of timestamps. The process of using proof of work gives the network an ideal method to control the cadence of these timestamps, with each node operating as part of a distributed, leaderless time-stamping service.

Step 5: Nodes accept the block only if all transactions in it are valid and not already spent

Step 5 of running the Bitcoin network makes up abig part of the user security model. Bitcoin users can accept a Bitcoin node’s confirmation that a transaction they have broadcast has been accepted and is considered valid by a majority of block writers. This removes any need for users to wait on block confirmation for the transaction’s timestamp to be officially recorded, allowing for almost instant transaction clearing and settlement.

This instruction clearly outlines the node’s need to validate the contents of the block against its own knowledge of what exists on the ledger, and of the rules in place governing the protocol. If a node receives a block that contains a transaction that is invalid, it cannot be accepted as valid. For example, if it receives a block that contains a transaction that spends an already used output, this transaction is invalid and the block must be rejected, ensuring that spendable outputs on the ledger can only be used once.

Similarly, nodes will always reject a transaction that attempts to re-spend a used input regardless of whether the first seen transaction is already in a block or not. In this way, if a transaction’s input is already used, the Bitcoin user should see a response from at least one node to indicate that the newly introduced transaction was rejected as a double spend. If this ever happens, the user can immediately know that something is wrong with the transaction. This can happen occasionally due to user error or platform design and nodes have robust processes in place to quickly disconnect nodes and any other network peers that are trying to propagate double spends.

Step 6: Nodes express their acceptance of the block by working on creating the next block in the chain, using the hash of the accepted block as the previous hash

As soon as a node has received and validated a new block from one of its competitors, it is incentivised to build its new block template using that block’s hash. This has the effect of each subsequent block being added into a chain of valid proof of work.

This hyper awareness will have the effect of reducing the potential of orphan races, making the network more efficient and reducing the amount of work done producing valid blocks that don’t form part of the longest valid chain of proof-of-work.

Keep in mind also that nodes have the freedom to reject blocks on any basis, and it might eventuate that a group of nodes on the network determine that a particular subset of nodes are not following lawful order to generate a correction on the ledger.

Nodes follow Nakamoto Consensus which is used to set and act upon any rules agreed to by the operators of that group of nodes. Bitcoin’s traceability and incentive structure produces outcomes where the most honest, lawful action is the most profitable in the long term.

An introduction to Bitcoin infrastructure

If you’re interested in more in-depth knowledge on how to run the Bitcoin network most efficiently, you’re sure to benefit from the BSV Academy’s introduction to Bitcoin Infrastructure course.

This certificate course is focussed on providing students a solid understanding of the role that nodes and node operators play in the construction of the network. In particular it focuses on the incentives that drive enterprise operators to spend large sums of money to build and operate their infrastructure.

To sign up for this free course, head over here.

6 steps to running the Bitcoin network (2024)

FAQs

6 steps to running the Bitcoin network? ›

Once the fee is met, the transaction is transferred to a block, where it is processed. Then, the transaction information within the block is validated by miners, the block is closed, and all receivers collect their bitcoin. Both wallets display their appropriate balances, and the next transactions are processed.

How does Bitcoin work step by step? ›

Once the fee is met, the transaction is transferred to a block, where it is processed. Then, the transaction information within the block is validated by miners, the block is closed, and all receivers collect their bitcoin. Both wallets display their appropriate balances, and the next transactions are processed.

What are the steps for a Bitcoin transaction? ›

The steps involve creating a new unique Bitcoin address, submitting the payment, verifying the transaction, encoding the information in a new block, and validating payments using only unspent transaction outputs (UTXOs) as inputs.

How to connect to Bitcoin network? ›

All you need to do is download (and run) a bitcoin client. When you run the client it will connect to other nodes and start downloading a full copy of the blockchain (the file that contains all the verified transactions).

What do you need to run a full Bitcoin node? ›

Desktop or laptop hardware running recent versions of Windows, Mac OS X, or Linux. 7 gigabytes of free disk space, accessible at a minimum read/write speed of 100 MB/s. An unmetered connection, a connection with high upload limits, or a connection you regularly monitor to ensure it doesn't exceed its upload limits.

How much is $1 Bitcoin in US dollars? ›

Current BTC to USD exchange rate

1 BTC equals 63,641.00 USD. The current value of 1 Bitcoin is +0.74% against the exchange rate to USD in the last 24 hours. ​ The current Bitcoin market cap is $1.25T. ​Create a free Kraken account to instantly convert BTC to USD today.

How to operate Bitcoin? ›

To use your bitcoin, you need to have a cryptocurrency wallet. Wallets are your blockchain interface and can hold the private keys to the bitcoins that you own. These keys must be entered when you're conducting a transaction.

How does blockchain work in 7 steps? ›

How does blockchain work?
  1. Step 1 – Record the transaction. A blockchain transaction shows the movement of physical or digital assets from one party to another in the blockchain network. ...
  2. Step 2 – Gain consensus. ...
  3. Step 3 – Link the blocks. ...
  4. Step 4 – Share the ledger.

How to spot a Bitcoin scammer? ›

Signs of crypto scams include poorly written white papers, excessive marketing pushes, and get-rich-quick claims. Federal regulatory agencies, such as the Federal Trade Commission (FTC), and your crypto exchange are the best places to contact if you suspect you've been the victim of a scam.

What is the first step to making a payment with Bitcoin? ›

The first thing that you need to do is set up your bitcoin wallet. Think of it just like the wallet that you use to store your physical currency, but just online. It will act as a bank account that you can keep, send, and get money through.

How much does it cost to run a Bitcoin node? ›

One of the most popular devices for Bitcoin nodes is the Raspberry Pi, a small computer, about the size of a human hand. A Raspberry Pi has enough processing power to operate a Bitcoin node and only costs about $50. Storage. You will need an external drive to have enough memory to store the entire blockchain.

How many full nodes are in a Bitcoin network? ›

As of Februrary 2024, there are currently approximately 18,000 public nodes running on the Bitcoin network. This number is regularly updated and accounts for duplicate and non-listening nodes. As more people join the network, the more nodes and miners are needed to keep the network functioning and decentralized.

Do you get paid for running a Bitcoin node? ›

While no one will pay you for running a Lightning Node, you can charge routing fees for payments that go through your channels. This can become a good source of revenue, but it takes a lot of learning, effort and manual tweaking to make a node profitable.

How do you run a node? ›

The usual way to run a Node.js program is to run the globally available node command (once you install Node.js) and pass the name of the file you want to execute. While running the command, make sure you are in the same directory which contains the app.js file.

How to run a Bitcoin node for free? ›

  1. Download Core. A node is just the bitcoin wallet software (Bitcoin Core). ...
  2. Download the Blockchain Data. Open bitcoin core** and it will start to download the entire blockchain. ...
  3. Compatible wallet software. So that you can use your hardware wallets and access coin control features, download Sparrow or Specter.
Jan 7, 2024

How many nodes are needed for a blockchain? ›

In a Raft-based blockchain network, nodes cooperate to maintain a replicated log of transactions. To ensure successful voting for a new leader, an odd number of nodes is essential. Therefore, a minimum of two user nodes, along with a monitor node, is recommended for a Raft-based blockchain network.

How do you get your money from Bitcoin? ›

Here are five ways you can cash out your crypto or Bitcoin.
  1. Use an exchange to sell crypto.
  2. Use your broker to sell crypto.
  3. Go with a peer-to-peer trade.
  4. Cash out at a Bitcoin ATM.
  5. Trade one crypto for another and then cash out.
  6. Bottom line.
Feb 9, 2024

How do you make money on Bitcoin? ›

Participate in Bitcoin Mining

One of the most popular ways how to make money with Bitcoin is Bitcoin mining. There can be two forms of mining - personal mining or cloud mining. If you want to mine individually (meaning, with your own mining rig), it might not be the best way how to make money with Bitcoin.

How does Bitcoin make real money? ›

Bitcoin runs on a decentralized computer network or distributed ledger that tracks transactions in the cryptocurrency. When computers on the network verify and process transactions, new bitcoins are created, or mined. These networked computers, or miners, process the transaction in exchange for a payment in Bitcoin.

Is it worth buying 100 dollars of Bitcoin? ›

If you invest $100 into Bitcoin today, don't expect to make a fortune. However, you could still make some solid gains if your bet on Bitcoin pays off. Many people who are interested in crypto would like to get started with smaller amounts, which is entirely reasonable given that cryptocurrencies are risky investments.

Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5726

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.