April 27, 2026

Capitalizations Index – B ∞/21M

Bitcoin Is Close to Cutting Fees with Better Coin Selection

Bitcoin is close to cutting fees with better coin selection

Bitcoin Is Close to Cutting Fees with Better Coin Selection

Bitcoin is close to cutting fees with better coin selection

One of the technical mechanisms that has helped earn bitcoin comparisons to cash is on the verge of a major update.

Called “coin selection,” the term refers to the algorithm that today decides which bits of data come together to create a user’s transaction. Essentially, the coin selection code replicates the process of giving, say, a $10 bill to a cashier for a $7 item and the consumer receiving $3 in change.

But if that doesn’t sound particularly complex, remember bitcoin is experimental software, and this function, while working, isn’t altogether optimized. Making matters worse, the part that perhaps needs tweaking has a direct impact on user costs.

bitcoin Core’s original coin selection algorithm actually needs a lot of reworking, especially with regards to transaction fees. It’s inefficient and it ends up doing a weird loop to try to guess the amount of transaction fees that are needed,” bitcoin Core contributor Andrew Chow told CoinDesk.

Mark Erhardt an engineer at wallet provider BitGo agrees, going so far as to call the algorithm “convoluted” during a recent interview on the podcast Noded.

As such, developers have been working on a new algorithm, dubbed “branch and bound” or “BnB,” which forges together data in a more efficient way, resulting in a small scaling bump and lower transaction fees.

Erhardt first proposed some optimizations nearly two years ago, while Chow was the first developer to code up the changes.

And recently the change was deemed ready to be added to bitcoin’s most popular software implementation, bitcoin Core, and so was merged into the codebase. Even better for users, the feature should be available for widespread use with the release of the 17th version of the software in the next year or so.

Speaking to the benefits of the changes, Chow said:

“This will let us tidy up the coin selection code a lot and actually make it possible for one person to understand exactly what the coin selection algorithm is doing.”

No change needed

Stepping back, as mentioned, each bitcoin transaction a user sends is made up of different smaller amounts of bitcoin.

That’s because, say you have one bitcoin in your wallet, this bitcoin is usually not just one piece of data. Rather, it’s often made up of a number of chunks of data pieced together. You might have one, two or dozens of little transaction chunks – each called “unspent transaction outputs” (UTXOs).

For instance, tied to your bitcoin wallet address might be one piece of data worth 0.1 BTC, another worth 0.3 BTC, another of 0.1 BTC and a last one, worth 0.5 BTC, to make up a whole bitcoin.

These pieces are based on the transactions that came before them and how they were initially split up to send to your wallet.

So, if you need to send 0.2 BTC, the bitcoin Core “coin selection” algorithm might decide to put the piece of data worth 0.3 BTC in what’s called the “input,” creating the transaction. There will then be two outputs: 0.2 BTC, which will be sent to the recipient, and 0.1 BTC, which will be put back into your wallet as the “change output.”

Yet, according to the developers, the algorithm isn’t all that good at deciding how to select coins for transactions.

The algorithm almost always automatically creates “change outputs,” which often aren’t necessary and waste space on the blockchain, Erhardt explained. In the example above, the algorithm could avoid this by picking the two pieces of data worth 0.1 BTC and not have to send “change” back to the sender at all.

He continued, speaking to another unfortunate side effect:

“You don’t want transactions to be ground up to dust.”

“Dust” are pieces of bitcoin that are so small they’re almost not worth spending, since the fees could be more than the transaction itself. They’re perhaps analogous to pennies, in that a penny actually costs more to make than it’s actually worth in purchasing goods.

How to choose?

The new algorithm, BnB, avoids these issuers by trying to eliminate as many change output scenarios as possible. In short, it looks at all the inputs to see if there’s a way to reach exactly the number of bitcoins a user wants to send in a transaction.

“This helps shrink the UTXO set a little more,” Chow said. “Additionally, transactions, where an exact match was found, will generally be smaller than ones where there is change, so this will also save on transaction fees for the user and free up a few more bytes of block space to fit in other transactions.”

And there’s evidence this works. In a simulation, Erkhardt found that, in approximately 40 percent of transactions that would normally have change outputs, the new algorithm was able to get rid of the unnecessary data.

In addition to these user benefits, the code change also helps developers, since the new algorithm is much easier to understand for a technical standpoint.

Still, developers aren’t done tweaking the coin selection process. Chow and others plan to take the algorithm further, by adding a so-called “simple random draw.”

When the BnB algorithm goes through all a bitcoin user’s UTXOs and simply can’t avoid creating a change output, it then falls back on the original coin selection process. But with simple random draw, the algorithm will choose random UTXOs until it reaches the amount of money required.

Interestingly, developers find randomly choosing coins is a better method than the more deliberate algorithm bitcoin Core uses today.

It’s the culmination of years of work, but according to Erhardt, the process couldn’t have been much quicker. Coin selection is a “sensitive part” of the code and changing it has “global consequences,” he said.

As such, “no one wanted to fiddle with it for too long,” Erhardt explained, adding:

“Now we’ve put in a lot of the plumbing for further changes.”

Binary code image via Shutterstock

The leader in blockchain news, CoinDesk is a media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. CoinDesk is an independent operating subsidiary of Digital Currency Group, which invests in cryptocurrencies and blockchain startups.

Published at Mon, 02 Apr 2018 09:00:22 +0000

Features

Previous Article

Bitcoin Generator – Claim 0.25 – 1 Bitcoin

Next Article

Bitcoin Crypto Currency Bitcoin Symbol Samsung Case

You might be interested in …

NAGA Will Take You to the World of Virtual Goods with Real Profit

Shopping dynamics and shopping itself have dramatically changed since the first store appeared in ancient Rome. Not only can we buy and sell goods and services from the comfort of our own home, but the nature of our purchases has undergone dramatic changes.

Looking back in time when Richard Sears first introduced his catalogs back in the 1800s, unlocking opportunities to buy from home, we can, without doubt, see that his legacy lives on. It has evolved, however, and moved into the virtual space. It may seem like nothing really changed, the new, virtual world has eased its way into our lives. However, it is also clear that thanks to the newfangled idea of virtual and augmented realities, in 10 years time, today’s shopping experiences will look incredibly outdated and may become obsolete altogether. While it seems far-fetched and yet unclear how widespread VR technologies will become over time and whether or not they will be used by everyone to buy goods in the real world, the gaming industry is already on the path to creating a virtual reality ecosystem for gamers around the globe.

Gaming is an immersive and experience-driven world with a lot of action in it. This new virtual universe is creating a virtual economy with virtual goods. Look close enough and you will find that we are witnessing a clash of the real with the virtual since all virtual goods can be purchased online with very real money. Today people spend billions of dollars on virtual goods every year. Virtual goods which, no matter what shape or form they are, and what features they have, are nothing but a series of 1s and 0s that are stored on some remote server. What’s more – the virtual space is developing and generating huge revenues. The driving force of this development lies in the fading barriers of people’s offline and online presence. Virtual markets are exploding as users purchases are not limited to swords or other armor to use in gameplay but also presents, ads, cryptocurrencies and so much more. Every day hundreds of thousands of transactions take place through marketplaces like eBay and Amazon. All these purchases increase people’s overall satisfaction creating real value.

Any boom is followed by tech innovations and development. One of the leading companies in this field is NAGA. NAGA is a German FinTech company that has been listed on the Frankfurt Stock Exchange since July 10th when NAGA successfully carried out its IPO. Within just a few months NAGA’s stocks have  increased in price per share by more than 400%. NAGA is developing cutting edge technologies for capital markets and gaming. They are aiming to create one unified platform to trade both financial and virtual goods. Current financial and virtual markets are still struggling with security and vulnerability issues that NAGA will overcome with the help of blockchain technologies. On the way to unifying two worlds, NAGA is creating the NAGA Wallet to bridge its two major projects – SwipeStox for trading and Switex for virtual goods exchange. To fuel the NAGA ecosystem a token will be deployed. The NGC token will be  used as a currency. NGC will give any user access to virtual in-game goods via various platforms. Powered by the blockchain it will create a transparent cost structure and allow cashback through sophisticated frameworks. Decentralization deployed through the blockchain offers vast opportunities for users to take advantage of in the evolving virtual economy.

To make complicated markets simple and fun, NAGA has created a unique solution Switex, a virtual goods exchange. This will be the first legal ecosystem for virtual goods, that will help various users profit from using it. Users will be able to buy virtual goods directly from a publisher or from other users, creating primary and secondary markets of virtual goods. Switex will enter the gaming market first and then expand to other virtual products.

By offering primary and secondary market items, NAGA aims to unite the best from both eBay and Amazon.

NAGA with their unique solution Switex is aimed at legalizing all markets of virtual goods. Switex also aims to ensure the safe and correct transfer of virtual goods between users.

NAGA is advised by crypto professionals: bitcoin.com founder Roger Ver, bitcoin.com’s COO Mate Tokay, and Miko Matsumura of Pantera Capital.

NAGA’s pre-sale started just a few days ago, but they have already sold over 50% of the pre-sale’s allocated tokens. Moreover, the predictions are that the price of NGC (NAGA coin) will reach $4.5 after it is listed on the top cryptocurrency exchanges.

Hurry up and join NAGA at the current pre-sale stage!

To find more about NAGA project and Switex visit NAGA website.

Join NAGA’s Telegram chat.

The post NAGA Will Take You to the World of Virtual Goods with Real Profit appeared first on NEWSBTC.

Bigup bmx | bg trip | 2018

BIGUP BMX | BG TRIP | 2018

BIGUP BMX | BG TRIP | 2018 We had a wonderful journey, full of great moments with amazing people, exploring the most beautiful country I know, България!!! We want to share some of our moments […]

Well week in a nutshell

WELL Week in a Nutshell

WELL Week in a Nutshell Bitcoinist.net · March 5, 2018 · 8:00 pm WELL announces new advisors and a partner gets excited about the smart contract and smart devices, and networks in San Francisco. No […]