dogecoin/test/functional/test_framework
Ross Nicoll ce564e381a Merge AuxPoW support from Namecore
Changes are as below:

Wrap CBlockHeader::nVersion into a new class (CBlockVersion).  This allows to take care of interpreting the field into a base version, auxpow flag and the chain ID.

Update getauxblock.py for new 'generate' RPC call.

Add 'auxpow' to block JSON.

Accept auxpow as PoW verification.

Add unit tests for auxpow verification.

Add check for memory-layout of CBlockVersion.

Weaken auxpow chain ID checks for the testnet.

Allow Params() to overrule when to check the auxpow chain ID and for legacy blocks.  Use this to disable the checks on testnet.

Introduce CPureBlockHeader.

Split the block header part that is used by auxpow and the "real" block header (that uses auxpow) to resolve the cyclic dependency between the two.

Differentiate between uint256 and arith_uint256.

This change was done upstream, modify the auxpow code.

Add missing lock in auxpow_tests.

Fix REST header check for auxpow headers.

Those can be longer, thus take that into account.  Also perform the check actually on an auxpow header.

Correctly set the coinbase for getauxblock results.

Call IncrementExtraNonce in getauxblock so that the coinbase is actually initialised with the stuff it should be.  (BIP30 block height and COINBASE_FLAGS.)

Implement getauxblock plus regression test.

Turn auxpow test into FIXTURE test.

This allows using of the Params() calls.

Move CMerkleTx code to auxpow.cpp.

Otherwise we get linker errors when building without wallet.

Fix rebase with BIP66.

Update the code to handle BIP66's nVersion=3.

Enforce that auxpow parent blocks have no auxpow block version.

This is for compatibility with namecoind.  See also https://github.com/namecoin/namecoin/pull/199.

Move auxpow-related parameters to Consensus::Params.
2019-07-13 22:25:22 +00:00
..
__init__.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
address.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
authproxy.py Remove assigned but never used local variables 2018-03-29 17:47:12 +02:00
auxpow.py Merge AuxPoW support from Namecore 2019-07-13 22:25:22 +00:00
auxpow_testing.py Merge AuxPoW support from Namecore 2019-07-13 22:25:22 +00:00
bignum.py Remove unused variables and/or function calls 2017-08-28 15:18:14 +02:00
blocktools.py qa: blocktools enforce named args for amount 2018-08-09 13:25:36 -04:00
coverage.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
key.py tests: Remove compatibility code not needed now when we're on Python 3 2018-04-16 09:54:27 +02:00
messages.py Merge #13915: [qa] Add test for max number of entries in locator 2018-08-11 06:59:14 -04:00
mininode.py qa: Use named args in some tests 2018-10-24 22:02:08 -04:00
netutil.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
script.py tests: Use explicit imports 2018-08-13 14:13:39 +02:00
segwit_addr.py Use BIP173 addresses in segwit.py test 2017-09-28 17:29:01 -07:00
siphash.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
socks5.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
test_framework.py qa: Run all tests even if wallet is not compiled 2018-10-24 22:02:36 -04:00
test_node.py qa: Premine to deterministic address with -disablewallet 2018-10-24 22:02:28 -04:00
util.py [Tests] Rename create_tx and move to blocktools.py 2018-08-09 12:58:35 +02:00