When verifying a bitcoin transaction, how do you avoid traversing the entire blockchain to collect inputs?

 

247 Bitcoin

Bitcoin & Crypto & NFT News

247 Bitcoin -1 Bitcoins -247 BTC - 1 Crypto - Kryptous

1 News - 247 News - 1 Search - 1 eBooks

 


A new block comes over the network to your node and you need to confirm it before you can get back to hashing. You need to find all the inputs in every transaction within the blockchain, and check that none of them have been spent.

Most inputs will be from recent-ish blocks but not all of them. Do you essentially have to traverse the entire pruned blockchain every time a new block comes along or are there any substantial shortcuts?

submitted by /u/XiPingTing
[link] [comments]

 

247 Bitcoin

Bitcoin & Crypto & NFT News

247 Bitcoin -1 Bitcoins -247 BTC - 1 Crypto - Kryptous

1 News - 247 News - 1 Search - 1 eBooks

 

Leave a Reply