Commit graph

31 commits

Author SHA1 Message Date
Patrick Lodder 096d657914 Implement [CBlock|CBlockIndex]::GetBaseVersion()
- nVersion & 0xff to easily compare versions without aux data
- change implementations checking nVersion throughout main.ccp
2015-10-18 13:28:59 +00:00
Pieter Wuille 1d554b1d45 Raise version of created blocks, and enforce DERSIG in mempool 2015-10-18 13:28:59 +00:00
Ross Nicoll 00423e36ad
Set AuxPoW switchover block to 371337 2014-08-18 20:14:16 +01:00
Ross Nicoll d9b57edc86
Patched copying of block headers so that auxpow is also copied. Fixes assertion crash when using SPV clients. 2014-08-07 20:17:23 +01:00
Patrick Lodder 4456764bd3 Set chain id to 0x0062
0x0062 is 98 in decimal. Dedicated to Josh Wise.
2014-08-03 17:05:59 +02:00
Patrick Lodder aeb626aeeb extracted auxpow consts
set testnet start of auxpow to block 158100
2014-08-03 17:05:49 +02:00
Nell Hardcastle 5da72d7da8 Enable RPC commands for mining aux proof of work blocks. 2014-08-01 16:43:05 +02:00
Nell Hardcastle 8808f237aa Support auxillary proof of work.
Rebased from 1.7.1 into 1.7.2, moved AuxPoW checks from AcceptBlock()
into AcceptBlockHeader()
2014-08-01 16:42:50 +02:00
Jannis Froese 96c3be0fa1 move GetPoWHash to CBlockHeader class 2014-05-02 19:55:18 +02:00
Ross Nicoll db800dead2
Standardised capitalisation of Dogecoin. 2014-03-31 21:24:02 +01:00
Jannis Froese a4b177d925 credit where credit is due
(cherry picked from commit 5cdcfa9a2b445dd8f8009f6ff3a8ded4ee6515e6)
2014-03-22 22:13:28 +01:00
Jannis Froese de3cb14220 fixing previous commit
(cherry picked from commit 7f6b9903cb1275663106247689e1c1f0ab4007c8)
2014-03-22 22:13:27 +01:00
Jannis Froese 1bf59137be Protocol changes for Dogecoin 1.5
ported over from Dogecoin and Litecoin

(cherry picked from commit 8b09dad2d506fc5a6239863b1c0e33bf7e84da00)
2014-03-22 22:13:27 +01:00
Jeff Garzik beabca2be0 Merge pull request #3305 from mikehearn/fee_drop
Drop fees by 10x due to the persistently higher exchange rate.
2014-02-24 14:05:54 -05:00
Gavin Andresen 4d707d5120 Add verbose boolean to getrawmempool
Also changes mempool to store CTxMemPoolEntries
to keep track of when they enter/exit the pool.
2013-11-30 15:42:10 +10:00
Gavin Andresen 0733c1bde6 Refactor: move GetValueIn(tx) to tx.GetValueIn()
GetValueIn makes more sense as a CTransaction member.
2013-11-30 15:42:10 +10:00
Mike Hearn 6a4c196dd6 Drop fees by 10x due to the persistently higher exchange rate.
The last fee drop was by 5x (from 50k satoshis to 10k satoshis)
in the 0.8.2 release which was about 6 months ago.

The current fee is (assuming a $500 exchange rate) about 5 dollar
cents. The new fee after this patch is 0.5 cents.

Miners who prefer the higher fees are obviously still able to
use the command line flags to override this setting. Miners who
choose to create smaller blocks will select the highest-fee paying
transactions anyway.

This would hopefully be the last manual adjustment ever required
before floating fees become normal.
2013-11-26 15:56:28 +04:00
Pieter Wuille a0fa20a12b Move CCoins-related logic to coins.{cpp.h} 2013-11-10 19:37:56 +01:00
Brandon Dahler 51ed9ec971 Cleanup code using forward declarations.
Use misc methods of avoiding unnecesary header includes.
Replace int typedefs with int##_t from stdint.h.
Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
Normalize QT_VERSION ifs where possible.
Resolve some indirect dependencies as direct ones.
Remove extern declarations from .cpp files.
2013-11-10 09:36:28 -06:00
Pieter Wuille 170e02deaf Generalize the remove-outputs check for fully-prunable transactions.
Instead of explicitly testing for the presence of any output, and
dealing with this case specially, just interpret it as an empty
CCoins.

The case previously caught using the HaveCoins check, is now handled
by the generic outs != outsBlock test.
2013-10-28 15:00:43 +01:00
Pieter Wuille f9b15a4fc9 Move CBlockLocator to core.h
As CBlockLocator is a P2P data structure, and independent from the
validation logic, it can be moved to core.
2013-10-15 11:09:29 +02:00
Pieter Wuille 99740bab9c Skip unspendable outputs in consistency check 2013-09-24 14:11:20 +02:00
Pieter Wuille ec84e81e83 Prune provably-unspendable outputs 2013-07-10 00:23:46 +02:00
Pieter Wuille f121db58e4 Move core implementations to core.cpp 2013-06-25 10:33:29 +02:00
Eric Lombrozo 33944573ca Moved CBlock from main.h to core.h 2013-06-23 19:59:35 -07:00
Cozz Lovan 346427f01b fix comment about dust logic 2013-06-11 05:06:02 +02:00
Eric Lombrozo aabdf9e899 Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core. 2013-06-05 23:15:20 -07:00
Eric Lombrozo 65e7bbef74 Moved CCoins, CTxOutCompressor, CTxInUndo, and CTxUndo to 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
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