Commit Graph

13 Commits

Author SHA1 Message Date
Miguel Freitas
6fae6f216b remove assert. not the proper way to handle this 2013-11-20 14:49:37 -02:00
Miguel Freitas
30992b87c3 use scrypt hash function like litecoin 2013-11-14 00:57:51 -02:00
Miguel Freitas
f81088be70 properly implement verification using keys that have been replaced.
the basic idea is replace txIndex key with a pair (username,height).
height = -1 for the most up-to-date key, otherwise height = last block where previous key was valid.
by checking maxHeight and iterating backwards we can easily find the key to validate data from any given block number.
2013-11-05 00:00:11 -02:00
Miguel Freitas
a6ff5511fa test invalid userhash (might be an invalid tx received from network) 2013-07-20 20:00:30 -03:00
Miguel Freitas
d9fdca340c implement CScript => string extraction, check username constraits, improve username hash 2013-07-20 19:54:48 -03:00
Miguel Freitas
878d15160f ccoins is now the register element database 2013-07-17 17:48:29 -03:00
Miguel Freitas
943bff5921 orphaned tx makes no sense anymore 2013-07-17 14:46:43 -03:00
Miguel Freitas
27ee7c328b add and verify proof of work in tx. remove some old stuff. 2013-07-16 21:46:36 -03:00
Miguel Freitas
9cb71491a6 adds userName to transaction 2013-07-15 21:10:28 -03:00
Miguel Freitas
73e1f33dc8 removed vin and vout from CTransaction
genesis block broken
2013-07-15 20:14:57 -03:00
Pieter Wuille
f121db58e4 Move core implementations to core.cpp 2013-06-25 10:33:29 +02:00
Eric Lombrozo
05df3fc68d Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance.
Removed AreInputsStandard from CTransaction, made it a regular function in main.
Moved CTransaction::GetOutputFor to CCoinsViewCache.

Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main.

Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache.

Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main.

Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core.

Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
2013-06-05 23:15:20 -07:00
Eric Lombrozo
effc2770f5 Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. 2013-06-05 23:14:52 -07:00