Matt Corallo
f3d4adfa6f
Make p2p-acceptablock not an extended test
7 years ago
Matt Corallo
00dcda60f6
[qa] test that invalid blocks on an invalid chain get a disconnect
7 years ago
Matt Corallo
932f118e6a
Accept unrequested blocks with work equal to our tip
...
This is a simple change that makes our accept requirements the
same as our request requirements, (ever so slightly) further
decoupling our consensus logic from our FindNextBlocksToDownload
logic in net_processing.
7 years ago
Matt Corallo
3b4ac43bc3
Rewrite p2p-acceptblock in preparation for slight behavior changes
...
Removes checking whitelisted behavior (which will be removed, the
difference in behavior here makes little sense) and no longer
requires that blocks at the same work as our tip be dropped if not
requested (in part because we *do* request those blocks).
7 years ago
Suhas Daftuar
c60fd71a65
Disconnecting from bad outbound peers in IBD
...
When in IBD, we'd like to use all our outbound peers to help us
sync the chain. Disconnect any outbound peers whose headers have
insufficient work.
7 years ago
John Newbery
bd9c18171d
[rpc] Add initialblockdownload to getblockchaininfo
7 years ago
Russell Yanofsky
659b2061c4
Make listsinceblock refuse unknown block hash
...
Change suggested by Cory Fields <cory-nospam-@coryfields.com> who noticed
listsinceblock would ignore invalid block hashes causing it to return a
completely unfiltered list of transactions.
7 years ago
Russell Yanofsky
bc9c0a7b74
Improve wallet-accounts test
...
Add comments and
- Verify sending to a account causes getaccountaddress to generate new addresses.
- Verify sending to a account causes getreceivedbyaccount to return amount received.
- Verify ways setaccount updates the accounts of existing addresses.
7 years ago
Suhas Daftuar
6d51eaefe9
qa: Fix race condition in sendheaders.py
7 years ago
Suhas Daftuar
c96b2e4f09
qa: Fix replace-by-fee race condition failures
7 years ago
Suhas Daftuar
08fd822771
qa: add test for minchainwork use in acceptblock
7 years ago
Russell Yanofsky
478a89c1ef
Avoid opening copied wallet databases simultaneously
...
Make sure wallet databases have unique fileids. If they don't, throw an error.
BDB caches do not work properly when more than one open database has the same
fileid, because values written to one database may show up in reads to other
databases.
Bitcoin will never create different databases with the same fileid, but users
can create them by manually copying database files.
BDB caching bug was reported by Chris Moore <dooglus@gmail.com>
https://github.com/bitcoin/bitcoin/issues/11429
Fixes #11429
7 years ago
John Newbery
f893085325
[tests] Don't subclass from object for Python 3
7 years ago
John Newbery
8f9e3627ef
[tests] authproxy.py: tidy up __init__()
7 years ago
John Newbery
323d8f61e9
[tests] fix flake8 warnings in authproxy.py
7 years ago
John Newbery
fc0176d01e
[tests] use python3 for authproxy.py
7 years ago
MarcoFalke
fafa003970
qa: Remove never used return value of sync_with_ping
7 years ago
MarcoFalke
fa9de370b1
qa: Make tmpdir option an absolute path
...
This should fix issues with the multiwallet test and symlinks
when the tmpdir is a relative path.
Rather than fixing os.symlink to work with paths relative to a
directory descriptor, which does not work on Windows, normalize
the path instead.
7 years ago
Jonas Schnelli
7a91ceb5e0
[QA] Add RPC based rescan test
7 years ago
Eelis
28f8b66577
Diagnose unsuitable outputs in lockunspent().
...
Fixes #2667 .
7 years ago
Cristian Mircea Messel
149dffd3b2
[rpc] mempoolinfo should take ::minRelayTxFee into account
7 years ago
Cristian Mircea Messel
c5dfa90aab
[tests] Add uacomment tests
...
Checks for setting the value, max length and reserved characters
7 years ago
Pedro Branco
a44a215177
Fix importmulti bug when importing an already imported key
7 years ago
João Barbosa
cc9ee809ad
Improve ZMQ functional test
7 years ago
João Barbosa
857b32b4b2
[tests] Add -walletnotify functional test
7 years ago
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