Author Topic: Questions regarding the Code in Bitshares  (Read 429 times)

0 Members and 1 Guest are viewing this topic.

Offline VoR0220

Questions regarding the Code in Bitshares
« 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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3008
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Questions regarding the Code in Bitshares
« Reply #1 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/.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline VoR0220

Re: Questions regarding the Code in Bitshares
« Reply #2 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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

Re: Questions regarding the Code in Bitshares
« Reply #3 on: January 29, 2015, 05:50:46 pm »
For A-D, in particular take a look at the chain_database and chain_interface files.

Offline VoR0220

Re: Questions regarding the Code in Bitshares
« Reply #4 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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline VoR0220

Re: Questions regarding the Code in Bitshares
« Reply #5 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?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

Re: Questions regarding the Code in Bitshares
« Reply #6 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.

Offline VoR0220

Re: Questions regarding the Code in Bitshares
« Reply #7 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?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

Re: Questions regarding the Code in Bitshares
« Reply #8 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