Commit Graph

43 Commits (6300009a6e16206cf2e85065ea90835649a0479c)

Author SHA1 Message Date
Sunny King 4017154c73 Primecoin: Add new command 'listtopprimes' 2013-08-24 20:39:35 +03:00
Mikael Hirki 0768dadbd9 Removed the no longer used roundsievepercentage parameter. 2013-08-21 18:43:41 +03:00
Mikael Hirki 56072a11c0 Major rewrite of the sieve to support extending the sieve (originally implemented by jh000).
Added new parameter -sieveextensions (defaults to 6 for mainnet).
The round primorial is now adjusted automatically and -roundsievepercentage is not used anymore.
2013-08-11 20:44:46 +03:00
Sunny King be6897250b Primecoin: Command 'listprimerecords' to list records inside primecoin 2013-07-30 14:24:27 +03:00
mikaelh 6e8970b8f0 Rename 'gensieveroundpercentage' to 'roundsievepercentage' for simplicity. 2013-07-26 00:31:13 +03:00
mikaelh eb2402ac05 Added RPC commands getsievepercentage, setsievepercentage, getgensieveroundpercentage and setgensieveroundpercentage. 2013-07-26 00:14:01 +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 ea4c132406 Primecoin: Synchronized checkpoint system with user consent 2013-07-02 06:18:15 +01:00
Sunny King 609c31a272 Primecoin: Update alert master keys and add supporting commands 2013-06-27 22:41:25 +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
Gavin Andresen 36e826cea1 Clean up mining CReserveKey to prevent crash at shutdown
Fixes issue#2687
2013-05-23 14:17:15 -04: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 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
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
freewil 10ef361169 CRPCCommand.unlocked -> CRPCCommand.threadSafe
unlocked could be confused with wallet encryption
2013-03-07 06:18:55 -05:00
Matt Corallo 67a11bd6c5 Add a getaddednodeinfo RPC. 2013-01-27 03:03:04 -05:00
Matt Corallo 72a348fd9a Add addnode RPC command. 2013-01-27 03:03:04 -05:00
Jeff Garzik fdbb537d26 Add new RPC "lockunspent", to prevent spending of selected outputs
and associated RPC "listlockunspent".

This is a memory-only filter, which is empty when a node restarts.
2012-11-15 21:11:30 -05:00
Gavin Andresen 34226be7a8 New createmultisig rpc command
This is to support the signrawtransaction API call; given the public
keys involved in a multisig transaction, this gives back the redeemScript
needed to sign it.
2012-10-29 13:34:35 -04:00
Pieter Wuille beeb57610c Add gettxout and gettxoutsetinfo RPCs 2012-10-20 23:08:57 +02:00
Wladimir J. van der Laan 285746d3db Add constants for HTTP status codes 2012-10-04 15:49:15 +02:00
Wladimir J. van der Laan 738835d7b8 Document RPC error codes
Replace all "magic values" in RPCError(...) by constants.
2012-10-04 15:49:15 +02:00
coderrr 22dfd73598 Add address groupings RPC from the coincontrol patches.
Signed-off-by: Gregory Maxwell <greg@xiph.org>
2012-08-23 15:55:42 -04:00
Jeff Garzik 1954d40691 Merge pull request #1493 from jgarzik/unlocked-rpc
RPC: add facility to enable RPCs to run outside cs_main, wallet locks
2012-08-21 09:22:13 -07:00
Jeff Garzik 0e1d3551da RPC: add facility to enable RPCs to run outside cs_main, wallet locks
Use with 'stop' and 'help' RPCs.

This provides a facility to individually evaluate the locking for an RPC, and
potentially make it more parallel.
2012-08-21 12:03:52 -04:00
Gavin Andresen b4b7ed1915 Fix 32-bit build error: include util.h to get int64 typedef 2012-08-21 11:59:59 -04:00
Jeff Garzik 5f2b41d54d Merge pull request #1693 from jgarzik/rpcwallet
Move code to new modules rpcwallet.cpp, rpcblockchain.cpp
2012-08-21 08:44:21 -07:00
Jeff Garzik c625ae04d2 RPC, cosmetic: move more RPC code to new rpcblockchain.cpp module 2012-08-21 11:03:38 -04:00
Jeff Garzik e3bc569865 RPC, cosmetic: move wallet-related RPCs to new rpcwallet.cpp module 2012-08-21 10:38:57 -04:00
Gavin Andresen cc6dfd1f4b Allow signrawtransaction '...' null null 'hashtype'
Allows the user to pass null as the second or third parameter
to signrawtransaction, in case you need to (for example) fetch
private keys from the wallet but want to specify the hash type.
2012-08-20 17:19:13 -04:00
Gavin Andresen 899d373b3c RPCTypeCheck method to make type-checking JSON Arrays easier. 2012-07-05 12:42:25 -04:00
Jeff Garzik 480d44bd0b rpcdump: include cleanup. move JSONRPCError def to bitcoinrpc.h. 2012-05-23 23:20:07 -04:00
Jeff Garzik 7b671f52e0 Define BOOST_SPIRIT_THREADSAFE in all makefiles
rather than at each include site.

Fixes #1371
2012-05-21 22:25:54 -04:00
Fordy 3a25a2b9b0 Update License in File Headers
I originally created a pull to replace the "COPYING" in crypter.cpp and
crypter.h, but it turned out that COPYING was actually the correct
file.
2012-05-18 22:02:28 +08:00
David Joel Schwartz e9205293bd Support multi-threaded JSON-RPC
Change internal HTTP JSON-RPC server from single-threaded to
thread-per-connection model.  The IP filter list is applied prior to starting
the thread, which then processes the RPC.

A mutex covers the entire RPC operation, because not all RPC operations are
thread-safe.

[minor modifications by jgarzik, to make change upstream-ready]
2012-05-08 20:11:17 -04:00
Wladimir J. van der Laan 460c51fdad Add UI RPC console / debug window 2012-05-05 10:37:06 +02:00
Pieter Wuille e46704dd90 Expose CRPCTable via bitcoinrpc.h for testing 2012-04-21 01:37:34 +02:00
Gavin Andresen 882164196e Update all copyrights to 2012 2012-02-07 11:28:30 -05:00
Wladimir J. van der Laan b90c9ecb13 Merge branch 'master' of https://github.com/bitcoin/bitcoin 2011-08-16 10:28:24 +02:00
Wladimir J. van der Laan 8fe2308b34 windows build fixes 2011-07-03 22:29:26 +02:00