Wladimir J. van der Laan
3aa0130b96
test: remove fSkipProofOfWork
...
Not used, and REGTEST already allows creating blocks at
the lowerst possible difficulty.
2015-03-09 16:09:54 +01:00
Wladimir J. van der Laan
59bd89f116
test: Remove UNITTEST params
...
UNITTEST parameter are not used by any current tests, and the model
(modifyable parameters) is inconvenient when unit-testing. As
they are stored in a global structure eevery test
would have to (re)set up its own parameters.
For consistency it is also better to test with MAIN parameters.
2015-03-09 16:06:14 +01:00
Cory Fields
eec37136fd
make CMessageHeader a dumb storage class
...
It shouldn't know or care about bitcoind's chain param selection
2015-02-25 18:44:49 -05:00
Shaul Kfir
e5ece053da
Rename Interval() to DifficultyAdjustmentInterval()
2015-02-17 08:46:51 -05:00
Wladimir J. van der Laan
de70dd4904
Merge pull request #5598
...
eb0d34b
Remove unused chainparam networkID (jtimon)
2015-01-06 18:12:58 +01:00
Wladimir J. van der Laan
734f85c4f0
Use arith_uint256 where necessary
...
Also add conversion from/to uint256 where needed.
2015-01-05 15:45:35 +01:00
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-12-19 19:55:32 +01:00
jtimon
eb0d34b494
Remove unused chainparam networkID
2014-12-11 23:32:30 +01:00
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
2014-12-03 10:52:58 +00:00
Pavel Janík
84738627ce
Fix all header defines
2014-11-03 16:16:40 +01:00
Wladimir J. van der Laan
f157cbb443
Merge pull request #5142
...
02fe12d
Update generate-seeds.py to produce doxygen compatible comments (Michael Ford)
f2e03ff
Update comments in chainparams to be doxygen compatible (Michael Ford)
2fdc335
Update comments in chain to be doxygen compatible (Michael Ford)
2014-10-30 10:28:42 +01:00
jtimon
99f41b9cf7
MOVEONLY: core.o -> core/block.o
2014-10-27 13:54:37 +01:00
Michael Ford
f2e03ffae9
Update comments in chainparams to be doxygen compatible
2014-10-25 17:24:16 +08:00
jtimon
6fd546dd96
Remove CChainParams::NetworkID()
2014-10-10 11:01:00 +02:00
jtimon
cc97210799
Add fTestnetToBeDeprecatedFieldRPC to CChainParams
2014-10-10 11:01:00 +02:00
jtimon
e11712df7e
Move checkpoint data selection to chainparams
2014-10-10 11:00:59 +02:00
Wladimir J. van der Laan
fbd36d8fb5
Avoid introducing a virtual into CChainParams
...
Treat fSkipProofOfWorkCheck the same as other parameters.
2014-10-02 13:54:26 +02:00
SergioDemianLerner
f0fd00cb77
Switch testing framework from MAIN to new UNITTEST network
...
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
2014-10-02 13:51:39 +02:00
Wladimir J. van der Laan
8d132431b4
Revert merge of pull #4845
...
It breaks the new mingw tests!
See
- https://travis-ci.org/bitcoin/bitcoin/jobs/36845581
- https://travis-ci.org/bitcoin/bitcoin/jobs/36845582
This reverts commit 4705902777
, 5e2e7fcb99
, a25fd6be13
.
2014-10-02 10:39:55 +02:00
Wladimir J. van der Laan
4705902777
Avoid introducing a virtual into CChainParams
...
Treat fSkipProofOfWorkCheck the same as other parameters.
2014-09-29 13:13:47 +02:00
SergioDemianLerner
a25fd6be13
Switch testing framework from MAIN to new UNITTEST network
...
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
2014-09-29 13:03:22 +02:00
Wladimir J. van der Laan
f23869e14b
Merge pull request #4623
...
e84843c
Broken addresses on command line no longer trigger testnet. (Ross Nicoll)
2014-09-10 15:07:58 +02:00
Ross Nicoll
e84843c0db
Broken addresses on command line no longer trigger testnet.
...
When passing a bitcoin: URI on the command line, invalid addresses do not incorrectly send the
user to the test network.
2014-08-30 09:39:59 +01:00
Philip Kaufmann
093303a887
add missing header end comments
...
- ensures a consistent usage in header files
- also add a blank line after the copyright header where missing
- also remove orphan new-lines at the end of some files
2014-08-28 22:25:21 +02:00
Wladimir J. van der Laan
84ce18ca93
Remove unnecessary dependencies for bitcoin-cli
...
This commit removes all the unnecessary dependencies (key, core,
netbase, sync, ...) from bitcoin-cli.
To do this it shards the chain parameters into BaseParams, which
contains just the RPC port and data directory (as used by utils and
bitcoin-cli) and Params, with the rest.
2014-06-25 10:31:35 +02:00
jtimon
fd704c7b2c
move pow constants to chainparams
2014-06-23 23:10:24 +02:00
jtimon
b82b7ec3dc
Get rid of Params().RPCisTestNet()
2014-06-17 13:08:25 +02:00
Wladimir J. van der Laan
09eb201b1b
Remove using namespace std
from header file
...
It's considered bad form to import things into the global namespace in a
header. Put it in the cpp files where it is needed instead.
2014-06-16 17:42:54 +02:00
Philip Kaufmann
f5ae6c9826
add NetworkIDString() to chainparams
...
- returns the BIP70 network string
- use that new function in the core and GUI code and remove unused code
and functions
2014-06-12 13:19:12 +02:00
Philip Kaufmann
699fe635c6
remove wrong ; in chainparams.h and order includes
2014-06-10 19:33:12 +02:00
jtimon
c8c52de3a0
Replace virtual methods with static attributes, chainparams.h depends on
...
protocol.h instead of the other way around
2014-06-04 13:29:36 +02:00
jtimon
a3d946ebdc
Get rid of TestNet()
2014-06-04 13:29:36 +02:00
jtimon
6fc0fa63d9
Add RPCisTestNet chain parameter
2014-06-04 13:29:36 +02:00
jtimon
cfeb8235fd
Add RequireStandard chain parameter
2014-06-04 13:29:36 +02:00
jtimon
21913a9ac9
Add AllowMinDifficultyBlocks chain parameter
2014-06-04 13:29:36 +02:00
jtimon
d754f34e8d
Move majority constants to chainparams
2014-06-04 13:29:36 +02:00
jtimon
8d26721498
Get rid of RegTest()
2014-06-04 13:29:35 +02:00
jtimon
cb9bd83bba
Add DefaultCheckMemPool chain parameter
2014-06-04 13:29:35 +02:00
jtimon
2595b9ac23
Add DefaultMinerThreads chain parameter
2014-06-04 13:29:35 +02:00
jtimon
bfa9a1a638
Add MineBlocksOnDemand chain parameter
2014-06-04 13:29:35 +02:00
jtimon
1712adbe0b
Add MiningRequiresPeers chain parameter
2014-06-04 13:29:35 +02:00
Pieter Wuille
ccc84e0963
Reduce bignum.h now it is only needed for scriptnum_tests
2014-05-09 17:38:44 +02:00
Pieter Wuille
df9eb5e14f
Move {Get,Set}Compact from bignum to uint256
2014-05-09 16:44:59 +02: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
Philip Kaufmann
96b9603c01
misc spelling / space / style fixes
2013-10-15 12:13:54 +02:00
Gavin Andresen
b94595bb7f
GetDataDir(): cache paths for each network separately
2013-08-22 11:05:44 +10:00
Gavin Andresen
9be4cff5f6
Merge pull request #2876 from sipa/fixreorgcrash
...
Fix reorganization crash
2013-08-15 18:51:06 -07:00
Pieter Wuille
2461aba1ac
Mempool consistency check
2013-08-15 23:55:35 +02:00
Pieter Wuille
eb2c999050
BIP32 derivation implementation
2013-07-15 01:05:25 +02:00
Pieter Wuille
8388289eb6
Generalize version bytes
2013-06-24 00:56:46 +02: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