Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: btctousd81 on January 25, 2018, 03:42:28 AM



Title: which file in bitcoin core src handles chainstate db ?
Post by: btctousd81 on January 25, 2018, 03:42:28 AM
i am trying to find out which cpp file in bitcoin-core src, is handling stuff related to chainstate db.

https://github.com/bitcoin/bitcoin/


Thanks for your time.


Title: Re: which file in bitcoin core src handles chainstate db ?
Post by: achow101 on January 25, 2018, 03:52:41 AM
The chainstate db contains basically two parts, the UTXO set and the actual chain state. The stuff pertaining to the UTXO set is in txbd.{cpp, h}. The stuff related to the actual chain state can be found in validation.{cpp, h} (mostly things under the CChainState class).


Title: Re: which file in bitcoin core src handles chainstate db ?
Post by: btctousd81 on January 25, 2018, 04:30:05 AM
The chainstate db contains basically two parts, the UTXO set and the actual chain state. The stuff pertaining to the UTXO set is in txbd.{cpp, h}. The stuff related to the actual chain state can be found in validation.{cpp, h} (mostly things under the CChainState class).

i am interested in UTXO set .
i read key=> value pairs are there in UTXO set chainstate.

whats in actual chain state ?