44 Commits
Author SHA1 Message Date
tdb3 c6eca6f396 doc: add guidance for RPC to developer notes
Adds deprecatedrpc guidance statement to the
RPC interface guidelines section.
2025-03-19 18:56:17 -04:00
tdb3 c75872ffdd test: use DIFF_1_N_BITS in tool_signet_miner 2025-01-22 12:31:46 +01:00
tdb3 d20d96fa41 test: use REGTEST_N_BITS in feature_block 2025-01-22 11:29:06 +01:00
tdb3 62f6d9e1a4 test: simple ordering optimization to reduce runtime 2024-11-30 12:31:16 -05:00
tdb3 9de9c858d5 test: enhance p2p_orphan_handling
Increases test robustness by adding
checks for orphanage size and presence
of orphans in the orphanage
2024-10-25 20:46:00 -04:00
tdb3 33af14b62e test: reduce assert_debug_log reliance
p2p_orphan_handling now uses tx_in_orphanage
to more directly check for inclusion/exclusion
in the orphanage.
2024-10-25 18:52:39 -04:00
tdb3 0ea84bc362 test: explicitly check boolean verbosity is disallowed 2024-10-25 17:54:05 -04:00
tdb3 7a2e6b68cd doc: add rpc guidance for boolean verbosity avoidance 2024-10-25 17:54:04 -04:00
tdb3 698f302df8 rpc: disallow boolean verbosity in getorphantxs
Updates ParseVerbosity() to support disallowing
boolean verbosity.  Removes boolean verbosity
for getorphantxs to encourage integer verbosity
usage
2024-10-25 17:53:48 -04:00
tdb3 63f5e6ec79 test: add entry and expiration time checks 2024-10-25 17:11:27 -04:00
tdb3 808a708107 rpc: add entry time to getorphantxs 2024-10-25 17:11:26 -04:00
tdb3 56bf302714 refactor: rename rpc_getorphantxs to rpc_orphans
Generalizes the test to accommodate additional
orphan-related RPCs
2024-10-25 17:11:20 -04:00
tdb3 7824f6b077 test: check that getorphantxs is hidden 2024-10-25 17:11:12 -04:00
tdb3 ac68fcca70 rpc: disallow undefined verbosity in getorphantxs 2024-10-25 17:06:12 -04:00
tdb3 98c1536852 test: add getorphantxs tests
Adds functional tests for getorphantxs
2024-10-02 18:28:54 -04:00
tdb3 93f48fceb7 test: add tx_in_orphanage()
Allows tests to check if a transaction
is contained within the orphanage
2024-10-02 18:23:27 -04:00
tdb3 34a9c10e8c rpc: add getorphantxs
Adds an rpc to obtain data about the
transactions currently in the orphanage.
Hidden and marked as experimental
2024-10-02 18:23:18 -04:00
tdb3 f511ff3654 refactor: move verbosity parsing to rpc/util
Provides a common way for rpcs to obtain
verbosity from an rpc parameter
2024-10-02 18:16:06 -04:00
tdb3 532491faf1 net: add GetOrphanTransactions() to PeerManager
Updates PeerManager (and Impl) to provide
orphans with metadata
2024-10-01 21:55:18 -04:00
tdb3 91b65adff2 refactor: add OrphanTxBase for external use
Enables external entities to obtain orphan
information
2024-10-01 21:55:12 -04:00
tdb3 06e7e83632 doc: correct the zmq automatic build info 2024-09-25 07:07:04 -04:00
tdb3 b832ffe044 refactor: introduce default pid file name constant in tests 2024-09-23 12:41:10 +02:00
tdb3 e6994efe08 fix: increase rpcbind check robustness
Adds invalid rpcbind port checking to
`HTTPBindAddresses()`. While movement of
`CheckHostPortOptions()` in the previous
commit handles rcpbind port errors, updating
`HTTPBindAddresses()` port checking adds
a defensive measure for potential future
changes.
2024-09-17 21:47:33 -04:00
tdb3 d38e3aed89 fix: handle invalid rpcbind port earlier
Previously, when an invalid port was specified
in `-rpcbind`, the `SplitHostPort()` return value
in `HTTPBindAddresses()` was ignored and attempt
would be made to bind to the default rpcbind port
(with the host/port treated as a host).

This rearranges port checking code in
`AppInitMain()` to handle the invalid
port before reaching `HTTPBindAddresses()`.

Also adjusts associated functional tests.
2024-09-17 21:47:29 -04:00
tdb3andRyan Ofsky 83b67f2e6d refactor: move host/port checking
Reduces the size of AppInitMain() by moving
checks to CheckHostPortOptions()

Co-Authored-By: Ryan Ofsky <ryan@ofsky.org>
2024-09-17 21:47:20 -04:00
tdb3 73c243965a test: add tests for invalid rpcbind ports 2024-09-17 20:03:00 -04:00
tdb3 ddef914bbb doc: remove extraneous install statement 2024-08-31 17:54:39 -04:00
tdb3 bc532c915e doc: add with_bdb to unix build docs 2024-08-31 16:53:59 -04:00
tdb3 e1d5dd732d test: check xor.dat recreated when missing 2024-08-25 08:43:45 -04:00
tdb3 d1610962bf test: add null block xor key 2024-08-25 08:43:37 -04:00
tdb3 1ad999b9da refactor: lift NUM_XOR_BYTES 2024-08-25 08:43:33 -04:00
tdb3 d8399584dd refactor: move read_xor_key() to TestNode 2024-08-25 08:42:38 -04:00
tdb3 d43948c3ef refactor: use unlink rather than os.remove 2024-08-25 08:41:21 -04:00
tdb3 c8176f758b test: add blocks_key_path
Adds a convenience function to TestNode
to provide the path to the blocks xor key.
Updates util and feature_blocksxor to use it.
2024-08-23 12:49:56 -04:00
27c976d11a fix: increase consistency of rpcauth parsing
Previous rpcauth behavior was to sometimes
ignore empty -rpcauth= settings, and other times
treat them as errors.
Empty rpcauth is now consistently treated
as an error and prevents bitcoind from starting.
Updates associated test cases.
Also updates to non-deprecated logging macro.

Co-Authored-By: Luke Dashjr <luke-jr+git@utopios.org>
Co-Authored-By: Ryan Ofsky <ryan@ofsky.org>
2024-08-12 20:28:11 -04:00
tdb3andLuke Dashjr 2ad3689512 test: add norpcauth test
Adds test for disabling rpcauth args.

Co-Authored-By: Luke Dashjr <luke-jr+git@utopios.org>
2024-08-09 17:56:57 -04:00
tdb3 67df0dec1a test: blank rpcauth CLI interaction
Tests interactions between blank and
non-blank rpcauth args.
2024-08-09 17:18:23 -04:00
tdb3 ecc98ccff2 test: add cases for blank rpcauth 2024-08-06 13:52:12 -04:00
tdb3 ad06e68399 test: write functional test results to csv
Adds argument --resultsfile to test_runner.py.
Writes comma-separated functional test name, status,
and duration to the file provided with the argument.
Also fixes minor typo in test_runner.py
2024-06-16 22:51:12 -04:00
tdb3 24bc46c83b cli: Add warning for duplicate port definition
Adds a warning when both -rpcconnect and -rpcport define
a port to be used.
2024-05-13 12:19:37 -04:00
tdb3 e208fb5d3b cli: Sanitize ports in rpcconnect and rpcport
Adds error handling of invalid ports to rpcconnect and rpcport,
with associated functional tests.
2024-05-13 12:14:04 -04:00
tdb3 f19f0a2e5a test: Run framework unit tests in parallel
Reorganize functional test framework unit tests to run in parallel
with other functional tests.

The option `skipunit` is removed, since unit tests no longer delay
functional test execution.

Unit tests are run by default when running all tests, and can be
run explicitly with `feature_framework_unit_tests.py` when running
a subset of tests.
2024-04-23 20:26:42 -04:00
tdb3 82f41d76f1 Added seednode prioritization message to help output 2024-04-22 14:07:14 -04:00
tdb3andPieter Wuille 0831b54dfc test: simplify test_runner.py
Remove the num_running variable as it can be implied by the
length of the jobs list.

Remove the i variable as it can be implied by the length of the
test_results list.

Instead of counting results to determine if finished, make the
queue object itself responsible (by looking at running jobs and
jobs left).

Originally proposed by @sipa in PR #23995.

Co-authored-by: Pieter Wuille <pieter@wuille.net>
2024-03-12 18:00:04 -04:00