Commit graph

811 commits

Author SHA1 Message Date
tdudz
8fed03f63c added explicit 'valuecommitment' checking of gettxout with getrawtransaction rpcs 2017-06-16 13:45:48 -04:00
tdudz
4a671e2958 added small testing of gettxout rpc 2017-06-16 13:45:44 -04:00
tdudz
c3ca54798e fixed improper syntax in invalidateblock.py, tests now pass 2017-06-16 13:45:38 -04:00
Gregory Sanders
d77ad7385a Use wallet to find compatible pegin sidechain_address by default during claimpegin 2017-06-16 13:43:40 -04:00
Jonas Nick
cf0173a6d5 Add blinded multisig RPC test 2017-06-16 12:02:37 -04:00
Gregory Sanders
db37555482 createblindedaddress now takes blinding pubkey 2017-06-16 12:02:37 -04:00
Gregory Sanders
0fca8a94d0 0.14.1 start reactivating functional tests 2017-06-16 12:02:37 -04:00
Gregory Sanders
8ef102a035 Make best-effort to blind desired outputs, fail or return depending on ignoreblindfail arguments. 2017-06-16 12:02:37 -04:00
Gregory Sanders
1a1714c72a functional tests check that fundrawtransaction doesn't create blinded outputs 2017-06-16 12:02:37 -04:00
Gregory Sanders
d4338fffb1 f'Remove spendable 0-value outputs from consensus, wallet' 2017-06-16 12:02:36 -04:00
Gregory Sanders
0bb5e092f3 f'Remove spendable 0-value outputs from consensus, wallet' 2017-06-16 12:02:36 -04:00
Gregory Sanders
efcdf51985 createrawtransaction now only supports manual fee construction 2017-06-16 12:02:36 -04:00
Gregory Sanders
6727607792 have destroyamount test use less brittle amount 2017-06-16 12:02:36 -04:00
Gregory Sanders
366bdec11f f'Confidential Assets python testing' - move parent up to here 2017-06-16 12:02:36 -04:00
Gregory Sanders
5a09e7ee30 Enhance confidential tests to cover new issuance method 2017-06-16 12:02:36 -04:00
Jorge Timón
c6a70906f4 CA: RPC: Add destroyamount rpc call in rpcwallet 2017-06-16 12:02:35 -04:00
Jorge Timón
d3e3d8f0e7 CA: Tests-py: Remove addassetlabel from rpc-tests/confidential_transactions.py 2017-06-16 12:02:35 -04:00
Jorge Timón
2c06858416 CA: Tests-py: wallet needs no knowledge of asset hex ids 2017-06-16 12:02:35 -04:00
Jorge Timón
b14385780f fixup! CA python tests 2017-06-16 12:02:34 -04:00
Gregory Sanders
a922d3c8ee Remove asset wildcard, make default behavior 2017-06-16 12:02:34 -04:00
Mark Friedenbach
a25f6c6e08 CA: CAssetID -> CAsset 2017-06-16 12:02:33 -04:00
Gregory Sanders
5421adae70 confidential_transactions.py: remove erroneous set_trace, fix race 2017-06-16 12:02:17 -04:00
Gregory Sanders
95d392f868 wallet.py begin re-activating 2017-06-16 12:02:17 -04:00
Gregory Sanders
15e94ed65a [MOVE UP] Confidential Assets python testing - no issuance skeleton anymore 2017-06-16 12:02:17 -04:00
Gregory Sanders
2f7a9a5846 Replace nTxFee with explicit output fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
b780bf7047 SendFrom: Remove 2017-06-16 12:02:16 -04:00
Gregory Sanders
b8cace5912 Fix blind test sync failure 2017-06-16 12:02:15 -04:00
Gregory Sanders
d2469066be Test for FillOutput unblinding change output 2017-06-16 12:02:15 -04:00
Gregory Sanders
0f7531a3a5 new createblindedaddress call to gen CT address 2017-06-16 12:02:15 -04:00
Gregory Sanders
df8db0b642 listunspent: don't list outputs with unknown amounts 2017-06-16 12:02:14 -04:00
Gregory Sanders
f106eabc4d New address prefix: CTE 2017-06-16 12:02:14 -04:00
Gregory Sanders
d7cad10e0c fix getpeginaddress clarification 2017-06-16 12:02:14 -04:00
Gregory Sanders
ae9a900b4a Add regtest python peg-in test 2017-06-16 12:02:14 -04:00
Eric Martindale
bdfe5e2e25 Migrate project naming from "Beta" to "Elements"
Note: this also changes the CHAINPARAMS_ELEMENTS constant!  The new
network name is simply `elements`, and similarly regtest is now
`elementsregtest`
2017-06-16 12:02:14 -04:00
instagibbs
a1ee4049a9 Re-activated (some) python tests 2017-06-16 12:02:13 -04:00
Suhas Daftuar
39febb8c6d [qa] Fix mempool_packages.py for the 0.14 branch
The backport in d947afc0f7 of this
test was incorrect due to an api change in prioritisetransaction.
2017-04-05 08:30:51 -04:00
Suhas Daftuar
d947afc0f7
Test prioritisetransaction and ancestor fee state
There is already a similar test for descendant fee state.

Github-Pull: #10144
Rebased-From: ba7dd8bf6f
2017-04-05 08:37:12 +02:00
Suhas Daftuar
2cd2cd51f7 Test transaction selection when gbt called without segwit support
Github-Pull: #9955
Rebased-From: c85ffe6d8d
2017-03-16 10:50:16 -04:00
Suhas Daftuar
569596cc51 Don't require segwit in getblocktemplate for segwit signalling or mining
Segwit's version bit will be signalled for all invocations of CreateNewBlock,
and not specifying segwit only will cause CreateNewBlock to skip transactions
with witness from being selected.

Github-Pull: #9955
Rebased-From: abe7b3d3ab
2017-03-16 10:43:54 -04:00
Russell Yanofsky
eddaa6b35d
[qa] Make import-rescan.py watchonly check reliable
Send payments during the test from a different node than the node generating
keys to be imported, so the spending node doesn't create transactions that
inadvertently involve (spend funds from) the imported keys.

Fixes #9826

Github-Pull: #9839
Rebased-From: 864890adf5
2017-02-27 09:03:57 +01:00
MarcoFalke
260c71cbb8
qa: Check return code when stopping nodes
This includes work by jnewbery

Github-Pull: #9824
Rebased-From: fa4cd2e998
2017-02-23 10:40:55 +01:00
Russell Yanofsky
599c69abe3
Fix pruning test broken by 2 hour manual prune window
Regression happened in 91fb506 Add two hour buffer to manual pruning.

Github-Pull: #9820
Rebased-From: 874c7363d7
2017-02-23 10:39:20 +01:00
Luke Dashjr
861cb0c83d
QA: Test GBT size/weight limit values
Github-Pull: #9619
Rebased-From: 279f944e8d
2017-02-20 17:32:59 +01:00
Russell Yanofsky
e662af3583 Use 2 hour grace period for key timestamps in importmulti rescans
Gregory Maxwell <greg@xiph.org> pointed out the lack of grace period in
https://github.com/bitcoin/bitcoin/pull/9490#issue-199407998.

The importwallet RPC which uses key timestamps in a similar way already has a 2
hour grace period.
2017-02-16 09:05:55 -05:00
Russell Yanofsky
38d3e9ee59 [qa] Extend import-rescan.py to test imports on pruned nodes. 2017-02-16 09:05:55 -05:00
Russell Yanofsky
c28583d062 [qa] Extend import-rescan.py to test specific key timestamps 2017-02-16 09:05:55 -05:00
Russell Yanofsky
8be0866883 [qa] Simplify import-rescan.py
Get rid of partial functions so the test can be more easily extended to add
more variants of imports with options that affect rescanning (e.g. different
key timestamps).

Also change the second half of the test to send /to/ the imported addresses,
instead of /from/ the imported addresses. The goal of this part of the test was
to confirm that the wallet would pick up new transactions after an import
regardless of whether or not a rescan happened during the import. But because
the wallet can only do this reliably for incoming transactions and not outgoing
transactions (which require the wallet to look up transaction inputs) the test
previously was less meaningful than it should have been.
2017-02-16 09:05:55 -05:00
Wladimir J. van der Laan
1e92e041dd
Merge #9765: Harden against mistakes handling invalid blocks
ba803ef Harden against mistakes handling invalid blocks (Suhas Daftuar)
2017-02-16 10:23:41 +01:00
Wladimir J. van der Laan
7a93af8340
Merge #9756: Return error when importmulti called with invalid address.
9acf25c Return error when importmulti called with invalid address. (Russell Yanofsky)
2017-02-15 16:29:16 +01:00
Suhas Daftuar
ba803efb68 Harden against mistakes handling invalid blocks
Fixes a bug in AcceptBlock() in invoking CheckBlock() with incorrect
arguments, and restores a call to CheckBlock() from ProcessNewBlock()
as belt-and-suspenders.

Updates the (overspecified) tests to match behavior.
2017-02-15 08:17:57 -05:00