Hennadii Stepanov
2aac093a3d
test: Add test coverage for -networkactive option
4 years ago
MarcoFalke
fa525e4d1c
net: Avoid wasting inv traffic during IBD
4 years ago
MarcoFalke
fa1433ac1b
rpc: Remove special case for unknown service flags
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
practicalswift
993e38a4e2
tests: Mark functional tests not supporting bitcoin-cli (--usecli) as such
5 years ago
MarcoFalke
696b5eb179
Merge #16987 : test: Correct docstring param name.
...
e28d8f8936
Correct docstring param name. (John Bampton)
Pull request description:
Small fix to correct the Python docstring.
ACKs for top commit:
laanwj:
ACK e28d8f8936
MarcoFalke:
ACK e28d8f8
Tree-SHA512: 7bec1c6b166c768dd69fc6b94eb80ceeaa0258985b9a11956e336940d403785e7d09d0084d9b870b637ec784db044cf4c0f8ac3f0fcdf431090f003016ef13a9
5 years ago
Luke Dashjr
9c23ebd6b1
qa: Fix service flag comparison check in rpc_net test
5 years ago
John Bampton
e28d8f8936
Correct docstring param name.
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
faaee1e39a
test: Use connect_nodes when connecting nodes in the test_framework
5 years ago
darosior
1d524c62ea
tests: rename 'test_getnetworkinginfo' in 'test_getnetworkinfo'
...
Since it's the name of the RPC call
5 years ago
darosior
07a8f65031
tests: add a test for the 'servicesnames' RPC field
...
In getpeerinfo and getnetworkinfo
5 years ago
Ben Woosley
de23739b22
test: Fix rpc_net.py "pong" race condition
...
Prior to this change, the test fails with KeyError if pong has
a zero value at the time this is called, as getpeerinfo's
bytesrecv_per_msg result excludes zero-values.
https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/21310881#L62
6 years ago
Jon Layton
fa0815c300
rpc: Correctly name arguments
6 years ago
chris-belcher
a2eb6f5405
[rpc] Add getnodeaddresses RPC command
...
New getnodeaddresses call gives access via RPC to the peers known by
the node. It may be useful for bitcoin wallets to broadcast their
transactions over tor for improved privacy without using the
centralized DNS seeds. getnodeaddresses is very similar to the getaddr
p2p method.
Tests the new rpc call by feeding IP address to a test node via the p2p
protocol, then obtaining someone of those addresses with
getnodeaddresses and checking that they are a subset.
6 years ago
Anthony Towns
5778bf95d9
Report minfeefilter value in getpeerinfo rpc
...
Lowering the minimum relay fee is only useful when many nodes in the
p2p network also lower the fee, so to make it easier to understand
progress on that front, this includes the value of the minfeefilter in
getpeerinfo, so you at least have visibility to what fees your neighbours
are currently accepting.
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
John Newbery
5a67c0524e
[tests] Fix intermittent rpc_net.py failure.
...
rpc_net.py would intermittently fail on Travis, probably
due to assuming that two consecutive RPC calls were atomic.
Fix this by only testing that amounts are bounded above and
below rather than equal.
7 years ago
Ben Woosley
81b0822772
test: Use wait_until in tests where time was used for polling
7 years ago
Ben Woosley
0eb84f30d8
test: Use wait_until to ensure ping goes out
...
Intermittent failure evident here:
https://travis-ci.org/bitcoin/bitcoin/jobs/344021180
7 years ago
Anthony Towns
81b79f2c39
[tests] Rename rpc_* functional tests.
7 years ago