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
Peter Todd
c40a5aaaf4
Truncate oversize 'tx' messages before relaying/storing.
...
Fixes a memory exhaustion attack on low-memory peers.
2013-06-25 10:37:50 -04:00
Pieter Wuille
f121db58e4
Move core implementations to core.cpp
2013-06-25 10:33:29 +02:00
Eric Lombrozo
e5cefb9be1
Added locks on the setpwalletRegistered functions in main.cpp and added an UnregisterAllWallets function.
2013-06-24 09:25:23 -07:00
Eric Lombrozo
2a4d3464fd
Pulled AcceptBlock out of CBlock.
2013-06-23 19:59:35 -07:00
Eric Lombrozo
38991ffa8a
Pulled CheckBlock out of CBlock.
2013-06-23 19:59:35 -07:00
Eric Lombrozo
1959997afb
Pulled AddToBlockIndex out of CBlock.
2013-06-23 19:59:35 -07:00
Eric Lombrozo
f3ae51dcce
Pulled ConnectBlock out of CBlock.
2013-06-23 19:59:35 -07:00
Eric Lombrozo
5c363ed622
Pulled DisconnectBlock out of CBlock.
2013-06-23 19:59:34 -07:00
Eric Lombrozo
8031399494
Moved ReadBlockFromDisk implementation to main.cpp
2013-06-23 19:59:34 -07:00
Eric Lombrozo
7db120d531
Moved CBlock::ReadFromDisk out of CBlock to functions ReadBlockFromDisk in main.h
2013-06-23 19:59:34 -07:00
Eric Lombrozo
226f821942
Moved WriteBlockToDisk implementation from main.h to main.cpp
2013-06-23 19:59:32 -07:00
Eric Lombrozo
a6dba0fdb2
Moved CBlock::WriteToDisk out of CBlock to inline function WriteBlockToDisk in main.h
2013-06-23 19:58:23 -07:00
Jeff Garzik
4be2aba302
Merge pull request #2778 from jgarzik/rpc-verifydb
...
RPC: add 'verifychain' to verify chain database at runtime
2013-06-22 23:08:13 -07:00
Jeff Garzik
980bfe6ef8
Log reason for non-standard transaction rejection
2013-06-23 02:05:25 -04:00
Pieter Wuille
b4a8a326c0
Merge pull request #2660 from TheBlueMatt/gmfrefactor
...
Refactor fee rules to make them actually readable.
2013-06-22 10:08:57 -07:00
Jeff Garzik
f590653377
RPC: add 'verifychain', to verify chain database at runtime
2013-06-19 11:53:02 -04:00
Jeff Garzik
168ba99392
Pass check level, check depth to VerifyDB()
2013-06-19 11:32:49 -04:00
Mike Hearn
0e4b317555
Introduce a CChainParameters singleton class and regtest mode.
...
The new class is accessed via the Params() method and holds
most things that vary between main, test and regtest networks.
The regtest mode has two purposes, one is to run the
bitcoind/bitcoinj comparison tool which compares two separate
implementations of the Bitcoin protocol looking for divergence.
The other is that when run, you get a local node which can mine
a single block instantly, which is highly convenient for testing
apps during development as there's no need to wait 10 minutes for
a block on the testnet.
2013-06-19 16:28:52 +02:00
Mike Hearn
70e7fba06d
Move implementation of some CBlockLocator methods
...
Move out of main.h to improve compile times and add documentation
for what the methods do.
2013-06-19 15:39:45 +02:00
Matt Corallo
87cce04c17
Refactor fee rules to make them actually readable.
...
This (nearly) doesn't change fee rules at all:
* To make it into the fee transaction area, the dPriority comparison
changed from < to <=
* We now just ignore transactions > MAX_BLOCK_SIZE/4 instead of
doing some calculations to require increasingly large fees as
size increases.
2013-06-14 13:37:43 +02:00
Matt Corallo
b1f15b218b
Remove broken option to skip input checking for wallet txn.
2013-06-13 22:28:03 +02:00
Eric Lombrozo
501da2503a
Using boost::signals2 to message main from net.cpp.
2013-06-05 23:15:20 -07:00
Eric Lombrozo
aabdf9e899
Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.
2013-06-05 23:15:20 -07: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
788536f175
Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a regular function in main.
2013-06-05 23:15:19 -07:00