Bitcoin Forum
November 14, 2024, 09:13:29 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: which file in bitcoin core src handles chainstate db ?  (Read 142 times)
btctousd81 (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
January 25, 2018, 03:42:28 AM
Merited by ABCbits (1)
 #1

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.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
January 25, 2018, 03:52:41 AM
Merited by ABCbits (2)
 #2

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).

btctousd81 (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
January 25, 2018, 04:30:05 AM
 #3

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 ?

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!