João Barbosa
df18d29a02
[tests] Add -blocknotify functional test
7 years ago
John Newbery
9c72a464f8
[tests] Tidy up forknotify.py
7 years ago
John Newbery
82b2712a66
[tests] move witness util functions to blocktools.py
...
This avoids importing from segwit.py to bumpfee.py
7 years ago
John Newbery
1e10854038
[tests] [docs] update README for new test naming scheme
7 years ago
Tomas van der Wansem
5d465e3962
Ensure backupwallet fails when attempting to backup to source file
...
Previous behaviour was to destroy the wallet (to zero-length)
7 years ago
John Newbery
7481579131
[tests] Make comp test framework more debuggable
...
Add logging so that each test prints the line number of the yield
statement that generated the test.
7 years ago
Dusty Williams
aa57590d7c
Update importprivkey named args documentation
...
Fixes #11462 . Updated documentation for importprivkey function to use the correct name for the first argument.
Also updates a call to importprivkey to use named args in functional test.
7 years ago
John Newbery
47ba8cf71e
scripted-diff: rename assert_raises_jsonrpc to assert_raises_rpc error
...
-BEGIN VERIFY SCRIPT-
sed -i 's/assert_raises_jsonrpc/assert_raises_rpc_error/g' test/functional/*py test/functional/test_framework/*py
-END VERIFY SCRIPT-
7 years ago
John Newbery
677d893ff7
[tests] do not allow assert_raises_message to be called with JSONRPCException
7 years ago
John Newbery
5864e9c161
[tests] remove direct testing on JSONRPCException from individual test cases
7 years ago
Russell Yanofsky
4526d21e52
Add test for multiwallet batch RPC calls
...
Tests bug reported in https://github.com/bitcoin/bitcoin/issues/11257
7 years ago
Russell Yanofsky
74182f235c
Add missing batch rpc calls to python coverage logs
...
Without this change, batch RPC calls are not included in coverage logs.
7 years ago
Russell Yanofsky
505530c6cf
Add missing multiwallet rpc calls to python coverage logs
...
This fixes a bug in coverage logging that's been around since the logging was
introduced.
7 years ago
Russell Yanofsky
9f67646f17
Make AuthServiceProxy._batch method usable
...
Split off AuthServiceProxy.get_request method to make it easier to batch RPC
requests without duplicating code and remove leading underscore from _batch
method.
This does not change any existing behavior.
7 years ago
Russell Yanofsky
e02007aade
Limit AuthServiceProxyWrapper.__getattr__ wrapping
...
Change AuthServiceProxyWrapper.__getattr__ to only wrap proxied attributes, not
real attributes. This way AuthServiceProxyWrapper can continue logging RPC
calls without complicating other object usages, and special case handling for
the .url property can be dropped.
7 years ago
Jim Posen
eff4bd8ab2
[test] P2P functional test for certain fingerprinting protections
7 years ago
MarcoFalke
fafff1220c
qa: Restore bitcoin-util-test py2 compatibility
7 years ago
Daniel Edgecumbe
b7dfc6c4b8
[rpc] getblockchaininfo: add size_on_disk, prune_target_size, automatic_pruning
...
Fix pruneheight help text.
Move fPruneMode block to match output ordering with help text.
Add functional tests for new fields in getblockchaininfo.
7 years ago
Gregory Sanders
1088b5322d
add functional test for mempoolreplacement command line arg
7 years ago
MarcoFalke
619bb05037
Squashed 'src/univalue/' changes from 16a1f7f6e..fe805ea74
...
fe805ea74 Declare single-argument (non-converting) constructors "explicit"
8a2d6f1e3 Merge pull request #41 from jgarzik/get-obj-map
ba341a20d Add getObjMap() helper method. Also, constify checkObject().
ceb119413 Handle .pushKV() and .checkObject() edge cases.
107db9829 Add ::push_back(double) method for feature parity.
d41530031 Move one-line implementation of UniValue::read() to header.
52e85b35b Move exception-throwing get_* methods into separate implementation module.
dac529675 README.md: update code quotes
3e31dcffb README.md: close code quote
d09b8429d Update README.md
f1b86edb4 Convert README to markdown style.
1dfe464ef Import UniValue class unit tests from bitcoin project.
0d3e74dd1 operator[] takes size_t index parameter (versus unsigned int)
640158fa2 Private findKey() method becomes size_t clean, and returns bool on failure.
709913585 Merge pull request #36 from ryanofsky/pr/end-str
a31231b51 Version 1.0.3
4fd5444d1 Reject unterminated strings
81eba332b Merge pull request #26 from isle2983/pushBackHelpers
36405413e Merge PR #32 from branch 'nul-not-special' of git://github.com/ryanofsky/univalue into merge
89bb07322 Merge pull request #31 from ryanofsky/raw-literals
511008c36 Merge pull request #30 from ryanofsky/test-driver
77974f3a9 Merge pull request #34 from paveljanik/20161116_Wshadow_codepoint
a38fcd355 Do not shadow member variable codepoint.
fd32d1ab8 Don't require nul-terminated string inputs
0bb1439d0 Support parsing raw literals in UniValue
28876d045 Merge pull request #29 from btcdrak/exportspace
839ccd71f Add test driver for JSONTestSuite
26ef3fff1 Remove trailing whitespace from JSON export
cfa0384d6 Convenience wrappers for push_back-ing integer types
REVERT: 16a1f7f6e Merge #3 : Pull upstream
REVERT: daf1285af Merge pull request #2 from jgarzik/master
REVERT: f32df99e9 Merge branch '2016_04_unicode' into bitcoin
REVERT: 280b191cb Merge remote-tracking branch 'jgarzik/master' into bitcoin
REVERT: 2740c4f71 Merge branch '2015_11_escape_plan' into bitcoin
git-subtree-dir: src/univalue
git-subtree-split: fe805ea74f8919382720b09a905a14e81311b3ad
7 years ago
NicolasDorier
06eaca6313
[RPC] Wallet: test importing of native witness scripts
...
Integration into segwit.py test by Pieter Wuille.
7 years ago
Pieter Wuille
fd0041aa27
Use BIP173 addresses in segwit.py test
7 years ago
Pieter Wuille
c091b99379
Implement BIP173 addresses and tests
7 years ago
John Newbery
5e69a430ee
Add test for bitcoin-cli -getinfo
...
Extra-Author: Andrew Chow <achow101@gmail.com>
7 years ago
Andrew Chow
395cef7601
Change getmininginfo errors field to warnings
...
Changes the errors field to warnings. To maintain compatibility,
the errors field is deprecated and enabled by starting bitcoind with
-deprecatedrpc=getmininginfo
7 years ago
Andrew Chow
f77f0e4825
Add warnings field to getblockchaininfo
7 years ago
Johnson Lau
49f869fe91
Fix bip68-sequence rpc test
7 years ago
Cristian Mircea Messel
048e0c3e26
[rpc] [tests] Add deprecated RPC test
7 years ago
John Newbery
d4cdbd6fb6
[rpc] Deprecate estimatefee RPC
...
Deprecate estimatefee in v0.16, for final removal in v0.17.
This commit introduces a phased removal of RPC methods. RPC method is
disabled by default in version x, but can be enabled by using the
`-deprecatedrpc=<method>` argument. RPC method is removed entirely in
version (x+1).
7 years ago
Wladimir J. van der Laan
0cd9273fd9
rpc: Prevent `dumpwallet` from overwriting files
...
Prevent arbitrary files from being overwritten. There have been reports
that users have overwritten wallet files this way. It may also avoid
other security issues.
Fixes #9934 . Adds mention to release notes and adds a test.
7 years ago
Matt Corallo
28d4542a0a
Disallow uncompressed pubkeys in bitcoin-tx [multisig] output adds
7 years ago
João Barbosa
f6ffb14367
[test] Add getblockchaininfo functional test
7 years ago
João Barbosa
fd8f45fe88
[test] Add restart_node to BitcoinTestFramework
7 years ago
Andrew Chow
d3677ab757
Tests for zmqpubrawtx and zmqpubrawblock
7 years ago
John Newbery
e9e9391083
[tests] Check connectivity before sending in assumevalid.py
...
assumevalid.py would try to send over a closed P2P connection in a loop,
hitting the following failure many times:
TestFramework.mininode (ERROR): Cannot send message. No connection to node!
The test still passes, but this is a lot of noise in the test log.
Just check that the connection is open before trying to send.
7 years ago
Cory Fields
1817398b39
mininode: add an optimistic write and disable nagle
...
Because the poll/select loop may pause for 100msec before actually doing a
send, and we have no way to force the loop awake, try sending from the calling
thread if the queue is empty.
Also, disable nagle as all sends should be either full messages or unfinished
sends.
This shaves an average of ~1 minute or so off of my accumulated runtime, and
10-15 seconds off of actual runtime.
7 years ago
Suhas Daftuar
f97ab35fa9
qa: Fix bug introduced in p2p-segwit.py
...
Changing __init__() -> set_test_params() in the tests should not have
applied to NodeConnCB-derived objects.
7 years ago
Suhas Daftuar
a7820422e0
qa: Treat mininode p2p exceptions as fatal
7 years ago
Cristian Mircea Messel
fb1f325822
Add listwallets RPC test to multiwallet.py
7 years ago
MarcoFalke
fadd0c16b6
[qa] zapwallettxes: Wait up to 3s for mempool reload
7 years ago
MarcoFalke
fadf31ef02
wallet: Display non-HD error on first run
7 years ago
Matt Corallo
ba206d2c63
Deprecate confusing blockmaxsize, fix getmininginfo output
...
* This removes block-size-limiting code in favor of GBT clients
doing the limiting themselves (if at all).
* -blockmaxsize is deprecated and only used to calculate an implied
blockmaxweight, addressing confusion from multiple users.
* getmininginfo's currentblocksize return value was returning
garbage values, and has been removed, also removing a
GetSerializeSize call in some block generation inner loops and
potentially addressing some performance edge cases.
7 years ago
Andrew Chow
713a92073b
Remove usehd option and warn when it is used
...
Removed the -usehd option so wallets cannot be made to be non-hd
anymore. A warning will be displayed when the option is set.
7 years ago
João Barbosa
29e1dfbd97
[test] Add bitcoin-cli -stdin and -stdinrpcpass functional tests
7 years ago
João Barbosa
ce379b47b9
[test] Replace check_output with low level version
7 years ago
João Barbosa
232e3e8471
[test] Add assert_raises_process_error to assert process errors
7 years ago
João Barbosa
5c18a84b9a
[test] Add support for custom arguments to TestNodeCLI
7 years ago
João Barbosa
e1274947d4
[test] Improve assert_raises_jsonrpc docstring
7 years ago
Matt Corallo
aece8a4637
(finally) remove getinfo in favor of more module-specific infos
7 years ago
MarcoFalke
faa8d9581a
[qa] TestNode: Add wait_until_stopped helper method
7 years ago