A purely local database is generally used. The specifics are implementation dependent. It is for a software developer to choose. It may be sensible to use a popular DBMS for efficiency reasons but any system of storage and retrieval is sufficient.
The primary source of data used in validation is the replicated journal of all Bitcoin transactions since its beginning. This transaction journal is called the "blockchain". Every full-node (e.g. wallets like Bitcoin core) maintains its own copy of this transaction journal.
Spendable amounts of Bitcoin are kept track of in the form of unspent transaction outputs (UTXOs). Each transaction consumes one or more UTXOs as inputs and creates new UTXOs as outputs (including amounts of change being returned to the spender). Nodes generally maintain a list of the current set of UTXOs.
Coinbase transactions create new amounts for the block reward without consuming UTXOs. These amounts are constrained by the halving rules for block reward amounts. These rules are built into the software. Coinbase transactions also collect the transaction fees which are the difference between sum of inputs and sum of outputs for ordinary transactions in the block. So those amounts also don't need to be tracked back to specific UTXOs because the ordinary transactions will have already been validated against the UTXO set.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments