Пропускане към основното съдържание

The bitcoin scalability problem explained

bitcoin scalability


The bitcoin scalability problem is related to the limited size of the blocks and the fixed time for their creation in the bitcoin blockchain. These limitations lead to relatively low rate at which the bitcoin network can process transactions.

The individual blocks in the bitcoin blockchain contain the transactions happening on the network. These blocks are verified in a process called mining. The "miners" use their computational power to compete with the other miners in the network to be the first to solve a complex cryptographic puzzle. When that puzzle is solved, a new block is validated. When that happens, the miner solved the puzzle first, gets rewarded with bitcoins. 

Bitcoin block size

Satoshi Nakamoto - the inventor of bitcoin - set the rules in the protocol of the network. According to them, each transaction has to be at least 250 bytes (bitcoin transactions vary in size depending on multiple factors, such as whether they’re spending single-signature inputs or a multiple signature inputs, and how many inputs and outputs they have), blocks are generated just about every ten minutes (also known as the "block time") and their size is usually about 1MB, although a small amount of that space (such as the block header) is not available to store transactions. The difficulty level of the cryptographic puzzle is automatically adjusted by the protocol in such a way, that if it takes longer than 10 minutes to mine a block in the network, the difficulty level will be reduced and vise versa. These rules jointly constrain the network's throughput.

BTC transactions per day

We can easily calculate the transaction processing maximum capacity of the bitcoin network. If 1 transaction is 250 bytes in size, a new block is created every 10 minutes and it's size is 1 MB, then there is room for 1 000 000 / 250 = 4000 possible transactions in 1 block. 10 minutes contain 600 seconds in them, so the Bitcoin network can process up to 4000 / 600 = 6,67 transactions per second (tps). 

The number of processed transactions in the bitcoin's blockchain is closely related to the total value being moved in the network. As this value is increasing on a yearly basis, the results are increasing transaction fees and delayed processing of transactions, that cannot fit into a block. This represents one of the biggest problems with bitcoin and there are various proposed and activated solutions to address this issue.

How long does it take to mine 1 Bitcoin?

Bitcoin (BTC) uses the Proof of Work (PoW) consensus algorithm as the basis of its security. This means that a network of cryptocurrency miners is used to discover blocks and add pending transactions to them, to render them irreversible. 

The block discovery process, which takes approximately 10 minutes per block, also results in the minting of a fixed number of new Bitcoin per block. This is currently set at 6.25 BTC per block, but halves approximately every four years (210,000 blocks), reducing the number of Bitcoin minted with each newly discovered block.

With that current rate of a block reward it takes 10/6,25 = 1,6 minutes for 1 bitcoin to be mined. 

Since there is potentially tens of thousands of miners out there, there is a very low chance for an individual one to solve first the cryptographic puzzle and to get the reward for that. That's why usually miners combine their hash rate power into mining pools. Then, regardless of which miner in the pool actually discovers the block, the rewards are distributed evenly throughout the pool.

In order to be competitive, a miner needs special mining hardware called an application-specific integrated circuit (ASIC). For example Antminer S19 Pro with hashrate power of 110Th/s and 3250W power consumption which can cost around $8000 USD would need more than 1300 days to generate 1 BTC in rewards when working with a mining pool.

Happily nowadays there is still a way to mine bitcoins with your regular PC or even smartphone or tablet. You just have to download and install the free Crypto Tab browser and enjoy a 1500 H/s cloud mining with your mobile device.

Bitcoin blockchain size

The bitcoin blockchain is a distributed database that contains a continuously-growing and tamper-evident list of all Bitcoin transactions and records since the date of its initial release in January of 2009. Especially since 2014, the data set experienced exponential growth with megabytes growing by nearly one gigabyte every few days. Currently as of the end of March 2021 the size of the whole bitcoin blockchain is 336.86 GB. This is the amount of information full mining nodes need to download and keep on their hard drives after synchronizing with Bitcoin’s network. However, not every node needs to download the whole blockchain to become functional. Some participants take part in the blockchain network to make transactions and not to validate one. 

Can a Bitcoin transaction be unconfirmed forever?

Every bitcoin transaction that's sent flows into what's called the mempool (short for memory pool) before it can be confirmed by miners. When there's a dramatic spike in transaction activity, the mempool can become congested because so many transactions are waiting to be included in the next block.

If your transaction is unconfirmed for too long, it will disappear from the network. That means nodes will remove this transaction from the Mempool. But, if only one node alone forgets or removes the transaction from the Mempool, it is not enough. All nodes have to remove the transaction from the pool of unconfirmed transactions.

The state of a Bitcoin transaction is binary, so confirmed or unconfirmed. If it’s confirmed, it means that the opponent got the money, if not, it means the sender still owns the coins.

If a miner finds the right hash for a new block, he can choose what transactions go from the Mempool in a new block. They focus on the ones that have the highest transaction fees to gain more Bitcoins. Miners not only get the fixed block reward, but they also get all transaction fees within a block.

If your transaction is in the Mempool, you still own the Bitcoins. If a miner took the transaction and included it in a block, you sent Bitcoins to the other person.

So, if your transaction disappeared from the network, you didn’t lose the money. It means you never made the transaction. Afterward, you could make a new transaction with a higher transaction fee. It gets confirmed in the future by miners that put your transaction on the blockchain.

How long does it take for BTC to confirm?

There is no precise time what the longest time is that a Bitcoin transaction could take. If the Mempool is bigger, it usually takes longer until your transaction is confirmed. A significant factor is also how much you paid for transaction fees. If you paid more, miners focus on your transaction and confirm it faster.

What is the fastest Cryptocurrency?

Other cryptocurrencies were created in order to address and solve the scalability problem with the bitcoin. Perhaps the second most famous cryptocurrency - Ethereum - processes about 15-20 tps and Ripple is the fastest, with a capacity to process about 1500 tps.

This compared with traditional payment provider such as VISA is very low, because VISA claims that it is able to handle more than 65 000 transactions a second and that it actually handles an average of 150 million transactions every day. 

There is no doubt that a network needs to have the capability to handle a certain amount of transactions without processing issues and delays in order to be widely adopted for everyday transactions. Also the network should be able to provide credibility to handle a growing amount of transactions in the future, or in other words "to scale up". 

The bitcoin network's transaction limits were approached in late 2017. Then 2 main options for network scaling were discussed in the community. Supporters of one group wanted to focus on increasing the limit of block size, the other focusing on off-chain scaling by adding additional protocols on higher layers. 

Lightning network

lightning network


The lightning network is proposed as a solution to the bitcoin scalability problem. It is dependent upon the underlying technology of the blockchain and is designed as a second layer added to Bitcoin's network enabling transactions to be done between parties off of the blockchain—called off-chain transactions. The lightning network was conceived by two developers, Thaddeus Dryja and Joseph Poon, back in 2015, designed to speed up transaction processing times and decrease the associated costs of Bitcoin’s blockchain.

The lightning network allows participants to transfer bitcoins between one another without any fees using their digital wallets. Payment channels are created between the two users so that they can transact with each other. These channels are bidirectional, meaning that any given two participants can create a ledger entry on the blockchain which requires both participants to sign off on any spending of funds. Both parties create transactions which refund the ledger entry to their individual allocation, but do not broadcast them to the blockchain. Using the bitcoin's blockchain native smart-contract scripting language, a secure network of participants is created and they are able to transact at high volume and high speed.

Only the most recent version of the ledger entry is considered as valid. This entry can be closed out at any time by either party without any trust or custodianship. The nodes along the path across the network are not trusted. The payment is enforced by a script via decrementing time-locks, which enforces the entire payment either to succeed or to fail.

To perform as intended, Lightning Network required a transaction malleability fix in the layer 1 blockchain, such as Segregated Witness (SegWit) in bitcoin.

Specifically, there are two parts in the lightning network costs. The first part consists of a fee equivalent to Bitcoin’s transaction charges in order to open and close channels between parties. Besides the transaction fees to open and close channels, there is a separate routing fee to transfer payments between channels. Since the fees for the lightning network are quite low, in theory, it should attract more participants.


P. S. This article should not be considered as a financial or investment advice. 

Коментари

Популярни публикации от този блог

What is the blockchain?

  The first blockchain was conceptualized by a person (or group of people) known as Satoshi Nakamoto in 2008. The design was implemented the following year by Nakamoto as a core component of the cryptocurrency bitcoin, where it serves as the public ledger for all transactions on the network. In August 2014, the bitcoin blockchain file size, containing records of all transactions that have occurred on the network, reached 20 GB. In January 2015, the size had grown to almost 30 GB, and from January 2016 to January 2017, the bitcoin blockchain grew from 50 GB to 100 GB in size. The ledger size had exceeded 200 GB by early 2020. The words  block  and  chain  were used separately in Satoshi Nakamoto’s original paper, but were eventually popularized as a single word,  blockchain,  by 2016. The blockchain is a ledger that is  append-only : that is to say, data can only be added to it. Once information is added, it is extremely difficu...

How does Bitcoin work?

Each Bitcoin is basically a computer file which is stored in a ‘digital wallet’ app on a smartphone or computer. People can send Bitcoins (or part of one) to your digital wallet, and you can send Bitcoins to other people. Every single transaction is recorded in a public list called the blockchain. This makes it possible to trace the history of Bitcoins to stop people from spending coins they do not own, making copies or undo-ing transactions. Once you’ve installed a Bitcoin wallet on your computer or mobile phone, it will generate your first Bitcoin address and you can create more whenever you need one. You can disclose your addresses to your friends so that they can pay you or vice versa. In fact, this is pretty similar to how email works, except that Bitcoin addresses should be used only once. The blockchain is a shared public ledger on which the entire Bitcoin network relies. All confirmed transactions are included in the block chain. It allows Bitcoin wallets to calculate their spe...