Potential Risks of Using Assumevalid

7 replies 38 views
Posts: 4 · Reputation: 49
#1May 8, 2025, 06:38 AM
I'm about to start an IBD with assumevalid set to the latest block. I get there are risks, like getting fed a false history or whatever. But if I'm not planning to validate transactions for at least 6 months, shouldn't my node eventually check everything and be fine?
6 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#2May 8, 2025, 09:42 AM
So, how does this actually work? Does it skip downloading all the blocks and just grab the latest? How will you get your chainstate then? Bitcoin Core doesn’t recheck blocks because it assumes they’re valid. Why not just do a regular block download instead?
2 Reply Quote Share
Ba5edGuruFull Member
Posts: 92 · Reputation: 349
#3May 8, 2025, 12:28 PM
You mentioned false history... like, if that happens, why take the risk? @LoyceV said you have 6 months. You could sync Bitcoin Core in a few days or weeks, so why shortcut it? You might regret it later.
4 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#4May 9, 2025, 03:16 AM
If the UTXO set created from fake blocks ever clashes with real transactions from valid blocks, Bitcoin Core will throw a fit and you'll have to restart the whole download. Plus, you'd have to be only connected to fake nodes to even get fed those false blocks.
1 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#5May 9, 2025, 04:09 AM
Assumevalid is already on by default with a pretty recent block hash. Setting it to the tip seems unnecessary. In v26.0, it’s block height 804000 and in v27.0, it’s 824000. If you’re on v26.0, just set it similar to v27.0. But leaving a week or two for script validations won’t hurt your CPU.
0 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#6May 10, 2025, 08:16 AM
Your question's been answered already on another site. Basically, assumevalid only skips script verification until you hit a certain block.
3 Reply Quote Share
Posts: 4 · Reputation: 49
#7May 10, 2025, 01:43 PM
Thanks for all the input, especially from nc50lc. Always appreciate the insightful responses.
0 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#8May 10, 2025, 03:10 PM
Oh, I forgot to mention, Bitcoin Core has this IP bucketing feature. It helps avoid connecting to nodes from the same region or similar connection types. Makes it way less likely to connect to rogue nodes since attackers would need to spread their nodes across different networks.
5 Reply Quote Share

Related topics