Author Topic: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [CANCELED]  (Read 6506 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« Reply #45 on: February 24, 2014, 10:41:08 pm »
I've added block height into transactions, but now i need to figure out how to make a check for it.
Not the block height... the hash of the prior block.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« Reply #46 on: February 24, 2014, 11:42:02 pm »
I've added block height into transactions, but now i need to figure out how to make a check for it.
Not the block height... the hash of the prior block.

oh, ok done. but now i just need to write a check for it.

maybe

Code: [Select]
// TaPOS check if tx has correct block number   
        if (block.hash != (pblock->hashPrevBlock))
        return state.DoS(10, error("CTransaction::CheckTransaction() : TaPoS failed"));
« Last Edit: February 25, 2014, 12:16:46 am by barwizi »
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline bytemaster

Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« Reply #47 on: February 25, 2014, 04:23:17 am »
A transaction need not have the proper hash to be included..., but if it does have the proper hash then the coindays destroyed count toward the block.

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« Reply #48 on: February 25, 2014, 09:16:56 am »
A transaction need not have the proper hash to be included..., but if it does have the proper hash then the coindays destroyed count toward the block.

you want it to calculate coindays destroyed per transaction and use that to factor in as stake?

so if a tx destroys 1000 coin days, the PoW block gets an extra small % in coin representing the TaPoS?

--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline bytemaster

Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« Reply #49 on: February 26, 2014, 06:37:31 am »
A transaction need not have the proper hash to be included..., but if it does have the proper hash then the coindays destroyed count toward the block.

you want it to calculate coindays destroyed per transaction and use that to factor in as stake?

so if a tx destroys 1000 coin days, the PoW block gets an extra small % in coin representing the TaPoS?

There are no PoW blocks... if you look at the code in BitShares X you will see how I calculate it...  but it comes down to this:

If a transaction includes the proper prior hash (one of the last 2 blocks) then its CDD are counted toward that block.  Every block to be produced must have at least AVAILABLE_CDD / BLOCKS_PER_YEAR  destroyed.     

The AVAILABLE_CDD is calculated on a continuous basis as PREV_AVAILABLE_CDD - CDD_DESTROYED + MONEY SUPPLY every block. 

Every block reserves the first transaction to be the 'miners transaction' in which the miner can contribute their own CDD.  This transaction may only have one output.

Every block then contains a Miners Reward Transaction which must pay to the same address as the miners transaction and the amount paid is:

PAID_TO_MINER = TOTAL_FEES * MINERS_CDD / TOTAL_CDD  (or less).
SHARE_SUPPLY -= TOTAL_FEES - PAID_TO_MINER 

And that is the algorithm in a nutshell.





For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline barwizi

  • Hero Member
  • *****
  • Posts: 764
  • Noirbits, NoirShares, NoirEx.....lol, noir anyone?
    • View Profile
    • Noirbitstalk.org
having a hard time
--Bar--  PiNEJGUv4AZVZkLuF6hV4xwbYTRp5etWWJ

The magical land of crypto, no freebies people.

Offline CLains

  • Hero Member
  • *****
  • Posts: 2606
    • View Profile
  • BitShares: clains
Is this still active?

Offline bytemaster

Is this still active?

Given the state of DPOS I see no reason to maintain this.   I'll close it down.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.