aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_bitcoin_cli.py
Commit message (Collapse)AuthorAgeFilesLines
* Generate legacy addresses by defaultRoss Nicoll2021-06-121-1/+1
| | | | Generate legacy addresses instead of SegWit by default.
* Add Dogecoin block subsidiesRoss Nicoll2021-05-301-4/+4
|
* Dogecoin: Update coinbase maturityRoss Nicoll2021-05-201-5/+5
| | | | | | | * Change coinbase maturity to 240 blocks in most cases, with main/test early chains allowing 30 blocks. I've kept the 240 consistent in regtest to avoid having to redesign a lot of the test cases. * Disabled mining unit test which require COINBASE_MATURITY worth of pre-calculated blocks, as we'd otherwise be constantly refactoring them. * Moved functional test which uses the Bitcoin testnet block data as its reference, as it completely breaks as we introduce Dogecoin data. * Updated standard blockchains for tests from 100/200 to 240/480 as appropriate.
* test, refactor: add default_wallet_name and wallet_data_filename variablesRussell Yanofsky2020-09-291-1/+1
| | | | No changes in behavior
* Add in/out connections to cli -getinfoJon Atack2020-08-241-1/+8
|
* rpc: add missing space in JSON parsing error message, update testJon Atack2020-06-021-1/+1
|
* test: add multiwallet tests for bitcoin-cli -generateJon Atack2020-06-021-6/+62
|
* test: add tests for bitcoin-cli -generateJon Atack2020-06-021-3/+37
|
* test: add -getinfo multiwallet functional testsJon Atack2020-05-211-16/+35
| | | | and improve the existing -getinfo -rpcwallet tests.
* Merge #18724: test: add coverage for -rpcwallet cli optionMarcoFalke2020-04-241-1/+42
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2495110012fc0cb7142a4536791dd79da5cc3e44 test: add coverage for -rpcwallet cli option (Jon Atack) Pull request description: The bitcoin-cli `-rpcwallet=` option is an essential RPC/CLI option when more than one wallet is loaded (see `bitcoin-cli -help | grep -A5 rpcwallet` or `src/bitcoin-cli.cpp::L61`) and it currently has no test coverage. It is not only used by users, but also by the test framework and ~10 test files via `get_wallet_rpc()`. This PR adds coverage, while simultaneously improving the `-getinfo` coverage when multiple wallets are loaded. This is similar to the test coverage that would be added in #18594. ACKs for top commit: robot-visions: ACK 2495110012fc0cb7142a4536791dd79da5cc3e44 Tree-SHA512: caaa8b99fb8fa481ab2c6b2a287ed29720bb4553c3f66657462c44fa2990acaaf36cabeaaf81408678e5fdce4e105d729dd94b5ed8588dd1a6f2cb03fc25acf3
| * test: add coverage for -rpcwallet cli optionJon Atack2020-04-241-1/+42
| | | | | | | | and add -getinfo coverage with multiple wallets loaded.
* | test: display command line options passed to send_cli() in debug logJon Atack2020-04-211-2/+2
|/ | | | | | and fixup two cli calls from rpc commands to command line options. Co-authored-by: MarcoFalke <[email protected]>
* test: fix intermittent race condition in interface_bitcoin_cli.pyJon Atack2020-04-191-16/+12
| | | | | | by calling wait_for_cookie_credentials() to ensure the cookie file is written and auth credentials available for testing the CLI -rpcwait option before the RPC connection is up.
* scripted-diff: Bump copyright headersMarcoFalke2020-04-161-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* test: add -getinfo "unlocked_until" and "headers" coverageJon Atack2020-04-151-1/+4
|
* test: verify cli.getwalletinfo in wallet sectionJon Atack2020-04-151-9/+3
|
* test: verify bitcoin-cli -version with node stoppedJon Atack2020-04-151-7/+8
| | | | in interface_bitcoin_cli.py and improve/harmonize the test logging.
* test: add coverage for bitcoin-cli -rpcwaitJon Atack2020-04-151-0/+12
| | | | in interface_bitcoin_cli.py
* test: update and harden interface_bitcoin_cli testsJon Atack2020-04-091-5/+14
| | | | | | - no longer depend on the deprecated balance field of getwalletinfo - test blockcount and balance against non-default, non-zero expected values
* Merge #17650: util: remove unwanted fields from bitcoin-cli -getinfofanquake2019-12-041-3/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01c87015597021bf1c0856f7f6be175bdde844b2 util: remove unwanted fields from bitcoin-cli -getinfo (malevolent) Pull request description: Removed the following fields from -getinfo: protocolversion, walletversion and keypoololdest. This change closes #17314 . ACKs for top commit: laanwj: ACK 01c87015597021bf1c0856f7f6be175bdde844b2 achow101: ACK 01c87015597021bf1c0856f7f6be175bdde844b2 practicalswift: ACK 01c87015597021bf1c0856f7f6be175bdde844b2 -- diff looks correct Tree-SHA512: c98f2e8a3fee04d46766f70cb88f4e49e892a4424eff8940a7d48e9e808597b702427225788f984f5c3641591fd8d86acee56774afde1d57a4259c31d971ea08
| * util: remove unwanted fields from bitcoin-cli -getinfomalevolent2019-12-041-3/+0
| | | | | | | | In accordance with #17314, Removing noisy fields from -getinfo. Fields removed: protocolversion, walletversion and keypoololdest. In addition to changing bitcoin-cli -getinfo, there is another change to test/functional/interface_bitcoin_cli.py. This change deletes tests that utilize removed -getinfo calls.
* | test: skip bitcoin_cli test when the cli isn't compiledfanquake2019-11-181-0/+3
|/
* test: Adapt test framework for chains other than "regtest"MarcoFalke2019-07-311-1/+1
| | | | Co-Authored-By: Jorge Timón <[email protected]>
* QA: feature_filelock, interface_bitcoin_cli: Use PACKAGE_NAME in messages ↵Luke Dashjr2019-04-251-1/+1
| | | | rather than hardcoding Bitcoin Core
* Merge #15564: cli: remove duplicate wallet fields from -getinfoMarcoFalke2019-03-111-3/+1
|\ | | | | | | | | | | | | | | | | | | 3f6568d66b cli: remove duplicate wallet fields from -getinfo (fanquake) Pull request description: `walletversion` and `balance` are both included below. Tree-SHA512: cd9fe9739a2f492c8f7c0407b43a6fa95187f7e5318f05e080bac112f9f4333d2e9b84c505d098f8d66fa79439007d1c0b22e5a87d70bf5ea53ab647ee4c2046
| * cli: remove duplicate wallet fields from -getinfofanquake2019-03-091-3/+1
| |
* | cli: replace testnet with chain and return network name as per BIP70.fanquake2019-03-091-1/+1
|/
* scripted-diff: Update copyright in ./testMarcoFalke2019-03-021-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./test/ -END VERIFY SCRIPT-
* scripted-diff: test: Remove brackets after assertMarcoFalke2019-03-021-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/assert ?\((.+)\)(( )*)?(#.*)?$/assert \1\3\3\4/g' $(git grep -l --extended-regexp 'assert ?\(' test) -END VERIFY SCRIPT-
* Fix typoKristaps Kaupe2018-10-201-1/+1
|
* qa: Run more tests with wallet disabledMarcoFalke2018-09-251-15/+17
|
* qa: Run all tests even if wallet is not compiledMarcoFalke2018-09-101-0/+3
|
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Fix bitcoin-cli --versionBen Woosley2018-07-201-0/+3
| | | | | | By declaring the relevant option. Note contrib/devtools/gen-manpages.sh relies on this version information.
* tests: Test connecting with non-existing RPC cookie filepracticalswift2018-03-191-0/+3
|
* tests: Test connecting to a non-existing serverpracticalswift2018-03-191-0/+3
|
* bitcoin-cli: Provide a better error message when bitcoind is not runningpracticalswift2018-03-091-2/+2
| | | | | | | | | | | | | | | | | | Before this patch: ``` $ bitcoin-cli -testnet echo 'hello world' error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/root/.bitcoin/bitcoin.conf) ``` After this patch: ``` $ bitcoin-cli -testnet echo 'hello world' error: Could not connect to the server 127.0.0.1:18332 Make sure the bitcoind server is running and that you are connecting to the correct RPC port. ```
* [tests] Rename misc functional tests.Anthony Towns2018-01-251-0/+65