Commit graph

1464 commits

Author SHA1 Message Date
Glenn Willen
2848b520b2 PSBT for Confidential Assets 2019-07-31 10:50:03 -07:00
Akio Nakamura
d584b65c18 [test]decrese num of inputs on partial blind test 2019-07-05 19:10:11 +09:00
Akio Nakamura
7b0b52f816 [RPC]Add assetlabel support to some commands
Remain the support of assetlabel parameter that was previously present.

1. sendtoaddress
 Print 'optional' explicitly in the help text.↲
2. getreceivedbyaddress
 Add the 3rd parameter as "assetlabel"
 Print 'optional' explicitly in the help text.↲
3. getreceivedbylabel
 Add the 3rd parameter as "assetlabel"
 Print 'optional' explicitly in the help text.↲
4. getbalance
 Set the name of 4th parameter as "assetlabel".
 Print 'optional' explicitly in the help text.↲
5. listreceivedbyaddress
 Set the name of 5th parameter as "assetlabel".
 Enable assetlabel selection to the result of amounts.
 Print 'optional' explicitly in the help text.↲
6. gettransaction
 Add the 3rd parameter as "assetlabel"

notice) Also getwalletinfo had a parameter to specify "assetlabel".
But no need to add a parameter because the command is a catch-all one.
2019-06-25 18:36:39 +09:00
Gregory Sanders
7b302eb99d
Merge #663: Add support for blinding pegins
cc49106 Update getnewaddress help message with "blech32" special case (Steven Roose)
56358b8 Add tests for blinding pegin transactions (Steven Roose)
a9f589b Add support for blinding pegin transactions (Steven Roose)
bf0cc83 Add confidential assets values to listunspent documentation (Steven Roose)
4e84596 Always return blind address for "blech32" type (Steven Roose)

Pull request description:

  Adds pegin handling support for `blindrawtransaction` and `rawblindrawtransaction`.

Tree-SHA512: 1138aeedd2d5852108abd53a6afc83524e5f06ad3ab770fd8ab37c97c8dd5c49f78b8d44bdf7cbe2c073e07cd8566bf032526ab6488e99fc02f8b5b154a3fde1
2019-06-21 11:05:24 -04:00
Steven Roose
f9d159ba3a
Don't assert on user-inputed values
This prevents the assertion from crashing the node when an RPC user
enters invalid blinding factors.
2019-06-14 15:52:11 +01:00
Steven Roose
56358b8c0e
Add tests for blinding pegin transactions 2019-06-13 17:03:50 +01:00
Steven Roose
4e84596892
Always return blind address for "blech32" type
Even when -blindedaddresses=0.
2019-06-13 16:58:45 +01:00
Gregory Sanders
25b2674fd6 Expose pegin confirmation depth parameter via getsidechaininfo 2019-06-07 11:56:08 +02:00
Gregory Sanders
d8247a4143
Merge #640: Alias "blech32" to "bech32" for address creation
825a0da Alias "blech32" to "bech32" for address creation (Steven Roose)

Pull request description:

  Closes #631

Tree-SHA512: 7a372cb0c84466dea9654d743b478b64548d8178ef0d60e5b085efacdf592d46cc3b22abef102c430226dc2e96a86fe8c0ba2a014480ab3962c951b1cc95316c
2019-06-05 11:27:35 +02:00
Steven Roose
0a6f0551d2
Rename -con_connect_coinbase to -con_connect_genesis_outputs 2019-06-05 10:02:41 +01:00
Steven Roose
825a0da92d
Alias "blech32" to "bech32" for address creation
This is technically not 100% correct since if blinded addresses are
turned off, it will create a normal address for "blech32".
But it's the simplest thing to do.
2019-05-30 19:09:07 +01:00
Steven Roose
3c0f3d7bc7
Disable feature_notifications functional test 2019-05-30 15:14:48 +01:00
Steven Roose
de81c0d97e
MERGE-FIX: Fix linter (mostly RPC help)
I also moved some RPC methods that were not at the end of the file with
the other ELEMENTS RPC methods. This makes the diff on my machine look
crazy. Let's hope GitHub has more intelligent diffs..
2019-05-27 17:40:16 +01:00
Steven Roose
efe4e8ff04
MERGE-FIX: Fix functional tests 2019-05-24 17:11:47 +01:00
Steven Roose
f4889a5253
UPSTREAM MERGE BROKEN: Merge upstream commit '519b0bc5dc' into master 2019-05-17 16:17:09 +01:00
Steven Roose
872d39fbe8
Prevent Travis from failing when tests are disabled 2019-05-15 09:11:14 +01:00
Steven Roose
4ed0bb36b4
Fix dead-code linter issues 2019-05-14 20:59:06 +01:00
Steven Roose
dc900eb7d7
Merge branch 'master' into catchup 2019-05-14 16:49:18 +01:00
Steven Roose
bf4f1d0094
MERGE-FIX: Disable p2p_invalid_messages tests to fix later 2019-05-14 15:10:18 +01:00
Steven Roose
ee0e510f30
MERGE-FIX: Fix other functional tests 2019-05-14 15:09:22 +01:00
Steven Roose
5492cefcc6
MERGE-FIX: Fix fedpeg and pak tests for 0.18.0 2019-05-14 15:09:20 +01:00
Steven Roose
1a2a93a5ff
MERGE-FIX: General fixes for functional tests 2019-05-14 15:09:19 +01:00
Gregory Sanders
cd0a56a5d1
Merge #621: Make fedpeg test compatible with bitcoind v0.18.0 parent
2939b5d Make fedpeg test compatible with bitcoind v0.18.0 parent (Steven Roose)

Pull request description:

Tree-SHA512: c1fd6f0acf53957e1bb3df4ae87081b875b52046118fba1c79b279a3bfa672ce344225bac2d3eacdbae6b681d5fa48147ddd7aa8b92181049ab60acea804aa3b
2019-05-14 09:32:13 -04:00
Gregory Sanders
879b64b010
Merge #607: Fix default permitsigdata value not working on converttopsbt command
794c305 Test that default `permitsigdata` is false (Steven Roose)
c8525c9 Fix bug in converttopsbt (Steven Roose)

Pull request description:

  We're not really supporting PSBT for Elements yet. The `rpc_psbt.py` integration test is disabled because of this; that's also why we didn't catch this. It's fixed upstream.

  I added an extra test to catch the error, but it's not actually executed.

  @instagibbs, up to you to decide if it's worth having this patched right now. I cherry-picked that fix commit literally from the catchup PR I'm working on, so if we don't patch it here, it will get patched while catching up.

Tree-SHA512: 2ee9ed733659c028f349b75aba19b80cef13894eacb0d85d0ab4377ee9e07b4aa90888edb402a5c31784f5d0848a0f22a445736995d9a6fca0bbeccf15f75dcb
2019-05-14 09:31:29 -04:00
Steven Roose
2939b5d41e
Make fedpeg test compatible with bitcoind v0.18.0 parent 2019-05-14 13:36:15 +01:00
Steven Roose
52ef28305f
Improve the fedpeg test with extra double claim tests
- changes the expected behavior of claimpegin to fail on double spend
- adds extra test to make sure a block with a double spend is also not
  accepted:
  1. a tx with two identical pegin inputs (mempool & block)
  2. a tx claiming a pegin that another mempool tx also claims
  3. a tx claiming a pegin that a confirmed tx already claimed (mempool
     & block)
2019-05-08 15:50:03 +01:00
Steven Roose
794c305cdd
Test that default permitsigdata is false 2019-05-03 14:42:53 +01:00
Steven Roose
7f894ae00b
UPSTREAM MERGE BROKEN: Merge commit 'f617e05c38' into master 2019-05-01 19:18:18 +01:00
Gregory Sanders
b919ca3d93 fedpeg test makes sure claim_script is wpkh 2019-05-01 10:54:06 -04:00
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