Cointime

Download App
iOS & Android

Boost Your Bitcoin Node Sync With UTXO Snapshots

Cointime Official

From lopp net blog by Jameson Lopp

The recent Bitcoin Core v28 release added support for a new feature that has been under development for 5 years. First proposed in 2019 by James O’Beirne, AssumeUTXO enables full nodes to defer verification of old blockchain history by loading a recent snapshot of the UTXO set at a specific block height and syncing to chain tip from that point. This allows wallets and other software using the full node to start receiving and sending transactions within minutes of the node being started instead of having to wait hours or days for it to sync and validate the chain from the genesis block.

When you use AssumeUTXO, the node starts syncing from the snapshot to the chain tip, then the node downloads and verifies the old blockchain history in the background until it eventually verifies its initial UTXO state at the loaded snapshot, allowing it to ultimately obtain the same trustless security as a node that doesn’t use AssumeUTXO.

How to Use UTXO Snapshots

  1. Download a UTXO Snapshot file. You can find one for block height 840,000 on my site or from this torrent: magnet:?xt=urn:btih:596c26cc709e213fdfec997183ff67067241440c&dn=utxo-840000.dat&tr=udp%3A%2F%2Ftracker.bitcoin.sprovoost.nl%3A6969
  2. Download Bitcoin Core v28 or later.
  3. Run Bitcoin Core: bitcoind -daemon
  4. Wait for the block headers to finish syncing (should only take 1 or 2 minutes)
  5. Load the snapshot via: bitcoin-cli loadtxoutset /path/to/utxo-snapshot-height-840000.dat
  6. Wait for the command to finish (this will take tens of minutes depending upon the speed of your machine)
  7. Once the command finishes, your node's sync progress will jump forward to the block height of the snapshot and continue syncing normally from there.
  8. After it reaches chain tip, the node will start performing a sync from genesis in the background, but the node will be usable during that time.

Frequently Asked Questions

  1. Does it matter where I get the snapshot dat file from? No; Bitcoin Core will only load a snapshot with an aggregate UTXO set hash that matches one that's hard coded into Core.
  2. Can I create my own snapshots and load them? You can generate snapshots with the dumptxoutset RPC command or with this utility script. However, you won't be able to load a snapshot unless it's at one of the block heights hard coded into Core. At time of writing, the only supported height is 840,000.
  3. Can I use this to sync a pruned node? Yes.
  4. Can I use this to sync a node with indexes enabled? Yes, though it won't make building the indexes any faster - they still have to be generated linearly from genesis.

How Much Faster Does the Node Sync?

I ran two syncs of Bitcoin Core v28 on my benchmark machine with full default settings. One sync ran entirely from genesis while the other loaded the snapshot as soon as it started syncing.

It took 10 minutes for the node to load the snapshot, then it took 84 minutes to finish syncing to chain tip. On the other hand, it took 659 minutes to perform a full sync from genesis.

So we can see that the speedup is quite significant!

Is It Worth the Trouble?

You'll want to weigh some trade-offs when decided if you want to sync your node from a snapshot.

  1. How much of a rush are you in to be able to use your node?
  2. How fast is your node hardware? If it's really fast and can sync from genesis in less than a day, perhaps it's not worth the extra steps to load a snapshot. Something like a Raspberry Pi would likely find much greater benefit from loading a snapshot.

While I only expect that more technically savvy node operators who are comfortable operating on the command line will take advantage of this feature right now, it can certainly be worth the extra steps in order to get an order of magnitude speedup!

Perhaps in the future, Bitcoin Core could offer a bundled download that includes a recent snapshot that gets automatically loaded on startup so that less sophisticated users can also take advantage of this functionality.

Comments

All Comments

Recommended for you

  • Trump Announces Most Severe Economic Sanctions Against Iran

    On August 20, U.S. President Trump stated, 'I have given Iran more opportunities to reach an agreement than anyone else. Unfortunately, they missed that opportunity. Therefore, today, I am announcing the most severe economic sanctions ever imposed on Iran, which will be an unprecedented economic war and isolation. Iran's navy has disappeared, its air force has been destroyed, military factories are now in ruins, its currency is worthless, and the entire nation is in a precarious situation. Any country that allows its financial institutions, businesses, airports, or government entities to provide any form of assistance to Iran will face significant economic consequences. Oil smuggling, swap quotas, cash transfers, currency exchange agencies, ship registrations, shell companies—all of these must stop immediately. This will be the 'Economic D-Day,' and we need all allies to stand with the United States to isolate and defeat the threat posed by Iran. Iran will never possess nuclear weapons.' (Jinshi)

  • Trump Announces Most Severe Economic Sanctions Against Iran in History

    On August 20, U.S. President Trump stated, 'I have given Iran more opportunities to reach an agreement than anyone else. Unfortunately, they missed that chance. Therefore, today, I am announcing the most severe economic sanctions against Iran in history, which will be an unprecedented economic war and isolation. Iran's navy has vanished, its air force has been destroyed, military factories are now in ruins, its currency is worthless, and the entire nation is in a precarious situation. Any country that allows its financial institutions, businesses, airports, or government entities to provide any form of assistance to Iran will face significant economic consequences. Oil smuggling, swap quotas, cash transfers, currency exchange agencies, ship registrations, shell companies—all of these must stop immediately. This will be the 'Economic D-Day,' and we need all allies to stand with the United States to isolate and defeat this threat from Iran. Iran will never possess nuclear weapons.' (Jinshi)

  • Trump Urges Fed to Cut Interest Rates Again

    On August 20, Trump once again urged the Federal Reserve to lower interest rates as soon as possible, stating that the cost of interest rates borne by the U.S. is too high. He noted that each 1 percentage point reduction in rates equates to a cost reduction of about $600 billion and criticized the current interest rate system as 'unfair.' Trump stated that the Fed Chairman is performing well but is influenced by the 'politicization of the Federal Reserve Board.'

  • Trump Urges Fed to Cut Interest Rates Again

    On August 20, Trump once again urged the Federal Reserve to cut interest rates as soon as possible, stating that the cost of interest rates borne by the U.S. is too high. He noted that a 1 percentage point reduction in rates would equate to a cost reduction of about $600 billion, and criticized the current interest rate system as "unfair." Trump acknowledged that the Fed Chairman is performing well but is influenced by the "politicization of the Federal Reserve Board."

  • U.S. Federal Debt Exceeds $40 Trillion

    On August 20, as the U.S. government borrows at an unprecedented pace, the total national debt has surpassed $40 trillion. Despite Trump's promise to control government spending, the ever-expanding debt continues to raise concerns among investors regarding the state of U.S. public finances. According to data released by the U.S. Treasury on Wednesday, the federal debt crossed the $40 trillion threshold on Tuesday. Over the past year, the debt has increased by $3 trillion, marking the fastest growth rate in history, excluding the pandemic period. "It's like a huge warning light on a car engine," said Mark Goldwyn, senior policy director at the Committee for a Responsible Federal Budget. "This doesn't mean the engine will burn out tomorrow, but it is a clear signal that things have gotten out of control. The issue is not just the sheer size of the debt, but the speed at which we reached this level." Over the past two decades, the national debt of the United States has surged dramatically, rising from less than $6 trillion at the turn of the century to its current level. Massive public spending during the financial crisis and the COVID-19 pandemic has exacerbated the widening budget deficit. In just the past decade, the overall debt has doubled. The Congressional Budget Office projects that the federal debt held by the public will exceed 106% of GDP around 2030, surpassing the historical peak set in 1946 after World War II, and will further climb to 120% by 2036.

  • U.S. Federal Government Debt Exceeds $40 Trillion

    On August 20, as the U.S. government borrows at an unprecedented pace, the total national debt has surpassed $40 trillion. Despite Trump's promise to control government spending, the ever-expanding debt continues to raise concerns among investors regarding the state of U.S. public finances. According to data released by the U.S. Treasury on Wednesday, the federal debt crossed the $40 trillion threshold on Tuesday. Over the past year, the debt has increased by $3 trillion, marking the fastest growth rate in history when excluding the pandemic period. 'It's like a huge warning light on a car engine,' said Mark Goldwyn, senior policy director at the Committee for a Responsible Federal Budget. 'This doesn't mean the engine will burn out tomorrow, but it is a clear signal that things have gotten out of control. The issue is not just the size of the debt, but the speed at which we've reached this level.' Over the past two decades, the national debt of the United States has surged dramatically, rising from less than $6 trillion at the turn of the century to its current level. Massive public spending during the financial crisis and the COVID-19 pandemic has exacerbated the widening budget deficit. In just the past decade, the overall debt has doubled. The Congressional Budget Office projects that the publicly held federal debt-to-GDP ratio will exceed the post-World War II record of 106% set in 1946 around 2030, and will further climb to 120% by 2036.

  • Trump Urges Congress to Pass 'Fair Version' of the Clarity Act

    On August 20, during a meeting at the White House with executives from the cryptocurrency industry and financial institutions, U.S. President Trump urged Congress to pass a 'fair version' of the Clarity Act, aimed at establishing a clearer regulatory framework for digital assets. Trump stated that the legislation would help the U.S. maintain its leading position in the cryptocurrency sector and open up space for the next wave of innovation and entrepreneurship. He emphasized the need for clear regulatory rules to prevent crypto companies from relocating overseas due to policy uncertainty. The meeting included executives from several crypto and financial firms such as Coinbase, Ripple, Robinhood, Kraken, Chainlink, and Gemini, as well as SEC Chairman Paul Atkins, CFTC Chairman Michael Selig, and White House crypto advisor Patrick Witt. The Clarity Act aims to clarify the roles of the SEC and CFTC in the regulation of digital assets and to establish a federal-level regulatory framework for the cryptocurrency market. The bill is expected to be resubmitted to the Senate for consideration in September, with Republicans needing to secure support from about six Democratic senators to reach the 60 votes required for passage. Additionally, Trump highlighted that his administration has promoted various crypto-related policies, including a strategic Bitcoin reserve, a digital asset reserve program, a ban on U.S. central bank digital currency (CBDC), and the Clarity Act. Previously, the SEC had proposed new rules for cryptocurrency asset issuance, planning to provide regulatory exemptions for certain token offerings to lower the financing threshold for eligible crypto projects.

  • Trump Urges Congress to Pass 'Fair Version' of the Clarity Act

    On August 20, during a meeting at the White House with executives from the cryptocurrency industry and financial institutions, U.S. President Trump urged Congress to pass a 'fair version' of the Clarity Act (the Digital Asset Market Structure Bill) to establish a clearer regulatory framework for digital assets. Trump stated that the bill would help the U.S. maintain its leading position in the cryptocurrency sector and open up space for the next wave of innovation and entrepreneurship. He emphasized the need for clear regulatory rules to prevent cryptocurrency companies from relocating overseas due to policy uncertainty. The meeting included executives from several crypto and financial companies such as Coinbase, Ripple, Robinhood, Kraken, Chainlink, and Gemini, as well as SEC Chairman Paul Atkins, CFTC Chairman Michael Selig, and White House crypto advisor Patrick Witt. The Clarity Act aims to clarify the regulatory authority of the SEC and CFTC over digital assets and establish a federal-level regulatory framework for the cryptocurrency market. The bill is expected to be resubmitted to the Senate for review in September, with Republicans needing to secure support from about six Democratic senators to reach the 60 votes required for passage. Additionally, Trump highlighted that his administration has promoted policies related to strategic Bitcoin reserves, digital asset reserve programs, a ban on U.S. Central Bank Digital Currency (CBDC), and the Clarity Act. Previously, the SEC had proposed new rules for cryptocurrency asset issuance, planning to provide regulatory exemptions for certain token offerings to lower the financing threshold for eligible crypto projects.

  • BTC Drops Below $69,000

    Market data shows that BTC has fallen below $69,000, currently priced at $68,980.26, with a 24-hour increase narrowing to 6.79%. Due to significant market fluctuations, please ensure proper risk management.

  • BTC Falls Below $69,000

    Market data shows that BTC has fallen below $69,000, currently priced at $68,980.26, with a 24-hour increase narrowing to 6.79%. The market is highly volatile, so please ensure proper risk management.