Commit graph

1238 commits

Author SHA1 Message Date
Gregory Sanders
a4a051e756 Add tests for fundrawtransaction placing back blinding keys properly 2019-04-19 07:39:32 -04:00
Gregory Sanders
2e6191d73a QA: Hack around no issuance an non-witness tx bug issue#473 2019-04-19 07:39:32 -04:00
Gregory Sanders
fb184c8303 mempool_package: make sure small UTXOs aren't selected for spending chain 2019-04-15 08:45:52 -04:00
Gregory Sanders
d70367bcf8 Add broken python serialization to always give issuance input, test for decode failure 2019-04-12 11:50:01 -04:00
Gregory Sanders
2cb47d1705 Disallow coinbase output witness data, since outputs are explicit anyways 2019-04-12 11:50:01 -04:00
Gregory Sanders
8b2e8859d6 Test for block-blinding by txinwit-overstuffed block 2019-04-12 11:50:01 -04:00
Gregory Sanders
789d4b97f7 Disallow output witness data in coinbase transactions 2019-04-12 11:50:01 -04:00
Gregory Sanders
e64324e3ec Test coinbase witness data consensus rules 2019-04-12 11:50:01 -04:00
Gregory Sanders
ac98ca4eb1 python test support for issuance and peg-in serialization and data 2019-04-12 11:50:01 -04:00
Gregory Sanders
97356e8c14 test_framework: Fix CTxInWitness.is_null with pegin_witness 2019-04-12 11:50:01 -04:00
Gregory Sanders
23095087f6 feature_fedpeg.py: change sidechain's parent bech32 prefix to match 2019-04-12 11:50:01 -04:00
Steven Roose
6c4f6efb64
Merge #563: Some more standard pegout testing
30eb323e9 ensure pak wallet is returning right kind of addresses (Gregory Sanders)
9e56c87ec have validateaddress give useful parent chain addr info (Gregory Sanders)
894d76e7c test all single-key pegout address types (Gregory Sanders)
40a62a151 DestinationEncoder: don't assert when a parent destination is unblinded (Gregory Sanders)

Pull request description:

  Added more utility to `validateaddress` for parent addresses by returning an additional object `parent_address_info`, then used it to enhance various tests.

Tree-SHA512: 941ef1dc8b7469c3274a50907ea788fe520398809d5c4ac901ef057dfa688f63b45f0be298de14c07c250015d02de8f2f4687e430da121fba759e3879823947f
2019-04-12 15:34:40 +01:00
Steven Roose
8fd8a45011
Merge #568: Adapt Elements default adress prefix bytes to elements-0.14 style
91294ca01 Adapt Elements default adress prefix bytes to elements-0.14 style (Gregory Sanders)
410d5fa08 sendtomainchain_base should be decoding parent destination (Gregory Sanders)

Pull request description:

  Also chose `ert` as bech32 hrp, just to make it distinct.

  Clustered the various address parameters for ease of the reader.

  resolves https://github.com/ElementsProject/elements/issues/567

Tree-SHA512: aae4b31b0c5ead9801dad13a50ddfc934216df783d6294bb4e2ae515bba27960a9643ccaae87a60c9637c44aeb6d4b0329eeb70846b07e6e88e9133edcd74315
2019-04-11 17:25:33 +01:00
Gregory Sanders
91294ca01a Adapt Elements default adress prefix bytes to elements-0.14 style 2019-04-10 16:08:39 -04:00
Steven Roose
6fa39762c3
Merge #565: Turn off mempool consistency check in fedpeg test to avoid assert
8b718d25d Turn off mempool consistency check in fedpeg test to avoid assert (Gregory Sanders)

Pull request description:

  Problem is this assert is hard to hit in practice, only Travis seems to.

  We should not be relying on the mempool consistency checks to make sure bad blocks don't get accepted during parent chain RPC failure so let's just have the node continue and check behavior we expect.

Tree-SHA512: 26d778de9d0a2afc155e54e30858d949c1cc870ea5905bafaaffa70ad445baa1b1b5eaf8fee766b926e4fa3013af7a8ce792d3b4e40c225d4c9df6577ca57e20
2019-04-10 19:05:43 +01:00
Gregory Sanders
8b718d25dc Turn off mempool consistency check in fedpeg test to avoid assert 2019-04-05 12:50:03 -04:00
Gregory Sanders
30eb323e9b ensure pak wallet is returning right kind of addresses 2019-04-04 11:48:48 -04:00
Gregory Sanders
894d76e7c8 test all single-key pegout address types 2019-04-04 11:48:48 -04:00
Steven Roose
07cf0b218b
Merge #558: Create burn argument for createrawtransaction
39357ca50 Create burn argument for createrawtransaction (Gregory Sanders)

Pull request description:

  Allows a no-data burn of any given asset using the raw interface to support multi-sig burn when `destroyamount` will not suffice.

  Resolves https://github.com/ElementsProject/elements/issues/557

Tree-SHA512: 77309701c97861b30e141138b34efab3be6667993e0aa725d61500fa6943af9ce6114efcfd14fb6f8bade92d98bfcf8a5c7163a382a7358e3f160b36d0d944c8
2019-04-03 21:00:21 +02:00
Gregory Sanders
39357ca506 Create burn argument for createrawtransaction 2019-04-02 20:14:20 -04:00
Dmitry Petukhov
4258f9ff00 add code to test partial blinding functionality to qa/rpc-tests 2019-04-02 16:30:03 -04:00
Steven Roose
a904f02fb1
Merge #549: Make new actually working master blinding calls, test
9acbd2436 Make new actually working master blinding calls, test (Gregory Sanders)

Pull request description:

  resolves https://github.com/ElementsProject/elements/issues/547

  Previous API was improperly overloading the specific blinding key calls, and incorrectly on top of that.

  Instead implement `importmasterblindingkey` and `dumpmasterblindingkey` and check that `dumpwallet` details are enough to recover same blinded wallet addresses.

Tree-SHA512: d9d954d1cb787182d99b464cc6a80e8383d3ea71e432e6fd0e244b5f5a460b9adfcdc14e38fe841c5a5e2fef1345da78217d519a23a804d5066998828103efd1
2019-04-01 12:36:27 +02:00
Steven Roose
298c2fb482
Merge #538: Enforce coinbase maturity on bitcoin peg-ins
5acc42e4e feature_fedpeg.py: remove the spam output (Gregory Sanders)
870e41609 Enforce coinbase maturity on bitcoin peg-ins (Gregory Sanders)

Pull request description:

  resolves https://github.com/ElementsProject/elements/issues/14

  Technically a softfork but not really since the elements chain would eventually become valid anyways.

Tree-SHA512: bfdf404f7056e6b16adde3a82b0e11839b921fd08063ae6415d207b553e1a19c5f5a76cb308af1ca63164c001eb59b5874fe33160f7bf87061a6a4a507aa9241
2019-04-01 10:04:07 +01:00
Gregory Sanders
9acbd24360 Make new actually working master blinding calls, test 2019-03-29 13:20:26 -04:00
Gregory Sanders
5acc42e4eb feature_fedpeg.py: remove the spam output 2019-03-28 16:53:11 -04:00
Gregory Sanders
870e41609e Enforce coinbase maturity on bitcoin peg-ins 2019-03-28 16:27:18 -04:00
Gregory Sanders
adcc2d2ada Re-enable no wallet functional tests 2019-03-26 11:48:16 -04:00
Steven Roose
2a7039f13d
Add Travis fedpeg test with downloaded bitcoind 2019-03-25 11:21:06 +00:00
Steven Roose
e1cd00cc6c Change branding from bitcoin to elements 2019-03-22 10:12:04 +00:00
Gregory Sanders
753a1ce2a3
Merge #526: [0.17] Add test for superfulous witness record in deserialization
310c4dc Add test for superfulous witness record in deserialization (Gregory Sanders)

Pull request description:

  Backport of 7c1ad7c036

Tree-SHA512: 4f67814e411209ef3424e2ae80bd3c2c4ec92e670742b795c3c79ac7c9eb4be92727472d1611e5dade8710207d47d6157db0b790d62ab8f27c79e7c6141660ae
2019-03-21 15:08:51 -04:00
Gregory Sanders
310c4dc262 Add test for superfulous witness record in deserialization 2019-03-21 14:06:41 -04:00
Steven Roose
aba54b3f92
Make validatepegin default to true if has parent chain 2019-03-21 17:55:02 +00:00
Gregory Sanders
8ea52eec38 Default to elementsregtest 2019-03-21 10:43:20 -04:00
Gregory Sanders
899690be2f
Merge #522: Fix occasional mempool_packages failure
a88eae1 Fix occasional mempool_packages failure (Steven Roose)

Pull request description:

Tree-SHA512: 89c3880a184294b5708304c9add8936b65572af8f03033505d1961da58f705776a8f42a29e8815c0eab3ca84f4dac36bc1c22ab5697cf0675ce50ba4d23b00ff
2019-03-21 10:05:22 -04:00
Steven Roose
a88eae1934
Fix occasional mempool_packages failure 2019-03-21 13:05:46 +00:00
Steven Roose
5b8c79ac9d
Fix progress reporting issue
Reimplementation of https://github.com/Blockstream/liquid/pull/6
2019-03-21 11:01:16 +00:00
Gregory Sanders
de56cd82b6 move fee estimation test to extended tests, takes too long 2019-03-20 16:58:47 -04:00
Gregory Sanders
30552459dc Spelling linter 2019-03-20 11:05:49 -04:00
Gregory Sanders
0148024dd8 Functional test linting 2019-03-20 11:00:50 -04:00
Gregory Sanders
f56de12cdd Remove all but one circular dep: coinselection <-> wallet 2019-03-20 10:10:43 -04:00
Steven Roose
a687dd9a34
Add assets and issuance functional tests 2019-03-20 12:06:05 +00:00
Steven Roose
96af43b185
Add confidential transactions functional test 2019-03-20 12:06:04 +00:00
Steven Roose
39020cdc7b
Adapt existing functional tests to CA 2019-03-20 12:06:03 +00:00
Steven Roose
6113bf89cf
[BROKEN] Add fee outputs to functional tests 2019-03-20 12:06:02 +00:00
Steven Roose
b48aea8284
[BROKEN] Account for assets in all balance inspection in tests 2019-03-20 12:06:01 +00:00
Steven Roose
43f8b459dc
[BROKEN] Adapt bitcoin_functional tests to CA 2019-03-20 12:06:00 +00:00
Steven Roose
6493ad902a
Adapt bitcoin-tx to CA 2019-03-20 12:05:47 +00:00
Steven Roose
04d06917d2
Rename con_elementswitness to con_elementsmode
It will have effect on more than just witness structure from now on.
2019-03-20 12:05:44 +00:00
Steven Roose
84954c8110
Add CAssetsDir 2019-03-20 12:05:38 +00:00
Gregory Sanders
9cb2fa051f
Add blech32 python implementation with diff annotation with segwit_addr.py 2019-03-20 12:05:35 +00:00