Wladimir J. van der Laan
734f85c4f0
Use arith_uint256 where necessary
...
Also add conversion from/to uint256 where needed.
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
jtimon
eb0d34b494
Remove unused chainparam networkID
10 years ago
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
10 years ago
Pavel Janík
84738627ce
Fix all header defines
10 years ago
jtimon
99f41b9cf7
MOVEONLY: core.o -> core/block.o
10 years ago
Michael Ford
f2e03ffae9
Update comments in chainparams to be doxygen compatible
10 years ago
jtimon
6fd546dd96
Remove CChainParams::NetworkID()
10 years ago
jtimon
cc97210799
Add fTestnetToBeDeprecatedFieldRPC to CChainParams
10 years ago
jtimon
e11712df7e
Move checkpoint data selection to chainparams
10 years ago
Wladimir J. van der Laan
fbd36d8fb5
Avoid introducing a virtual into CChainParams
...
Treat fSkipProofOfWorkCheck the same as other parameters.
10 years ago
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
10 years ago
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
.
10 years ago
Wladimir J. van der Laan
4705902777
Avoid introducing a virtual into CChainParams
...
Treat fSkipProofOfWorkCheck the same as other parameters.
10 years ago
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
10 years ago
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.
10 years ago
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
10 years ago
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.
11 years ago
jtimon
fd704c7b2c
move pow constants to chainparams
11 years ago
jtimon
b82b7ec3dc
Get rid of Params().RPCisTestNet()
11 years ago
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.
11 years ago
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
11 years ago
Philip Kaufmann
699fe635c6
remove wrong ; in chainparams.h and order includes
11 years ago
jtimon
c8c52de3a0
Replace virtual methods with static attributes, chainparams.h depends on
...
protocol.h instead of the other way around
11 years ago
jtimon
a3d946ebdc
Get rid of TestNet()
11 years ago
jtimon
6fc0fa63d9
Add RPCisTestNet chain parameter
11 years ago
jtimon
cfeb8235fd
Add RequireStandard chain parameter
11 years ago
jtimon
21913a9ac9
Add AllowMinDifficultyBlocks chain parameter
11 years ago
jtimon
d754f34e8d
Move majority constants to chainparams
11 years ago
jtimon
8d26721498
Get rid of RegTest()
11 years ago
jtimon
cb9bd83bba
Add DefaultCheckMemPool chain parameter
11 years ago
jtimon
2595b9ac23
Add DefaultMinerThreads chain parameter
11 years ago
jtimon
bfa9a1a638
Add MineBlocksOnDemand chain parameter
11 years ago
jtimon
1712adbe0b
Add MiningRequiresPeers chain parameter
11 years ago
Pieter Wuille
ccc84e0963
Reduce bignum.h now it is only needed for scriptnum_tests
11 years ago
Pieter Wuille
df9eb5e14f
Move {Get,Set}Compact from bignum to uint256
11 years ago
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.
11 years ago
Philip Kaufmann
96b9603c01
misc spelling / space / style fixes
11 years ago
Gavin Andresen
b94595bb7f
GetDataDir(): cache paths for each network separately
11 years ago
Pieter Wuille
2461aba1ac
Mempool consistency check
11 years ago
Pieter Wuille
eb2c999050
BIP32 derivation implementation
12 years ago
Pieter Wuille
8388289eb6
Generalize version bytes
12 years ago
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.
12 years ago