166
Marketplace / Re: 1500 PTS - Bitcoin clone with Dividends, POS, and Signature POW [ACTIVE]
« 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"));