Coming Soon: An Easier Way To Bootstrap Your Node's UTXO Set

2023-10-3 17:30

Yesterday marks coming up to the finishing line after almost four years of work. Assumeutxo was merged into the Bitcoin Core master branch by Andrew Chow yesterday. This is the first major non-consensus update to the Bitcoin reference implementation in quite a while, and is going to have a lot of interesting implications for users bootstrapping nodes.

To give a little context about the feature, I think it'll be useful to give a little history lesson. When a Bitcoin Core node first turns on and starts syncing the blockchain it doesn't actually validate the entire historical chain. It can, but it doesn't by default, the reason being to save time and resources when bootstrapping. It validates the entire set of blockchain headers to make sure the proof-of-work is valid, but it doesn't actually validate the signatures or other witness data for really old blocks. The logic is that for really old blocks, say five years old, it's overkill to actually verify and run through the signature and other witness checks for those blocks. If someone was able to mine an invalid block five years ago spending coins without a valid signature, then Bitcoin is essentially broken.

Bitcoin Core used to skip validation on these old blocks with a hardcoded checkpoint, i.e. developers would literally just include the blockhash for a known valid block in the past directly into the validation code and Core would not check witness data for anything before that. It was a very hacky solution, and it was not possible for users to change this behavior without actually modifying the source code to the client themselves. In 2017 Greg Maxwell introduced the assumevalid function to deal with these issues. Instead of a hardcoded value in the source code, assumevalid was a setting that could be modified on startup where users could manually pass a blockhash themselves and decide which block to start validating witness data at. Core still hardcodes a default block for this feature, but the key difference is now users can easily override that without modifying sourcecode. Simply run "bitcoind –assumevalid=[theblockhash] and users can decide themselves what to validate or not. You can run it with assumevalid=0 to validate every single block since Genesis.

Assumeutxo brings a very similar functionality to handling the UTXO set. Everything your node does to verify the historical blockchain is done with the sole purpose of building the UTXO set. You can't really know if a transaction is valid unless you know if the coin has been spent before, and the UTXO set is the cache a node builds up to keep track of all the coins that haven't been spent. Users have put together many hacky tools in the last few years to simply skip ahead and start from a known good UTXO set from some point in time, most notably BTCPay Server. These are all very ugly hacks though that essentially boil down to copy and pasting the file directory holding the UTXO set. Now that functionality will be supported in Bitcoin Core proper.

The implementation James O'Beirne put together has implemented all the logic for importing and starting to use a UTXO snapshot, as well as tools to create one in the first place. Very much like assumevalid, assumeutxo will simply accept an existing snapshot file as an argument and load that into the user's node and start running from there. This will add a massive amount of flexibility to node operators, both on the end user side as well as businesses.

Users can create a snapshot of their current UTXO set and store that somewhere; if their node ever crashes or any of the databases corrupt, they can simply grab that UTXO snapshot and restart their node from that blockheight instead of having to restart from the Genesis block. Users who have trusted relationships with each other can simply help one another start up a node from where things are now. No more blockchain syncing necessary at all. If you trust me, I can give you the current UTXO set from my node, and within a margin of a few hours worth of blocks you can have a node up and running in no time. Businesses who have to run multiple nodes for different reasons can spin them up much quicker and easier from UTXO snapshots.

Now, this isn't quite ready to go live in the next Bitcoin Core release, but as James put it on Twitter the hurdle to cross to get to that point is literally five lines of code. All of the core logic and implementation is merged, all that needs to be done is change some flags so that Core will allow users to make use of assumeutxo when running their node on mainnet.

So, congratulations to James on the merge. Many Bitcoiners are looking forward to having more flexibility and control over their own node. 

Similar to Notcoin - Blum - Airdrops In 2024

origin »

Internet Node Token (INT) на Currencies.ru

$ 0.0373282 (-0.28%)
Объем 24H $2.352m
Изменеия 24h: -1.67 %, 7d: -7.90 %
Cегодня L: $0.0373282 - H: $0.0377837
Капитализация $1.986m Rank 99999
Доступно / Всего 53.21m INT

bitcoin your utxo set node instant allow

bitcoin your → Результатов: 126


Bill-ionaire Miller says crypto an 'insurance policy' because 'they can't confiscate your Bitcoin'

Institutional investors have been quick to notice the merits of the cryptocurrency industry, and an increasing number of big-ticket names have been jumping onto the bandwagon recently after resisting The post Bill-ionaire Miller says crypto an 'insurance policy' because 'they can't confiscate your Bitcoin' appeared first on AMBCrypto.

2022-1-11 06:30


The Taxman Is After Your Bitcoin: Harvest Your Losses Before It’s Too Late

The year is coming to an end, and a lot of people have started thinking about minimizing their tax burden. If you’re a bitcoin investor, things get even more complex. The IRS recently sent out 10,000 letters to cryptocurrency investors, and this is an indication of how serious they are when it comes to cryptocurrency […] The post The Taxman Is After Your Bitcoin: Harvest Your Losses Before It’s Too Late appeared first on Bitcoin Magazine.

2020-1-2 21:20


Bitcoin Price Analysis: BTC/USD Ready for $4,000, HitBTC Insolvent or “Coin” Run?

Latest Bitcoin News For novices, the slogan is simple: Not your keys, not your coins. And I mean private keys. You lose it and there goes your coins. They won’t be recovered and will hang in the digital ether forever—unless of course the Bitcoin developer community decide to do something about it —perhaps go the […] The post Bitcoin Price Analysis: BTC/USD Ready for $4,000, HitBTC Insolvent or “Coin” Run? appeared first on Ethereum World News.

2019-1-2 15:47


Фото:

Check Out If You Can Spend Bitcoin Before You Book Your Next Holiday

Buying your travel money can be a bore, what if you don’t actually need to buy any? What if your next holiday destination is saturated with stores that accept Bitcoin and of course, Bitcoin ATMs? It’s probably worth checking out before you travel, right? Now you should probably note that if you’re traveling to a remote location, like a small Greek island or a Caribbean retreat, Bitcoin acceptance may be a little lower than you would like, therefore this guide is more suited to those travellers who are off on city breaks, where Bitcoin acceptance is likely to be at an all time high.

2018-9-28 11:30


Фото:

‘It’ll Happen Anyway’: Andreas Antonopoulos Criticizes Bitcoin ETFs

Exchange-traded funds (ETFs) “fundamentally undermine the underlying principle of peer-to-peer money,” Andreas Antonopoulos claimed, adopting a critical stance on the financial instrument. ‘Not Your Keys – Not Your Bitcoin’ As part of his monthly Q&A session with the cryptocurrency community in July, Antonopoulos, who uses the online sessions to address various key aspects of cryptocurrency as suggested by viewers, made clear he was not in favor of an ETF coming to Bitcoin.

2018-8-16 00:00


PR: Essentia.one Earmarks $11m to Foster Development of Projects Based on Its Protocol

The decentralized interoperability protocol Essentia is set to launch a fund valued at over $11 million to expand their ecosystem and incentivize projects to be built on top of the platform. The fund will drive development of a thriving program to accelerate real world adoption of blockchain technology, based around Essentia’s enterprise-oriented solutions, while forging close ties with the community, without whom we could not have reached this stage.

2018-6-20 20:30


Фото:

You Can Now Exchange Your Leftover Euros for Crypto at Schiphol Airport

One of the most inconvenient things about international travel is getting stuck with foreign money that can’t be accepted in your home country. Luckily for passengers and visitors to Schiphol Airport, they now have the chance to experience the benefits of a truly global currency first hand and get rid of their fiat at the […] The post You Can Now Exchange Your Leftover Euros for Crypto at Schiphol Airport appeared first on Bitcoin News.

2018-6-20 16:30