Commit graph

1089 commits

Author SHA1 Message Date
Gregory Sanders
f26b992d8a fixup functional test 2018-11-15 16:08:01 -05:00
Gregory Sanders
413701668d fixup functional test 2018-11-15 16:05:02 -05:00
Gregory Sanders
561f56dbf2 remove unused include rpc_blockchain.py 2018-11-15 16:01:27 -05:00
Gregory Sanders
e456e1eba1 remove unused decimal in rpc test 2018-11-15 16:00:28 -05:00
Gregory Sanders
1abaed35bf remove unused includes in blocksign test 2018-11-15 15:58:57 -05:00
Gregory Sanders
fcf77ab170 fixup getnewblcokhex 2018-11-15 15:58:39 -05:00
Gregory Sanders
bdb173729d fixup blocksign functional tests again... 2018-11-15 15:06:10 -05:00
Gregory Sanders
7f2302b365 finalize functional test for blocksigning 2018-11-15 15:06:10 -05:00
Gregory Sanders
d1c17499f3 finally fixed feature_blocksign.py 2018-11-15 15:06:10 -05:00
Gregory Sanders
3c9aabe8d3 checking functional test 2018-11-15 15:06:10 -05:00
Gregory Sanders
f15dcf98c5 Add TX_TRUE output format, accept in wallet with 2018-11-15 15:06:10 -05:00
Gregory Sanders
f56f3d5638 fixup rpc test 2018-11-14 22:12:31 -05:00
Gregory Sanders
1648fb9488 fixup signed block rpc functional tests 2018-11-14 16:18:24 -05:00
Gregory Sanders
61620150d6 add RPC test for getnewblockhex required_wait 2018-11-07 13:39:45 -05:00
Gregory Sanders
450276a42b test compact block rpcs 2018-11-07 13:30:59 -05:00
Gregory Sanders
98527830f7 checkin feature_blocksign.py fixup 2018-11-06 20:52:12 -05:00
Gregory Sanders
a3493276d8 fix zmq test 2018-11-06 13:41:25 -05:00
Gregory Sanders
40c794bb56 more fixes 2018-11-05 17:20:25 -05:00
Gregory Sanders
1ac92155ae fixup 2018-11-05 16:52:38 -05:00
Gregory Sanders
9176ff035f fixup 2018-11-05 16:51:41 -05:00
Gregory Sanders
d35e6153df more fixes 2018-11-05 15:13:39 -05:00
Gregory Sanders
89aeade373 break this up! checkin 2018-10-30 15:46:48 -04:00
Gregory Sanders
07ca9b9177 some more functional test stuff 2018-10-30 09:31:27 -04:00
Gregory Sanders
5f780bb517 add functional tests for signed blockchain 2018-10-29 16:14:31 -04:00
Gregory Sanders
5e33033cdb 'f'Add signblockscript argument to employ signed blocks 2018-10-29 16:00:14 -04:00
Gregory Sanders
cb5571f1e4 Add signblockscript argument to employ signed blocks 2018-10-29 15:51:29 -04:00
Gregory Sanders
e20b836aeb Actually run the bitcoin functional tests with test_runner 2018-10-26 12:00:55 -04:00
Gregory Sanders
d97920caa4 add functional test for coinbase connection to db 2018-10-25 13:21:42 -04:00
Gregory Sanders
ccf40db968 connect genesis block transaction outputs to coin db 2018-10-25 12:51:53 -04:00
Gregory Sanders
3d274183d2
Merge #445: [0.17] Duplicate bitcoin functional tests
ef039f0 Add travis build that tests bitcoin functional tests (Gregory Sanders)

Pull request description:

  We're going to keep these tests alive as long as possible to increase modularity/QA of the codebase.

Tree-SHA512: c0639422fe518cd9a5f6eb06f24a4c812d38bdde95f37a6787b10ab009e6ee9ff22b30ea8f79e6cf47581bd0d7577fe149f3e636c4c6f0488c9c6555730b8315
2018-10-24 11:00:37 -04:00
Gregory Sanders
ef039f001b Add travis build that tests bitcoin functional tests 2018-10-23 13:29:57 -04:00
Gregory Sanders
7bac720925 add block subsidy argument to allow different/non-inflation chains 2018-10-23 09:45:16 -04:00
Gregory Sanders
2d6f1374c2 rename mandatory coinbase test, add it to test_runner list 2018-10-22 09:49:07 -04:00
Gregory Sanders
0d20b55374 add mandatory coinbase functional test 2018-10-18 15:17:15 -04:00
Jorge Timón
a1e0c56a55
QA: Use resgtest2 chain instead of regtest for rpc tests 2018-10-16 18:32:20 +02:00
Jorge Timón
4454c52ae6
QA: Adapt BitcoinTestFramework for chains other than "regtest" 2018-10-16 18:32:19 +02:00
Jorge Timón
a06be15279
Testchains: Introduce custom chain whose constructor...
...reads params from regular arguments
2018-10-16 18:32:17 +02:00
Jorge Timón
1f1c7df5a6
Test: Fix example_test.py 2018-10-15 00:35:38 +02:00
Suhas Daftuar
0d49c82edd [qa] backport: Test for duplicate inputs within a transaction 2018-09-17 16:15:18 -04:00
MarcoFalke
eb202ea21d
test: Add test for config file parsing errors
Github-Pull: #14105
Rebased-From: ed2332aeff
Tree-SHA512: 17fa88a2848f1c9c9c8a127b5ea4c45761ce8e06a609dd40f8e90bb9117d88c9d2c81e752c9c0f1a44ecadbb5bedd2973bc4548da2a6d463c789797191e85ab1
2018-09-06 13:54:05 +02:00
Gregory Sanders
2307a6eb2b
fix walletcreatefundedpsbt deriv paths, add test
Github-Pull: #14055
Rebased-From: 61fe653bd9
Tree-SHA512: 2f3edf62318fab4b405b47788096005f59cbe6ba4723fe51ce3b386539a58b7ea7369c31c3840c6baa76cdf6ba8f8440f977c36e2ee2916e711d7872bd1eadad
2018-08-28 23:11:41 +02:00
Gregory Sanders
82e2b9cb25
QA: add basic walletcreatefunded optional arg test
Github-Pull: #13968
Rebased-From: 1f0c4282e9
Tree-SHA512: 1f8b10629a314f623d589801ef2e62724de2cd82a0e523e0ab25a285f92b76a3b31304c1c0418b1b611ec3ca0016016d1e6af410ac81a78449b875c4f89a46d7
2018-08-21 09:44:52 +02:00
Andrew Chow
0333914467
More tests of signer checks
GitHub-Pull: #13917
Rebased-From: 5df6f08
2018-08-15 10:01:32 +08:00
Andrew Chow
8935869487
Test that a non-witness script as witness utxo is not signed
GitHub-Pull: #13917
Rebased-From: 7c8bffd
2018-08-15 10:01:18 +08:00
Andrew Chow
8c4cd2bd89
Fix PSBT deserialization of 0-input transactions
0-input transactions can be ambiguously deserialized as being witness
transactions. Since the unsigned transaction is never serialized as
a witness transaction as it has no witnesses, we should always
deserialize it as a non-witness transaction and set the serialization
flags as such.

Also always serialize the unsigned transaction as a non-witness transaction.

GitHub-Pull: #13960
Rebased-From: 43811e6
2018-08-15 09:58:49 +08:00
MarcoFalke
bffb35f876
Merge #13054: tests: Enable automatic detection of undefined names in Python tests scripts. Remove wildcard imports.
68400d8b96 tests: Use explicit imports (practicalswift)

Pull request description:

  Enable automatic detection of undefined names in Python tests scripts. Remove wildcard imports.

  Wildcard imports make it unclear which names are present in the namespace, confusing both readers and many automated tools.

  An additional benefit of not using wildcard imports in tests scripts is that readers of a test script then can infer the rough testing scope just by looking at the imports.

  Before this commit:

  ```
  $ contrib/devtools/lint-python.sh | head -10
  ./test/functional/feature_rbf.py:8:1: F403 'from test_framework.util import *' used; unable to detect undefined names
  ./test/functional/feature_rbf.py:9:1: F403 'from test_framework.script import *' used; unable to detect undefined names
  ./test/functional/feature_rbf.py:10:1: F403 'from test_framework.mininode import *' used; unable to detect undefined names
  ./test/functional/feature_rbf.py:15:12: F405 bytes_to_hex_str may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:17:58: F405 CScript may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:25:13: F405 COIN may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:26:31: F405 satoshi_round may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:26:60: F405 COIN may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:30:41: F405 satoshi_round may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  ./test/functional/feature_rbf.py:30:68: F405 COIN may be undefined, or defined from star imports: test_framework.mininode, test_framework.script, test_framework.util
  $
  ```

  After this commit:

  ```
  $ contrib/devtools/lint-python.sh | head -10
  $
  ```

Tree-SHA512: 3f826d39cffb6438388e5efcb20a9622ff8238247e882d68f7b38609877421b2a8e10e9229575f8eb6a8fa42dec4256986692e92922c86171f750a0e887438d9
2018-08-13 08:28:06 -04:00
practicalswift
68400d8b96 tests: Use explicit imports 2018-08-13 14:13:39 +02:00
MarcoFalke
b8eb0dfde4
Merge #13928: qa: blocktools enforce named args for amount
cf9ed307e6 qa: blocktools enforce named args for amount (MarcoFalke)

Pull request description:

  Since  #13669 changed some signatures, I think it might be worthwhile to enforce named args for primitive types such as amounts.

Tree-SHA512: 2733e7b6a20590b54bd54e81a09e3f5e2fadf4390bed594916b70729bcf485b048266012c1203369e0968032a2c6a2719107ac17ee925d8939af3df916eab1a6
2018-08-13 07:30:38 -04:00
MarcoFalke
a9c56b6634
Merge #13918: rpc: Replace median fee rate with feerate percentiles in getblockstats
4b7091a842 Replace median fee rate with feerate percentiles (Marcin Jachymiak)

Pull request description:

  Currently,  the `medianfeerate` statistic is calculated from the feerate of the middle transaction of a list of transactions sorted by feerate.

  This PR instead uses the value of the 50th percentile weight unit in the block, and also calculates the feerate at the 10th, 25th, 75th, and 90th percentiles.  This more accurately corresponds with what is generally meant by median feerate.

Tree-SHA512: 59255e243df90d7afbe69839408c58c9723884b8ab82c66dc24a769e89c6d539db1905374a3f025ff28272fb25a0b90e92d8101103e39a6d9c0d60423a596714
2018-08-13 07:18:25 -04:00
MarcoFalke
ef86f2631e
Merge #13939: lint: Make format string linter understand basic template parameter syntax
4441ad677a Make format string linter understand basic template parameter syntax (practicalswift)

Pull request description:

  Make format string linter understand basic template parameter syntax.

  Fixes issue described in https://github.com/bitcoin/bitcoin/pull/13705#issuecomment-412046126.

  Thanks to @ken2812221 for reporting!

Tree-SHA512: 8fb995bc6b29d8b9926ef5969e02cf71c494e829434fcdeb4ed5fabad5ab96e86e5b8eea705e8a416927757b4fa4e58abc0fd4f483daa58c94e2c6fdcb8ee822
2018-08-13 07:07:56 -04:00