aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* really s/Doge/Dis/g this timeTomo Ueda2021-09-025-16/+16
|
* really s/doge/dis/g this timeTomo Ueda2021-09-025-68/+68
|
* Remove relay-only roundingRoss Nicoll2021-08-172-3/+11
| | | | | Remove rounding of transaction sizes when calculating fee minimums for relaying, to simplify fee logic.
* Rewrite subsidy limit testsRoss Nicoll2021-07-111-22/+37
|
* Add functionality to generate auxpow blocks in regtestMD Islam2021-05-251-0/+6
| | | | | | | | | This roughly reverts the work done here that disabled auxpow generation in regtest: https://github.com/dogecoin/dogecoin/pull/1431/files\#diff-ccc24453c13307f815879738d3bf00eec351417537fbf10dde1468180cacd2f1R127-R137 This is a pretty severe functionality change since auxpow is critical to Dogecoin and wallet integrators need to be able to parse the extra data in auxpow blocks. For future wallet integrators: Dogecoin follows similar schemes as Namecoin for the merged mining support and the spec is here: https://en.bitcoin.it/wiki/Merged_mining_specification pr review: GetHash -> GetPoWHash
* Fix for Boost 1.74John-Gee2021-02-021-1/+1
|
* [tests] fix rpc ban test: set test time far into the futurePatrick Lodder2021-01-151-2/+2
|
* dogecoin-tx: fix testsPatrick Lodder2020-07-221-20/+22
| | | | | - explicitly specify v1 and v2 transactions due to 140cc1db - fix "exec: bitcoin-tx" misses
* tests: fix non-qt tests that spend dustPatrick Lodder2020-07-222-2/+2
| | | | | | | | - transaction_tests/IsStandard was spending 0.9 DOGE - tx_validationcache_tests/mempool_dblspend was spending 0.11 DOGE - wallet_tests/coin_selection was completely built around spending cents. This test has been completely reworked and redocumented to make sense for Dogecoin
* rebrand dogecoin-tx test (#1450)Ross Nicoll2019-03-251-56/+56
|
* Update miner confirmation windowRoss Nicoll2018-09-232-32/+29
| | | | | | * Update miner confirmation window to 240 for Dogecoin main net, and update related values. * Re-enable PoW tests with Dogecoin values. * Update version bit tests based on Dogecoin mining values.
* Re-introduce alert functionality (#1470)Ross Nicoll2018-09-192-0/+198
| | | Re-introduce alert functionality removed from Bitcoin upstream
* Update or eliminate remaining tests (#1483)Ross Nicoll2018-09-193-20/+23
| | | | | * Change amount tests to use rounded values * Disable legacy tests
* Clean up RPC tests (#1465)Ross Nicoll2018-09-191-0/+3
| | | | | | | | | | * Enable full block tests * Fix invalidblocktest * Move watch only address funding to immediately before it's used, so node 0 doesn't spend the output before it checks it later. * Fix `fundrawtransaction` tests and sanitize fee calculation at the same time * Correct resolution of chain parameters when validating tx inputs, especially from previous coinbase transactions * Set block versions on full block tests so that the generated blocks are AuxPoW compatible
* Add Dogecoin current fee calculation logic (#1413)Ross Nicoll2018-09-191-2/+2
| | | Introduces 1 COIN/kb fees, rounded up to the next 1 COIN.
* Update dogecoin-tx tests (#1409)Ross Nicoll2018-09-1917-37/+37
| | | Update Python test address and key values to match Dogecoin format
* Fix 1.14 unit tests (#1408)Max K2018-09-192-6/+3
| | | | | | | | * Fix BlockEncodings test by setting a legacy block version * Fix RPC test by adding missing RPC call * Add missing regtest genesis hashes
* Modify chain consensus parameters to be height aware (#1396)Ross Nicoll2018-09-196-23/+67
| | | | | | | | | * Modify chain consensus parameters to be height aware * Correct implementation of simplified rewards in parameters * Correct max money * Use base block version in IsSuperMajority() instead of full version * Correct mining of blocks in AuxPoW tests * Add in missing pre-AuxPoW consensus checks
* Sync changes from Dogecoin 1.10Ross Nicoll2018-09-191-1/+3
|
* Sync mining code from Namecore to resolve unit test failures (#1385)Ross Nicoll2018-09-192-20/+20
|
* Merge AuxPoW support from NamecoreRoss Nicoll2018-09-192-3/+444
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add Dogecoin difficulty calculationsRoss Nicoll2018-09-191-3/+92
|
* Litecoin: Scrypt n=1024 Pow hash based upon Colin Percival's Tarnsnap (2009) ↵Warren Togami2018-09-191-0/+35
| | | | Modified by Artforz, coblee, pooler, wtogami, Nikolay Belikov, Adrian Gallagher
* Replace test data with Dogecoin valuesRoss Nicoll2018-09-1913-731/+741
| | | | | | | | | | | | | | | | | | | Replace test data with Dogecoin equivalents in the folowing tests: * base58 * bip32 * keys * miner * pow Replace RPC and deterministic signatures in unit tests with Dogecoin values. While conventionally I'd use an alternative implementation for these, as RFC 6979 compliant signature generation isn't terribly common, and there's no reason to suspect we've modified this code, I'm going to assert that it's good enough to test that the code doesn't provide different values. Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are replaced by the Dogecoin PoW tests.
* Add Dogecoin block subsidy calculations.Ross Nicoll2018-09-191-0/+104
|
* Merge #9497 via remote-tracking branch 'origin-pull/9497/head' into 0.14.2_fixesLuke Dashjr2017-06-051-0/+442
|\
| * Add CheckQueue TestsJeremy Rubin2017-02-161-0/+442
| |
* | Add tests for bitcoin-tx input checkingJohn Newbery2017-03-311-0/+32
| | | | | | | | | | Github-Pull: #10130 Rebased-From: 19ecd1e2e13514c8a92a2a4337c2568c3d5d13e5
* | Check stderr when testing bitcoin-txJohn Newbery2017-03-312-0/+16
| | | | | | | | | | Github-Pull: #10130 Rebased-From: 21704f6334d2a4bd140c6e3260c4bfa3f3157bad
* | [Trivial] Update comments referencing main.cppCryptAxe2017-02-161-1/+1
| |
* | Init ECC context for test_bitcoin_fuzzy.Gregory Maxwell2017-02-051-0/+2
| | | | | | | | This avoids calling things like pubkey_parse with a null context argument.
* | net: Disallow sending messages until the version handshake is completeCory Fields2017-02-021-0/+4
| | | | | | | | This is a change in behavior, though it's much more sane now than before.
* | Merge #9556: Remove redundant semicolonsWladimir J. van der Laan2017-02-021-1/+1
|\ \ | | | | | | | | | 8fc6989 Remove redundant semicolons (practicalswift)
| * | Remove redundant semicolonspracticalswift2017-01-141-1/+1
| | |
* | | Merge #9647: Skip RAII event tests if libevent is built without ↵Wladimir J. van der Laan2017-01-301-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | event_set_mem_functions 95f97f4 Skip RAII event tests if libevent is built without event_set_mem_functions (Luke Dashjr)
| * | | Skip RAII event tests if libevent is built without event_set_mem_functionsLuke Dashjr2017-01-281-0/+6
| | | |
* | | | Merge #9615: Wallet incremental feeWladimir J. van der Laan2017-01-301-4/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4b189c1 Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos) 0c0c63f Introduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos) e8021ec Use CWallet::GetMinimumFee in bumpfee (Alex Morcos) ae9719a Refactor GetMinimumFee to give option of providing targetFee (Alex Morcos) fe8e8ef [rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos) 6b331e6 Fix to have miner test aware of new separate block min tx fee (Alex Morcos) de6400d Fix missing use of dustRelayFee (Alex Morcos) 5b15870 Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
| * | | | Fix to have miner test aware of new separate block min tx feeAlex Morcos2017-01-191-4/+7
| | | | |
* | | | | [trivial] Fix typos in commentspracticalswift2017-01-271-2/+2
| | | | |
* | | | | Merge #9610: [Trivial] Grammar and typo correction (laudaa)MarcoFalke2017-01-226-7/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 5c66d41 [Trivial] Grammar and typo correction (Lauda)
| * | | | | [Trivial] Grammar and typo correctionLauda2017-01-226-7/+7
| | |_|/ / | |/| | | | | | | | | | | | | Minor corrections in src\test\* .
* | | | | Merge #9554: [test] Avoid potential NULL pointer dereference in ↵MarcoFalke2017-01-221-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | addrman_tests.cpp afab9f4 [test] Avoid potential NULL pointer dereference in addrman_tests.cpp (practicalswift)
| * | | | [test] Avoid potential NULL pointer dereference in addrman_tests.cpppracticalswift2017-01-141-1/+1
| |/ / /
* | | | Merge #9499: Use recent-rejects, orphans, and recently-replaced txn for ↵Wladimir J. van der Laan2017-01-192-5/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compact-block-reconstruction c594580 Add braces around AddToCompactExtraTransactions (Matt Corallo) 1ccfe9b Clarify comment about mempool/extra conflicts (Matt Corallo) fac4c78 Make PartiallyDownloadedBlock::InitData's second param const (Matt Corallo) b55b416 Add extra_count lower bound to compact reconstruction debug print (Matt Corallo) 863edb4 Consider all (<100k memusage) txn for compact-block-extra-txn cache (Matt Corallo) 7f8c8ca Consider all orphan txn for compact-block-extra-txn cache (Matt Corallo) 93380c5 Use replaced transactions in compact block reconstruction (Matt Corallo) 1531652 Keep shared_ptrs to recently-replaced txn for compact blocks (Matt Corallo) edded80 Make ATMP optionally return the CTransactionRefs it replaced (Matt Corallo) c735540 Move ORPHAN constants from validation.h to net_processing.h (Matt Corallo)
| * | | | Use replaced transactions in compact block reconstructionMatt Corallo2017-01-101-4/+6
| | | | |
| * | | | Make ATMP optionally return the CTransactionRefs it replacedMatt Corallo2017-01-091-1/+1
| | | | |
* | | | | Merge #9512: Fix various things -fsanitize complains aboutWladimir J. van der Laan2017-01-182-4/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82e8baa Avoid boost dynamic_bitset in rest_getutxos (Pieter Wuille) 99f001e Fix memory leak in multiUserAuthorized (Pieter Wuille) 5a0b7e4 Fix memory leak in net_tests (Pieter Wuille) 6b03bfb Fix memory leak in wallet tests (Pieter Wuille) f94f3e0 Avoid integer overflows in scriptnum tests (Pieter Wuille) 843c560 Avoid unaligned access in crypto i/o (Pieter Wuille)
| * | | | | Fix memory leak in net_testsPieter Wuille2017-01-121-2/+2
| | | | | |
| * | | | | Avoid integer overflows in scriptnum testsPieter Wuille2017-01-121-2/+4
| | |/ / / | |/| | |
* | | | | Merge #9508: Remove unused Python importsMarcoFalke2017-01-181-1/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 95bab82 Remove unused Python imports (practicalswift)