MarcoFalke
fa974f1f14
scripted-diff: Remove redundant sync_all and sync_blocks
...
The sync calls are redundant after a call to generate, because generate
already syncs itself.
-BEGIN VERIFY SCRIPT-
perl -0777 -pi -e 's/(generate[^\n]*\)[^\n]*)(\n|\s)+self.sync_(all|blocks)\([^\)]*\)\n/\1\n/g' $(git grep -l generate ./test)
-END VERIFY SCRIPT-
3 years ago
MarcoFalke
facc352648
test: Implicitly sync after generate*, unless opted out
3 years ago
MarcoFalke
fa0b916971
scripted-diff: Use generate* from TestFramework
...
-BEGIN VERIFY SCRIPT-
sed --regexp-extended -i \
's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \
$(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
-END VERIFY SCRIPT-
3 years ago
Kiminuo
bfa9309ad6
Use COINBASE_MATURITY constant in functional tests.
4 years ago
MarcoFalke
64156ad4d1
Merge #19893 : test: Remove or explain syncwithvalidationinterfacequeue
...
fa6af31227
test: Document why syncwithvalidationinterfacequeue is needed in tests (MarcoFalke)
fa135a13b8
Revert "test: Add missing sync_all to wallet_balance test" (MarcoFalke)
Pull request description:
syncwithvalidationinterfacequeue is a hidden test-only RPC, so it should not be used when it is not needed. Thus, either remove it or explain why it is needed.
ACKs for top commit:
fjahr:
Code review ACK fa6af31227
Tree-SHA512: de30db4ab521184091ee5beeab02989138cf7cf05088f766a2fb106151b239310b63d5380cb79e2a072f72c5ae9513aecae8eb9c1c7be713771585c3cb04d63a
4 years ago
Andrew Chow
a42652ec10
Move import and watchonly tests to be legacy wallet only in wallet_balance.py
...
Imports and watchonly behavior are legacy wallet only, so make them only
run when the test is in legacy wallet mode.
4 years ago
Prayank
4b16c61461
scripted-diff: test: Replace uses of (dis)?connect_nodes global
...
-BEGIN VERIFY SCRIPT-
# max-depth=0 excludes test/functional/test_framework/...
FILES=$(git grep -l --max-depth 0 "connect_nodes" test/functional)
# Replace (dis)?connect_nodes(self.nodes[a], b) with self.(dis)?connect_nodes(a, b)
sed -i 's/\b\(dis\)\?connect_nodes(self\.nodes\[\(.*\)\]/self.\1connect_nodes(\2/g' $FILES
# Remove imports in the middle of a line
sed -i 's/\(dis\)\?connect_nodes, //g' $FILES
sed -i 's/, \(dis\)\?connect_nodes//g' $FILES
# Remove imports on a line by themselves
sed -i '/^\s*\(dis\)\?connect_nodes,\?$/d' $FILES
sed -i '/^from test_framework\.util import connect_nodes$/d' $FILES
-END VERIFY SCRIPT-
Co-authored-by: Elliott Jin <elliott.jin@gmail.com>
4 years ago
MarcoFalke
fa135a13b8
Revert "test: Add missing sync_all to wallet_balance test"
...
This reverts commit fa815255c7
.
The underlying bug has been fixed in commit f77b1de16f
.
4 years ago
Russell Yanofsky
ed3acda33b
test, refactor: add default_wallet_name and wallet_data_filename variables
...
No changes in behavior
4 years ago
Roy Shao
cc84460c16
test: move sync_blocks and sync_mempool functions to test_framework.py
4 years ago
MarcoFalke
fa488f131f
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
5 years ago
Jon Atack
3e6f7377f6
Improve getbalances coverage in wallet_balance tests
...
and shift some getunconfirmedbalance calls to getbalances, as the former is
deprecated, while leaving essential coverage for it in test_balances().
5 years ago
fanquake
b6f9e3576a
test: re-enable CLI test support by using EncodeDecimal in json.dumps()
...
As mentioned in
https://github.com/bitcoin/bitcoin/pull/17675#issuecomment-563188648
5 years ago
practicalswift
993e38a4e2
tests: Mark functional tests not supporting bitcoin-cli (--usecli) as such
5 years ago
Jeremy Rubin
4671fc3d9e
Expand on wallet_balance.py comment from https://github.com/bitcoin/bitcoin/pull/16766\#issuecomment-527563982
5 years ago
Jeremy Rubin
5ffe0d1449
Update comment in test/functional/wallet_balance.py
...
Co-Authored-By: MarcoFalke <falke.marco@gmail.com>
5 years ago
Jeremy Rubin
a550c58267
Update wallet_balance.py test to reflect new behavior
5 years ago
MarcoFalke
fa3b9ee8b2
scripted-diff: test: Replace connect_nodes_bi with connect_nodes
...
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/connect_nodes_bi\(self.nodes,\s*(.),\s*/connect_nodes(self.nodes[\1], /g' $(git grep -l connect_nodes_bi)
sed -i --regexp-extended -e 's/connect_nodes_bi(,| )/connect_nodes\1/g' $(git grep -l connect_nodes_bi)
-END VERIFY SCRIPT-
5 years ago
MarcoFalke
fa815255c7
test: Add missing sync_all to wallet_balance test
5 years ago
Steven Roose
bb41e632ca
wallet_balance.py: Prevent edge cases
6 years ago
MarcoFalke
999931cf8f
rpc: Add getbalances RPC
6 years ago
MarcoFalke
fa79a783d6
test: Add reorg test to wallet_balance
6 years ago
MarcoFalke
fad03cd046
test: Check that wallet txs not in the mempool are untrusted
6 years ago
MarcoFalke
fa195315e6
test: Add getunconfirmedbalance test with conflicts
6 years ago
MarcoFalke
fa464e8211
test: Add wallet_balance test for watchonly
6 years ago
João Barbosa
4bf1b1cefa
qa: Check unconfirmed balance after loadwallet
6 years ago
John Newbery
c1825b9d39
[tests] Add wallet_balance.py
...
Adds a test specifically to test the wallet's getbalance and
getunconfirmedbalance RPCs.
6 years ago