Commit graph

621 commits

Author SHA1 Message Date
Gregory Sanders
feef196a20 Fix compilation of raw transaction operations with peg-in inputs 2019-09-05 10:51:09 -04:00
Gregory Sanders
953dd82eae p2sh-wrap peg-in addresses if fedpeg_program is p2sh-wrapped 2019-09-05 10:51:09 -04:00
Gregory Sanders
bd11097cec Add fedpeg_program field in dynafed header 2019-09-05 10:51:09 -04:00
Gregory Sanders
dddc040aa0 s/m_dyna_params/m_dynafed_params/ 2019-09-05 10:51:09 -04:00
Gregory Sanders
47db75e39f Dynafed RPC support, tests, and deployment for custom chains 2019-09-05 10:51:09 -04:00
Gregory Sanders
525b24cf5c Expose fedpeg fetching to consensus and mempool internals 2019-09-03 10:55:29 -04:00
Gregory Sanders
802a055191 ScriptHasValidPAKProof takes fedpeg as arg 2019-09-03 10:55:06 -04:00
Gregory Sanders
d35bf08210 Fix sendtomainchain with pak when subtracting fee from output 2019-08-30 11:35:43 -04:00
Glenn Willen
3127c65615 Add legacy help text for walletprocesspsbt suggesting to use new RPCs instead. 2019-07-31 10:50:03 -07:00
Glenn Willen
d39925b08a Disable PSBT RPCs when not in g_con_elementsmode. 2019-07-31 10:50:03 -07:00
Glenn Willen
2848b520b2 PSBT for Confidential Assets 2019-07-31 10:50:03 -07:00
Akio Nakamura
254b166574 [rpc]blindrawtransaction accepts more commitments 2019-07-05 19:07:26 +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
Steven Roose
cc49106514
Update getnewaddress help message with "blech32" special case 2019-06-17 10:41:09 +01:00
Steven Roose
a9f589b9ec
Add support for blinding pegin transactions
Both via blindrawtransaction and rawblindrawtransaction.
2019-06-13 16:58:50 +01:00
Steven Roose
bf0cc83ba3
Add confidential assets values to listunspent documentation 2019-06-13 16:58:47 +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
408912290a Better explain the 8-decimal asset issuance. 2019-06-07 10:01:36 +02:00
Steven Roose
1b78b9f222
Merge #636: have peg-in witness creation strip witness for space savings
7737d29b7 have peg-in witness creation strip witness for space savings (Gregory Sanders)

Pull request description:

  Cheaper peg-in witness for those with segwit transactions in Bitcoin.

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

Tree-SHA512: defc4f38b2456c6f45cf2ebd48a3d5f9e39544bd048606257ef6cf90623595c159f61e3df56845fb7a37a44b5019614e692663978a9664dd9b4d01b77bedeb86
2019-06-05 10:46:33 +01:00
Steven Roose
c29771437e
Merge #625: Disallow issuance calls in bitcoin mode
5de1e3f9d Disallow issuance calls in bitcoin mode (Gregory Sanders)

Pull request description:

  Enough people are running `-regtest` and getting confused as to why they cannot issue assets to make some checks worth it even though we don't intend people to run bitcoin mode at all.

Tree-SHA512: cb595839d01a000b5a48be4ae5c7084a687bb5c252be8f812f56455082ed78e66cb15313ab15934941cd403040ae253d8270faf6e85995d5caa0d1a66ccd3c6c
2019-06-05 10:40:15 +01:00
Gregory Sanders
7737d29b72 have peg-in witness creation strip witness for space savings 2019-05-28 11:52:57 -04: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
473e1e9ca1
MERGE-FIX: Fix compatibility functional tests 2019-05-22 16:54:46 +01:00
Steven Roose
52f6f6905b
WIP: Fix compilation after merge 2019-05-20 16:22:05 +01:00
Gregory Sanders
5de1e3f9d5 Disallow issuance calls in bitcoin mode 2019-05-20 07:45:42 -04:00
Steven Roose
f4889a5253
UPSTREAM MERGE BROKEN: Merge upstream commit '519b0bc5dc' into master 2019-05-17 16:17:09 +01:00
Steven Roose
d21e0563c1
Address some linter complaints 2019-05-15 17:30:04 +01:00
Steven Roose
ad3d496d78
Add extra lock check for OSX build
Apparently my upstream checkpoint was in the middle of a series of
commits by ianofsky separating wallet from the main code.  This means
that I have to add this main lock which will be replaced by the
locked_chain interface in a subsequence catchup.
2019-05-15 17:30:02 +01:00
Steven Roose
dc900eb7d7
Merge branch 'master' into catchup 2019-05-14 16:49:18 +01:00
Steven Roose
48a82fa993
Make claimpegin fail in the case of a double claim
Currently it will commit to the transaction without it being able to
enter the mempool. This makes the block creation code include the tx
into the block and create an invalid block.
2019-05-08 15:35:58 +01:00
Steven Roose
50c557083d
Report IsValidPeginWitness error message 2019-05-07 20:13:42 +01:00
Steven Roose
9f4f2e7519
MERGE-FIX: Fix compilation errors 2019-05-03 17:46:12 +01:00
Steven Roose
7f894ae00b
UPSTREAM MERGE BROKEN: Merge commit 'f617e05c38' into master 2019-05-01 19:18:18 +01:00
Gregory Sanders
a9cbe55309 refactor getpeginaddress to not call getnewaddress RPC 2019-05-01 10:54:06 -04:00
Gregory Sanders
cdb33e5214 createrawpegin should look for wpkh addresses, not nested 2019-05-01 10:54:06 -04:00
Gregory Sanders
7fd6b88c97 claimpegins should arrive in witness destinations 2019-04-19 07:39:32 -04:00
Gregory Sanders
1cccb6ebb8 Add a couple comments on (re)issueasset to let users know about raw versions 2019-04-13 14:59:03 -04:00
Gregory Sanders
410d5fa083 sendtomainchain_base should be decoding parent destination 2019-04-10 14:18:48 -04:00
Steven Roose
030811b8f2
Don't blind with blinding factors that aren't ours 2019-04-03 21:31:11 +02: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
Gregory Sanders
9acbd24360 Make new actually working master blinding calls, test 2019-03-29 13:20:26 -04:00
Gregory Sanders
870e41609e Enforce coinbase maturity on bitcoin peg-ins 2019-03-28 16:27:18 -04:00
Steven Roose
e1cd00cc6c Change branding from bitcoin to elements 2019-03-22 10:12:04 +00:00
Steven Roose
ade539cbb4 Don't assume mainchain is Bitcoin 2019-03-21 19:30:52 +00:00
Steven Roose
aba54b3f92
Make validatepegin default to true if has parent chain 2019-03-21 17:55:02 +00:00
Gregory Sanders
efd6164af2
Merge #518: [0.17] Manual pak RPC calls
3f6f7b3 Add getpegoutkeys RPC call (Gregory Sanders)
4d486e6 add generatepegoutproof RPC call (Gregory Sanders)

Pull request description:

  These aid in integration testing allowing the caller to sends funds wherever.

Tree-SHA512: 3eaade83256df892604974a6f528d1fbadaae8f4e5c382a58ca74a1f422432c182ae64aa047306d4942eb3d7880f035e38cc3f9eccb8aa7d872345e7544ef81e
2019-03-21 08:01:47 -04:00
Gregory Sanders
3f6f7b3f5a Add getpegoutkeys RPC call 2019-03-21 06:55:09 -04:00
Gregory Sanders
4d486e6a7b add generatepegoutproof RPC call 2019-03-21 06:45:39 -04:00
Stefan Liu
831319e264
Remove comma for claimpegin in command line help info
When calling this method(`claimpegin`) with liquid-cli, we don't commas between parameters.
2019-03-20 23:07:09 +00:00
Gregory Sanders
7d86c7d976 remove leftover asset debug printing 2019-03-20 13:01:18 -04:00