Commit Graph

231 Commits (master)

Author SHA1 Message Date
q3k 85ff644d40 Deleted a whole bunch of unused crap 2014-01-26 14:43:02 +01:00
Sunny King 03e73e2f6f Primecoin: Add chainsperday to model mining performance
Ported from upstream commit 86a95e596c.
2013-07-30 14:09:39 +03:00
mikaelh 7ca3db818f Added a new tuning parameter -sievepercentage.
Added getchainspermin RPC command.
Added 'chainspermin', 'difficulty', 'sievepercentage' and 'sievesize' to the output of the 'getmininginfo' RPC command.
2013-07-21 19:26:48 +03:00
Sunny King 25659c1ec8 Primecoin: New genesis block for release main net and test net 2013-07-06 01:19:02 +01:00
Sunny King a2b1fabbcc Primecoin: Update genesis block for release main net and test net 2013-07-05 21:09:24 +01:00
Sunny King 8ad134e130 Primecoin: Switch to main network parameters at release 2013-07-05 20:35:02 +01:00
Sunny King 1d7c3a6d35 Primecoin: Block hash switches to serialized hash
Block header hash must be at least 2**255
2013-07-04 05:50:09 +01:00
Sunny King 4258cb0e53 Primecoin: Disable fee-free transactions
Minimum and default transaction fee at 1 cent per KB
           Minimum txout value at 1 cent
           Enforce min transaction fee and min txout value in protocol
2013-07-03 23:32:35 +01:00
Sunny King ea4c132406 Primecoin: Synchronized checkpoint system with user consent 2013-07-02 06:18:15 +01:00
Sunny King 63c6505c5e Primecoin: Track money supply statistics
Show moneysupply in getinfo
2013-06-26 22:49:48 +01:00
Sunny King 434828e0e2 Primecoin: Estimate work transition ratio
(Difficulty ratio between different length prime chains)
           Disable proof-of-work check when reading block from disk
2013-06-26 19:14:09 +01:00
Sunny King 2ed87758ee Primecoin: Merge from bitcoin-0.8.2
Conflicts:
	.gitignore
	bitcoin-qt.pro
	contrib/verifysfbinaries/verify.sh
	doc/README
	doc/README_windows.txt
	doc/release-notes.txt
	share/setup.nsi
	src/bitcoinrpc.cpp
	src/checkpoints.cpp
	src/clientversion.h
	src/init.cpp
	src/main.cpp
	src/main.h
	src/makefile.linux-mingw
	src/net.cpp
	src/qt/bitcoingui.cpp
	src/qt/res/bitcoin-qt.rc
	src/qt/res/icons/toolbar.png
	src/qt/res/icons/toolbar_testnet.png
	src/test/checkblock_tests.cpp
2013-06-19 20:17:13 +01:00
Sunny King c56624307a Primecoin: Multi-threaded mining 2013-06-04 21:09:29 +01:00
Sunny King 0ef8ae670a Primecoin: Remove chain type specification from block target nBits
Target now met with any of the 3 chain types
           Simplify difficulty adjustment
           Main chain protocol
2013-05-24 00:12:35 +01:00
Pieter Wuille 2ec349bc42 CreateNewBlock performance improvements 2013-05-21 03:53:32 +02:00
Sunny King 6ece37696c Primecoin: Include prime certificate in block hash
bnPrimeChainMultiplier now applies to hashBlockHeader
2013-05-08 07:23:15 +01:00
Gavin Andresen 33edd0a477 Merge pull request #2577 from gavinandresen/fee_bandaid
Treat dust outputs as non-standard, un-hardcode TX_FEE constants
2013-05-04 10:15:39 -07:00
Gavin Andresen 000dc55181 Un-hardcode TX_FEE constants
Allow setting of MIN_TX_FEE / MIN_RELAY_TX_FEE with
-mintxfee / -mintxrelayfee

Default values are the same (0.0001 BTC).
2013-05-03 10:54:31 -04:00
Gavin Andresen 8de9bb53af Define dust transaction outputs, and make them non-standard 2013-05-03 10:52:09 -04:00
Pieter Wuille e31aa7c9d7 Improve gettxoutsetinfo command
* Bugfix: output the correct best block hash (during IBD, it can
  differ from the actual current best block)
* Add height to output
* Add hash_serialized, which is a hash of the entire UTXO state.
  Can be useful to compare two nodes.
* Add total_amount, the sum of all UTXOs' values.
2013-05-01 17:21:43 +02:00
Pieter Wuille 1657c4bc49 Use a uint256 for bnChainWork
Every block index entry currently requires a separately-allocated
CBigNum. By replacing them with uint256, it's just 32 bytes extra
in CBlockIndex itself.

This should save us a few megabytes in RAM, and less allocation
overhead.
2013-04-12 12:17:28 +02:00
Gavin Andresen f158e363a4 Merge pull request #2478 from sipa/fullhash
Always print full hashes (tx, block, inv)
2013-04-09 10:57:16 -07:00
Pieter Wuille 1828133c62 Merge pull request #2403 from gmaxwell/minfee-to-relayfee
Make MIN_TX_FEE match MIN_RELAY_TX_FEE.
2013-04-08 01:50:21 -07:00
Pieter Wuille 1c06aa98c6 Always print full hashes (tx, block, inv) 2013-04-07 03:43:55 +02:00
Sunny King 647061eff5 Primecoin: Re-architecture to pure prime proof-of-work
Use Fermat test remainder to measure fractional difficulty
           Difficulty adjustment based on fractional difficulty
           nBits reformatted to prime chain length based target
2013-04-05 06:56:30 +01:00
Gavin Andresen 21eb5adadb Port Thread* methods to boost::thread_group 2013-04-03 19:57:13 -04:00
Sunny King 64dfe2bd6d Primecoin: Use multiplier as prime chain certificate in block
Target adjustment slowdown toward max
           Allow pnSeed for testnet
2013-03-27 21:50:57 +00:00
Sunny King 6f7c6725cc Primecoin: Type format change to allow BiTwin chain support
getdifficulty to show difficulty for all types
           Add pnSeed for test net to work around connection issue
2013-03-23 07:54:11 +00:00
Gregory Maxwell e3800824d6 Make MIN_TX_FEE match MIN_RELAY_TX_FEE.
Current relay behavior is widely deployed. Supplying a higher minfee than
mining and relaying just irritates users without anti-spam gain.
2013-03-22 17:48:40 -07:00
Sunny King 45837ee049 Primecoin: Persists nProofOfWorkType in CBlock
Use log scale in target adjustment
           Rough miner using power test only
           Fix loading of block index since 1c30daee
2013-03-22 04:14:45 +00:00
Sunny King 62e85f5e45 Primecoin: Hybrid proof-of-work of prime and hash 2013-03-18 06:40:31 +00:00
Sunny King 1c30daeee5 Primecoin: Block format and block index
Check proof-of-work
           Difficulty target adjustment
2013-03-17 12:02:12 +00:00
Sunny King a3a6b12e08 Primecoin: Initial network setup and renaming files 2013-03-14 01:12:46 +00:00
Wladimir J. van der Laan 0bd573d666 Merge pull request #2186 from Diapolo/misc_stuff
small changes in init, main, checkpoints.h and bitcoin-qt.pro
2013-02-23 23:52:27 -08:00
Gavin Andresen cc67f1e2b4 Merge pull request #2221 from sipa/perfo
Various performance tweaks to CCoinsView
2013-02-22 09:01:30 -08:00
Philip Kaufmann 69e0774714 small changes in init, main, checkpoints.h and bitcoin-qt.pro
- remove an unneeded MODAL flag, as MSG_ERROR sets MODAL
- re-order an if-clause in main to have bool checks before a function call
- fix some log messages that used wrong function names
- make a log message use a correct ellipsis
- remove some unneded spaces, brackets and line-breaks
- fix style for adding files in the Qt project
2013-02-20 08:46:38 +01:00
Pieter Wuille f7f3a96b74 Improve block database load error reporting 2013-02-17 23:25:42 +01:00
Gavin Andresen 79892883d7 Merge branch 'reindexgen' of git://github.com/sipa/bitcoin 2013-02-05 10:15:06 -05:00
Gavin Andresen 41e1a0d766 Make transactions larger than 100K non-standard
Extremely large transactions with lots of inputs can cost the network
almost as much to process as they cost the sender in fees.

We would never create transactions larger than 100K big; this change
makes transactions larger than 100K non-standard, so they are not
relayed/mined by default. This is most important for miners that might
create blocks larger than 250K big, who could be vulnerable to a
make-your-blocks-so-expensive-to-verify-they-get-orphaned attack.
2013-02-05 10:08:35 -05:00
Pieter Wuille 386037615a Make sure the genesis block is present after reindex 2013-02-01 23:29:59 +01:00
Gavin Andresen db3b4ade7b Merge pull request #2224 from sipa/valstate
Improve error handling during validation
2013-01-29 19:37:44 -08:00
Gavin Andresen 15ebd4865a Fix two clang3.3 warnings 2013-01-29 22:03:49 -05:00
Pieter Wuille 7851033dd6 Improve dealing with abort conditions 2013-01-30 03:56:45 +01:00
Pieter Wuille ef3988ca36 CValidationState framework 2013-01-30 03:56:44 +01:00
Pieter Wuille d0809a1925 Remove support for pre-checksum undo files 2013-01-28 21:07:56 +01:00
Gavin Andresen 434fa60d75 Merge pull request #2182 from gavinandresen/addressoracle
Remove IsFromMe() check in CTxMemPool::accept()
2013-01-26 11:27:48 -08:00
Pieter Wuille f369d02c51 Various performance tweaks to CCoinsView
* Pass txid's to CCoinsView functions by reference instead of by value
* Add a method to swap CCoins, and use it in some places to avoid a
  allocating copy + destruct.
* Optimize CCoinsViewCache::FetchCoins to do only a single search
  through the backing map.
2013-01-26 18:46:12 +01:00
Pieter Wuille 2d1fa42e85 Add optional transaction index to databases
By specifying -txindex when initializing the database, a txid-to-diskpos
index is maintained in the blktree database. This database is used to
help answering getrawtransaction() RPC queries, when enabled.

Changing the -txindex value requires a -reindex; the client will abort
at startup if the database and the specified -txindex mismatch.
2013-01-18 14:39:11 +01:00
Gavin Andresen 0e31ae9818 Merge pull request #2060 from sipa/parallel
Parallel script verification
2013-01-17 16:58:58 -08:00
Matt Corallo 21aaf255ff Use CPartialMerkleTree for CMerkleBlock transactions. 2013-01-16 14:34:06 -05:00