BitShares Forum

Main => Technical Support => Topic started by: VoR0220 on January 29, 2015, 04:46:33 am

Title: Questions regarding the Code in Bitshares
Post by: VoR0220 on January 29, 2015, 04:46:33 am
I want to start a project off of Bitshares but I need to know where to find functions in the files (I can't find a lot of good documentation which makes it hard to figure out what is what).

A) Where is the blockchain?
B) Where can I find code regarding Delegates both in terms of their functions and in terms of their organization structure (The 101 randomization function)?
C) Where can I find code regarding voting?
D) Where can I find code regarding Delegated Proof of Stake?

Sorry if this seems a little lazy, I'd just rather cut to the chase and ask the people who know this code inside and out already so I can begin studying it and creating.
Title: Re: Questions regarding the Code in Bitshares
Post by: abit on January 29, 2015, 07:24:24 am
I want to start a project off of Bitshares but I need to know where to find functions in the files (I can't find a lot of good documentation which makes it hard to figure out what is what).

A) Where is the blockchain?
B) Where can I find code regarding Delegates both in terms of their functions and in terms of their organization structure (The 101 randomization function)?
C) Where can I find code regarding voting?
D) Where can I find code regarding Delegated Proof of Stake?

Sorry if this seems a little lazy, I'd just rather cut to the chase and ask the people who know this code inside and out already so I can begin studying it and creating.
They're in YOUR_SOURCE_PATH/libraries/blockchain/.
Title: Re: Questions regarding the Code in Bitshares
Post by: VoR0220 on January 29, 2015, 07:36:08 am
I want to start a project off of Bitshares but I need to know where to find functions in the files (I can't find a lot of good documentation which makes it hard to figure out what is what).

A) Where is the blockchain?
B) Where can I find code regarding Delegates both in terms of their functions and in terms of their organization structure (The 101 randomization function)?
C) Where can I find code regarding voting?
D) Where can I find code regarding Delegated Proof of Stake?

Sorry if this seems a little lazy, I'd just rather cut to the chase and ask the people who know this code inside and out already so I can begin studying it and creating.
They're in YOUR_SOURCE_PATH/libraries/blockchain/.

 +5% Thank you.
Title: Re: Questions regarding the Code in Bitshares
Post by: vikram on January 29, 2015, 05:50:46 pm
For A-D, in particular take a look at the chain_database and chain_interface files.
Title: Re: Questions regarding the Code in Bitshares
Post by: VoR0220 on January 29, 2015, 08:29:14 pm
For A-D, in particular take a look at the chain_database and chain_interface files.

Thanks a ton! That helps a lot.
Title: Re: Questions regarding the Code in Bitshares
Post by: VoR0220 on January 29, 2015, 09:47:54 pm
In the case of chain_interface.cpp and chain_interface_v2.cpp which one should I look at to know what is the primary one bitshares is running on?
Title: Re: Questions regarding the Code in Bitshares
Post by: vikram on January 29, 2015, 10:32:48 pm
The _v1, _v2, etc. files and functions are the old logic before a hardfork. If you want only the latest code you should look at develop branch; or you can also look at toolkit branch which is the most recent common ancestor between master (the last release) and develop.
Title: Re: Questions regarding the Code in Bitshares
Post by: VoR0220 on January 29, 2015, 10:36:39 pm
The _v1, _v2, etc. files and functions are the old logic before a hardfork. If you want only the latest code you should look at develop branch; or you can also look at toolkit branch which is the most recent common ancestor between master (the last release) and develop.

Thanks a ton Vikram. Can I message you if I have any more questions?
Title: Re: Questions regarding the Code in Bitshares
Post by: vikram on January 29, 2015, 11:02:24 pm
The _v1, _v2, etc. files and functions are the old logic before a hardfork. If you want only the latest code you should look at develop branch; or you can also look at toolkit branch which is the most recent common ancestor between master (the last release) and develop.

Thanks a ton Vikram. Can I message you if I have any more questions?

Yeah