Optimizing SegWit: How Bitcoin's New Software Is Giving Scaling a Boost

Bitcoin Core's latest software includes optimizations designed to boost SegWit, a scaling upgrade that's still slowly rolling out across the network.

AccessTimeIconSep 20, 2017 at 10:00 a.m. UTC
Updated Sep 13, 2021 at 6:57 a.m. UTC
10 Years of Decentralizing the Future
May 29-31, 2024 - Austin, TexasThe biggest and most established global hub for everything crypto, blockchain and Web3.Register Now

SegWit may be live on bitcoin, but the work to realize its potential isn't over.

Even after the bitcoin blockchain upgraded to support Segregated Witness (SegWit) last month, ending perhaps the network's most heated debate on direction to date, the optimization has yet to leave much of a mark.

To date, only just over 3 percent of transactions are actually taking advantage of the upgrade.

screen-shot-2017-09-19-at-10-40-34-pm

But, though transactions are scarce so far, adoption is likely to grow as more wallets and bitcoin services move to support the change. At that point, SegWit will likely have more of an impact, increasing the block size to support more transactions and paving the way for more advanced scaling solutions like Lightning Network.

In an effort to work toward that goal, the developers behind Bitcoin Core, the most widely used version of the cryptocurrency's underlying software, have been mobilizing to help boost the effort.

At least, that's what it looks like from the latest version of Bitcoin Core 0.15.0, released last week. The release notes outline a range of improvements that focus on performance, which are at least partly geared towards laying the groundwork for wider use of SegWit.

A focus on performance

During a presentation in San Francisco a couple weeks back, Blockstream CTO and one of the most active Bitcoin Core developers Greg Maxwell seconded the notion that 0.15.0's focus had to do with preparing bitcoin for a SegWit-enabled capacity boost.

Maxwell explained:

"With SegWit coming online, we knew the blockchain would grow at an even faster rate, so there was a desire to squeeze out all of the performance gains we could to make up for that."

Several of the improvements are aimed at reducing the time it takes to create a bitcoin full node, which many predict will become even harder with SegWit activated, since the change increases the blockchain's block size (the amount of transaction data that can be stored in each block).

Full nodes are particularly important for the bitcoin community since running one is arguably the best way to use bitcoin without trusting a bank or another third party, and is what many see as the whole point behind the digital money.

So any effort to make that easier, and the network run more efficiently, is welcomed. Hence, "performance" (how long it takes to download and use the software) is a problem developers try to chip away at in nearly every Bitcoin Core release (roughly twice per year).

But SegWit just added more of a reason to focus on optimization and speed.

Maxwell said:

"As always, but especially with 0.15.0, we had a big push on performance."

Among the notable upgrades in this area is the way in which data on unspent transaction outputs (UTXOs) is now stored, creating less computational burden on users who want to download a bitcoin full node. According to the release notes, 0.15.0 downloads bitcoin's transaction history at a 30–40 percent faster rate and uses 10–20 percent less memory.

Other technical upgrades introduced to speed up the software include non-atomic flushing (which could pave the way for further performance gains) and script validation flushing (which makes grabbing certain transaction information faster).

This focus on performance shows a Core development team intent on making bitcoin more manageable ahead of SegWit, or before a significant number of people start using the transactions made possible by the upgrade.

Not yet witnessed

Today, most bitcoin wallets have yet to support SegWit, but that might not be the case for long.

In this way, it's not so surprising that, while 0.15.0 focused on performance upgrades to prepare for SegWit, the new software itself doesn't support SegWit transactions. Bitcoin Core developers argue it's safer to wait and see if SegWit works before rolling out transaction support within Core. However, the release notes say, more "complete" support for the change will be included in "a next version" of the bitcoin software.

When that time comes, users will be able to create SegWit transactions with the Core wallet, and get the benefit of SegWit's nearly half price transaction fees.

Other bitcoin wallets might have the same wait-and-see strategy. And, if and when they actually push it through, the optimizations in 0.15.0 might be more noticeable.

Disclosure: CoinDesk is a subsidiary of Digital Currency Group, which has an ownership stake in Blockstream. 

Welding robots image via Shutterstock

Disclosure

Please note that our privacy policy, terms of use, cookies, and do not sell my personal information has been updated.

CoinDesk is an award-winning media outlet that covers the cryptocurrency industry. Its journalists abide by a strict set of editorial policies. In November 2023, CoinDesk was acquired by the Bullish group, owner of Bullish, a regulated, digital assets exchange. The Bullish group is majority-owned by Block.one; both companies have interests in a variety of blockchain and digital asset businesses and significant holdings of digital assets, including bitcoin. CoinDesk operates as an independent subsidiary with an editorial committee to protect journalistic independence. CoinDesk employees, including journalists, may receive options in the Bullish group as part of their compensation.


Learn more about Consensus 2024, CoinDesk's longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to consensus.coindesk.com to register and buy your pass now.