aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests
Commit message (Collapse)AuthorAgeFilesLines
* s/DOGE/DIS/gTomo Ueda2021-09-0212-24/+24
|
* really s/Doge/Dis/g this timeTomo Ueda2021-09-0210-12/+12
|
* s/doge/dis/gTomo Ueda2021-09-028-20/+20
|
* Merge pull request #2458 from patricklodder/1.14.4-disconnect-bad-node-testRoss Nicoll2021-08-182-2/+100
|\ | | | | Test that peers building on invalid blocks get disconnected
| * fixup p2p-acceptblock and mininode to test disconnectsPatrick Lodder2021-08-172-18/+31
| | | | | | | | | | | | | | | | | | | | | | without partially backporting a new testframework. - Adds a condition to NodeConn that when asyncore calls handle_read without any data, this must be a disconnect and closes the socket - Adds a little loop in the p2p-acceptblock client that waits for the socket to be in a closed state - Makes expected disconnects non-optional in p2p-acceptblock - Syncs the test descriptions and outputs with reality
| * p2p-acceptblock: add steps 8, 9 to confirm node disconnectsDakoda Greaves2021-08-171-1/+86
| |
* | Create feelimit.py testEd2021-08-171-0/+77
| | | | | | | | Create feelimit.py test to verify the updated fee values now rounding has been eliminated.
* | Remove relay-only roundingRoss Nicoll2021-08-171-1/+1
|/ | | | | Remove rounding of transaction sizes when calculating fee minimums for relaying, to simplify fee logic.
* qa: fix bumpfee now that paytxfee worksPatrick Lodder2021-08-161-3/+4
|
* qa: add -paytxfee and -mintxfee interaction testPatrick Lodder2021-08-161-0/+82
| | | | | | | Test that the interaction between the wallet parameters -paytxfee and -mintxfee function as intended. This has to be done using rpc tests rather than unit tests because it tests the actual parameters passed to the executables.
* Merge pull request #2450 from xanimo/1.14.4-txn_doublespendPatrick Lodder2021-08-141-25/+25
|\ | | | | qa: txn_dblspend - fix arithmetic
| * fix arithmetic; adds to standard testingDakoda Greaves2021-08-131-25/+25
| |
* | qa: fix p2p-acceptblockPatrick Lodder2021-08-132-6/+6
|/ | | | | | | | | | | | This test failed because the sheer number of blocks required to trigger the max length of a fork we'd keep, exceed the v4 fork height on regtest. - Adapted the blocktools.py miner to mine 0x00620004 blocks as done elsewhere too (be it suboptimal, but at least consistent) - Adapted the test to work with 1440 blocks (Dogecoin limit) instead of 288 (Bitcoin limit) - Made p2p-acceptblock a standard test instead of an extended test
* fees: Reduce minimum relay fee to 0.001 DOGE, final change from tx to 0.01Michi Lumin2021-08-115-6/+9
|
* [fees] introduce configurable hard dust limitPatrick Lodder2021-08-051-0/+82
| | | | Co-authored-by: Ross Nicoll <[email protected]>
* p2p: Reduce BIP125 replace by fee increment valueMichi Lumin2021-08-041-38/+41
|
* tests: mempool_packages.py (#2433)xanimo2021-08-011-1/+1
| | | * Bump fee to 1.0000 from 0.0001 to fix insufficient priority error
* Initial back end framework to separate wallet and relay fees + dust.Michi Lumin2021-07-302-2/+2
|
* tests: Fix replace-by-fee values for DogecoinRoss Nicoll2021-07-251-46/+47
|
* qa: Fix typosrht2021-05-184-5/+5
|
* [backport] [rpc] getblockchaininfo: add size_on_disk, prune_target_size, ↵Daniel Edgecumbe2020-07-241-1/+52
| | | | | | | | | | automatic_pruning Fix pruneheight help text. Move fPruneMode block to match output ordering with help text. Add functional tests for new fields in getblockchaininfo. Rebase-from: bitcoin#b7dfc6c4
* rpc-tests: don't use binary.hex() or binary.fromhex()Patrick Lodder2020-07-222-8/+10
| | | | To retain compatibility with multiple python3 versions
* rpc-tests: fix fundrawtransaction coin amounts to not spend dustPatrick Lodder2020-07-221-40/+40
|
* rpc-tests: write credentials to dogecoin.conf, not bitcoin.confPatrick Lodder2020-07-221-2/+2
|
* rpc-tests: fix listtransactions to not spend dustPatrick Lodder2020-07-221-3/+2
|
* rpc-tests: fix mempool_limit testPatrick Lodder2020-07-221-2/+2
| | | | | do more rounds of large tx creation to be sure to evict the targeted tx
* rpc-tests: fix importprunedfunds for use with dogecoinPatrick Lodder2020-07-221-13/+14
| | | | | | - use non-dust outputs - reverse the order of transactions to lowest-first, to not re-spend expected outputs for later tests.
* rpc-tests: fix auxpow calls to use .target instead of ._targetPatrick Lodder2020-07-221-1/+1
| | | | Tests weren't adapted to reflect RPC output
* rpc-tests: revert from litecoin_scrypt to ltc_scryptPatrick Lodder2020-07-222-6/+6
| | | | | This reflects the dependency installed in the dep script at qa/pull-tester/install-deps.sh
* Merge branch 'rnicoll-rnicoll/1.14-litecoin-scrypt' into 1.14-maintlangerhans2019-07-141-3/+3
|\
| * Update to litecoin_scryptRoss Nicoll2019-07-121-3/+3
| | | | | | | | | | | | The old ltc_scrypt module works on systems it is installed on, but does not install on new systems it appears. Our README says to use litecoin_scrypt, so updating the code to match.
* | Revert behaviour change in getauxblockRoss Nicoll2019-07-131-1/+1
|/ | | | Change getauxblock to respond with a "target" field instead of "_target".
* Rename binaries to match DogecoinRoss Nicoll2019-03-254-16/+16
|
* Update tx output in p2p-fullblocktest.py (#1474)Ross Nicoll2018-09-191-2/+5
| | | | * Update tx output in `p2p-fullblocktest.py` to match Dogecoin coin reward. * Disable the re-org test as it disconnects the mini-node before the re-org completes.
* Clean up RPC tests (#1465)Ross Nicoll2018-09-194-22/+28
| | | | | | | | | | * 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
* Update RPC tests for Dogecoin (#1431)Ross Nicoll2018-09-1933-272/+476
| | | | | | | | | * Make most of the RPC tests pass * Add AUXPoW rpc tests - Tests the auxpow rpc interface `getauxblock` - Tests consensus constraints for auxpow: - Minimum block height - Valid scrypt proof of work - Foreign chain ID
* Merge AuxPoW support from NamecoreRoss Nicoll2018-09-193-8/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge #10234, #10143 (fixes only), and #9853 via branch ↵Luke Dashjr2017-06-051-47/+53
|\ | | | | | | 'disconnect_ban_fixes-0.14' into 0.14.2_fixes
| * [tests] update disconnect_ban.py test case to work with listbannedJohn Newbery2017-06-051-3/+3
| | | | | | | | | | Github-Pull: #10234 Rebased-From: d6732d832aa901e733e63799260d409821a2c37a
| * [tests] disconnect_ban: remove dependency on urllibJohn Newbery2017-06-051-11/+4
| | | | | | | | | | Github-Pull: #10143 Rebased-From: 5cc3ee24d29397737f2746d78b19a2509c0dedbb
| * [tests] disconnect_ban: use wait_until instead of sleepJohn Newbery2017-06-051-6/+5
| | | | | | | | | | Github-Pull: #10143 Rebased-From: 12de2f252c8f48e05c579cb679866a68af8c660e
| * [tests] disconnectban test - only use two nodesJohn Newbery2017-06-051-26/+34
| | | | | | | | | | Github-Pull: #10143 Rebased-From: 395561becfa612fedec74fd841cb4f28afdc23d7
| * [tests] fix nodehandling.py flake8 warningsJohn Newbery2017-06-051-20/+26
| | | | | | | | | | Github-Pull: #10143 Rebased-From: d6564a26f4afc28d7d1a24b94946916387c9bf24
* | Merge #9853 via branch 'fixerrorcodes-0.14' into 0.14.2_fixesLuke Dashjr2017-06-057-117/+51
|\|
| * Return correct error codes in fundrawtransaction().John Newbery2017-06-052-46/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fundrawtransaction() RPC was returning misleading or incorrect error codes (for example RPC_INTERNAL_ERROR when funding the transaction failed). This commit fixes those error codes: - RPC_INTERNAL_ERROR should not be returned for application-level errors, only for genuine internal errors such as corrupted data. That error code has been replaced with RPC_WALLET_ERROR. This commit also updates the test cases to explicitly test the error code. Github-Pull: #9853 Rebased-From: dab804c18a427901684ebe936b2069a97e04a268
| * Return correct error codes in setban().John Newbery2017-06-051-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The setban() RPC was returning misleading or incorrect error codes (for example RPC_CLIENT_NODE_ALREADY_ADDED when an invalid IP address was entered). This commit fixes those error codes: - RPC_CLIENT_INVALID_IP_OR_SUBNET should be returned if the client enters an invalid IP address or subnet. This commit also updates the test cases to explicitly test the error code. This commit also adds a testcase for trying to setban on an invalid subnet. Github-Pull: #9853 Rebased-From: a012087667edb35a36f25ae06b42b1644d80e649
| * Return correct error codes in removeprunedfunds().John Newbery2017-06-051-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The removeprunedfunds() RPC was returning misleading or incorrect error codes (for example RPC_INTERNAL_ERROR when the transaction was not found in the wallet). This commit fixes those error codes: - RPC_INTERNAL_ERROR should not be returned for application-level errors, only for genuine internal errors such as corrupted data. This error code has been replaced with RPC_WALLET_ERROR. This commit also updates the test cases to explicitly test the error code. Github-Pull: #9853 Rebased-From: 960bc7f778d8dd618e65f1e37ec734e2d4734051
| * Return correct error codes in blockchain.cpp.John Newbery2017-06-052-41/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPCs in blockchain.cpp were returning misleading or incorrect error codes (for example getblock() returning RPC_INTERNAL_ERROR when the block had been pruned). This commit fixes those error codes: - RPC_INTERNAL_ERROR should not be returned for application-level errors, only for genuine internal errors such as corrupted data. - RPC_METHOD_NOT_FOUND should not be returned in response to a JSON request for an existing method. Those error codes have been replaced with RPC_MISC_ERROR or RPC_INVALID_PARAMETER as appropriate. Github-Pull: #9853 Rebased-From: c1190963b388590dc0a346bf625c7e84f69cee8d
| * Return correct error codes in bumpfee().John Newbery2017-06-051-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bumpfee() RPC was returning misleading or incorrect error codes (for example RPC_INVALID_ADDRESS_OR_KEY when the transaction was not BIP125 replacable). This commit fixes those error codes: - RPC_INVALID_ADDRESS_OR_KEY if an invalid address was provided: - Invalid change address given - RPC_INVALID_PARAMETER if a single (non-address/key) parameter is incorrect - confTarget and totalFee options should not both be set. - Invalid confTarget - Insufficient totalFee (cannot be less than required fee) - RPC_WALLET_ERROR for any other error - Transaction has descendants in the wallet - Transaction has descendants in the mempool - Transaction has been mined, or is conflicted with a mined transaction - Transaction is not BIP 125 replaceable - Transaction has already been bumped - Transaction contains inputs that don't belong to the wallet - Transaction has multiple change outputs - Transaction does not have a change output - Fee is higher than maxTxFee - New fee rate is less than the minimum fee rate - Change output is too small. This commit also updates the test cases to explicitly test the error code. Github-Pull: #9853 Rebased-From: 6d07c62322f60eb2702c6654e994fc353bcfcf8c
* | Merge #10196 via branch 'prioritisetx_gbtcache-0.14' into 0.14.2_fixesLuke Dashjr2017-06-051-1/+15
|\ \ | |/ |/|