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
0678ae169b
CreateSpamMsgTx fallback to "nobody"
2013-10-31 14:04:13 -02:00
Miguel Freitas
2c48386b4e
Properly implement spam signing and checking to prevent it from been used to impersonate users.
...
"nobody" is an exception so default client could still send unauthenticated/anonymous spam
messages.
2013-10-31 14:02:29 -02:00
Miguel Freitas
7e57fb2fe4
mempool uses txhash again (instead of userhash). this is needed to fix key replacement.
...
using userhash in mempool was a bad idea, it creates incompatibilities with merkle tree code etc.
now we are back to standard bitcoin protocol regarding tx and inv commands, possibly filter as well.
2013-10-07 19:33:29 -03:00
Miguel Freitas
b6db2327e4
add support (untested) for key replacement
2013-10-01 19:37:29 -03:00
Miguel Freitas
0df5c54166
promoted posts implemented
2013-10-01 08:57:51 -03:00
Miguel Freitas
a32bfec78f
sugestion: add language to the spam message text
2013-09-20 19:56:59 -03:00
miguel
6b9c27048e
partial untested torrent chages. will use leveldb for storage, no more multi-files per torrent, number of pieces may increase.
2013-08-17 20:12:44 -03:00
Miguel Freitas
82ea843b46
make block signature compatible with the rest
2013-08-09 10:14:43 -03:00
Miguel Freitas
3a1d772643
improve dht node added from bitcoin network peers
2013-08-07 20:20:03 -03:00
Miguel Freitas
78e97ac9dc
use the same message magic everywhere (to hash)
2013-08-04 11:36:44 -03:00
Miguel Freitas
9946d6ed72
mining fixes: add salt to instance and use correct username for signing
2013-07-25 12:06:18 -03:00
Miguel Freitas
ad712d5006
fix wrongly erasing of indextx with checklevel==3
2013-07-25 10:43:06 -03:00
Miguel Freitas
76f8a901a7
removing stuff
2013-07-24 20:28:23 -03:00
Miguel Freitas
26bbd5614f
remove GetCoins/SetCoins
2013-07-24 18:23:05 -03:00
Miguel Freitas
fe01fd01cb
create CScript overload for << string
2013-07-24 16:22:18 -03:00
Miguel Freitas
4d43b4a6f0
fix CreateSpamMsgTx signing (GetHash on CHashWriter cannot be used twice)
2013-07-24 16:08:25 -03:00
Miguel Freitas
84f796be7f
fix EraseTxIndex usage
2013-07-21 18:39:20 -03:00
Miguel Freitas
6e1c42e963
tx accepted!
2013-07-20 23:58:56 -03: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
623b80c061
fix missing nHeight field
2013-07-20 16:56:02 -03:00
Miguel Freitas
6ff04a0de2
fix genesis block hash
2013-07-20 15:35:57 -03:00
Miguel Freitas
0b753e0ce2
add nHeight to header for mining (a couple of offsets need +4 to work again)
2013-07-19 20:18:55 -03:00
Miguel Freitas
05c7d3f27d
fix/improve printf of created tx
2013-07-19 19:54:37 -03:00
Miguel Freitas
1c4f457312
remove stuff
2013-07-19 16:50:30 -03:00
Miguel Freitas
c13ab7e5d5
comment how/where tx userhashes are checked upon block acceptance
2013-07-19 16:39:12 -03:00
Miguel Freitas
d66994d0f0
new function to create spam message
2013-07-19 16:31:56 -03:00
Miguel Freitas
311b1d7eaa
use txIndex instead of coins to keep track of commited tx
2013-07-19 01:00:06 -03:00
Miguel Freitas
4652b9f01b
mempool/cinv now indexed by userhash (all tx must be indexed by userhash btw)
2013-07-19 00:00:59 -03:00
Miguel Freitas
b0716cdc3d
fTxIndex always true in twister
2013-07-18 18:42:22 -03:00
Miguel Freitas
16a28fc9e9
some notes
2013-07-18 18:36:32 -03:00
miguel
2353123580
remove vtxPrev
2013-07-18 14:51:51 -03:00
Miguel Freitas
7f12546f84
change hash(tx) to hash(username) in ccoins
...
hash(tx) does not insure uniqueness of username
2013-07-17 18:38:03 -03:00
Miguel Freitas
878d15160f
ccoins is now the register element database
2013-07-17 17:48:29 -03:00
Miguel Freitas
d0e83d8803
add spammessage and sign it (untested)
2013-07-17 17:11:14 -03:00
Miguel Freitas
7a47376e40
removing stuff
2013-07-17 15:23:47 -03:00
Miguel Freitas
e70fafc0f9
removing stuff
2013-07-17 15:09:13 -03:00
Miguel Freitas
943bff5921
orphaned tx makes no sense anymore
2013-07-17 14:46:43 -03:00
Miguel Freitas
3cc155526a
block creation
2013-07-16 23:53:02 -03:00
Miguel Freitas
97ba3b787c
cleaning block/tx checking
2013-07-16 23:36:25 -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
0e863844ed
reenable rate limit on tx
2013-07-16 08:59:35 -03:00
Miguel Freitas
5018edc8ca
remove txfee
2013-07-16 08:46:22 -03:00
Miguel Freitas
2718ee55bf
make genesis block valid and disable gui
2013-07-16 01:11:02 -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
Jeff Garzik
d598872726
Merge pull request #2743 from jgarzik/reject-reason
...
Log reason for non-standard transaction rejection
2013-07-10 08:50:49 -07:00
Pieter Wuille
4ad73c6b08
Merge pull request #2209 from CodeShark/WalletRegistrationLocks
...
Wallet registration locks in main.cpp + UnregisterAllWallet() function
2013-06-25 16:33:16 -07:00
Jeff Garzik
481d899794
Merge pull request #2792 from sipa/coreimpl
...
Move core implementations to core.cpp
2013-06-25 11:52:18 -07:00