Sebastian Falbesoner
b530d9605d
test: refactor: introduce `replace_in_config` helper
2 years ago
kouloumos
0377d6bb42
test: add `rescan_utxos` in MiniWallet's initialization
...
this simplifies usage when MiniWallet is used with a pre-mined chain.
2 years ago
Sebastian Falbesoner
8cbd926a2c
test: refactor: simplify p2p_permissions.py by using MiniWallet
...
Also, use the pre-mined chain of the test framework rather than mining
100 blocks manually on each run.
2 years ago
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
- 2021: f47dda2c58
- 2020: fa0074e2d8
- 2019: aaaaad6ac9
2 years ago
Andrew Chow
61d9149e78
rpc: Default rbf enabled
2 years ago
brunoerg
ceec6808d3
test: `-whitebind` and `-bind` with `-listen=0` should throw an error
2 years ago
MarcoFalke
fac23c2114
scripted-diff: Bump copyright headers
...
The previous diff touched most files in ./test/, so bump the headers to
avoid having to touch them again for a bump later.
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./test/
-END VERIFY SCRIPT-
3 years ago
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
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
John Newbery
37dcd12d53
scripted-diff: Rename recentRejects
...
-BEGIN VERIFY SCRIPT-
ren() { sed -i "s:\<$1\>:$2:g" $(git grep -l "\<$1\>" ./src ./test); }
ren recentRejects m_recent_rejects
-END VERIFY SCRIPT-
3 years ago
Sebastian Falbesoner
2ce7b47958
test: introduce `tx_from_hex` helper for tx deserialization
...
`FromHex` is mostly used for transactions, so we introduce a
shortcut `tx_from_hex` for `FromHex(CTransaction, hex_str)`.
3 years ago
Amiti Uttarwar
b1a936d4ae
[rpc] Remove deprecated "whitelisted" field from getpeerinfo
4 years ago
Troy Giorshev
d419fdedbe
[net processing] Don't add AlreadyHave txs to recentRejects
...
Now, we only add a transaction to our recentRejects filter if we didn't
already have it, meaning that it is added at most once, as intended.
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
Luke Dashjr
d681a28219
RPC: getpeerinfo: Deprecate "whitelisted" field (replaced by "permissions")
4 years ago
Seleme Topuz
1343c86c7c
test: Update wait_until usage in tests not to use the one from utils
...
Replace "wait_until()" usage from utils, with the ones from BitcoinTestFramework and P2PInterface.
closes #19080
4 years ago
John Newbery
d5800da519
[test] Remove final references to mininode
4 years ago
John Newbery
85165d4332
scripted-diff: Rename mininode to p2p
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\.mininode/\.p2p/g' $(git grep -l "mininode")
git mv test/functional/test_framework/mininode.py test/functional/test_framework/p2p.py
-END VERIFY SCRIPT-
4 years ago
Gleb Naumenko
cf1569e074
Add addr permission flag enabling non-cached addr sharing
4 years ago
MarcoFalke
fab5586122
doc: Use precise permission flags where possible
4 years ago
MarcoFalke
fa0540cd46
net: Extract download permission from noban
4 years ago
MarcoFalke
fac6ef4fb2
test: Add test for no net permission
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
MarcoFalke
facb71576c
net: Remove forcerelay of rejected txs
5 years ago
MarcoFalke
aaaae4d0eb
test: Add p2p test for forcerelay permission
5 years ago
MarcoFalke
fa6b57bcaa
test: Fix whitespace in p2p_permissions.py
5 years ago
MarcoFalke
aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
5 years ago
nicolas.dorier
3b05f0f70f
Reformat p2p_permissions.py
5 years ago
nicolas.dorier
ce7eac3cb0
[Fix] The default whitelistrelay should be true
5 years ago
nicolas.dorier
c5b404e8f1
Add functional tests for flexible whitebind/list
5 years ago