Bitcoin Forum
May 09, 2024, 08:43:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: which file in bitcoin core src handles chainstate db ?  (Read 122 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.

Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715244198
Hero Member
*
Offline Offline

Posts: 1715244198

View Profile Personal Message (Offline)

Ignore
1715244198
Reply with quote  #2

1715244198
Report to moderator
1715244198
Hero Member
*
Offline Offline

Posts: 1715244198

View Profile Personal Message (Offline)

Ignore
1715244198
Reply with quote  #2

1715244198
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


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!