Commit graph

261 commits

Author SHA1 Message Date
Gregory Sanders
0328059a69 add optional subtract fee argument to sendtomainchain 2018-04-05 14:12:04 -07:00
Gregory Sanders
b628d91894 make peginconfirmationdepth a chain param 2018-03-28 12:47:25 -04:00
Gregory Sanders
e348f8248e simplify non-depth peg-in validity checking 2018-03-28 10:01:14 -04:00
Gregory Sanders
248eb9157b add better reject reason for immature peg-in, with test 2018-03-26 18:11:38 -04:00
Gregory Sanders
81ac5a670e correctly account for witness data in peg-in fee calc, add test 2018-02-23 11:29:49 -06:00
Gregory Sanders
28b20e406f
Merge #281: re-add transaction comments to univalue returns
7e954d1 re-add transaction comments to univalue returns (Gregory Sanders)
2018-01-05 14:23:28 -05:00
Gregory Sanders
0f9e9fd2c5
Merge #284: fix help text for listunspent asset filter
4ac6a67 fix help text for listunspent asset filter (Gregory Sanders)
2017-11-29 10:41:11 -05:00
Gregory Sanders
7c7e23b898 HF: peg-in outputs in parent chain are p2sh-pw2sh 2017-11-07 17:34:12 -05:00
Gregory Sanders
6cc380a525 don't require claim_script to be witness program for raw claim pegin 2017-11-06 10:54:51 -05:00
Gregory Sanders
7dc4f9d442 remove CNumScript from pegin witness logic 2017-11-06 10:54:51 -05:00
Gregory Sanders
abafbacd82 change rpc test witness_program to claim_script 2017-11-06 10:54:51 -05:00
Gregory Sanders
13c3dad52f de-dupe calculate_contract code 2017-11-06 10:54:51 -05:00
Gregory Sanders
6e8e6b2de8 add wallet support for pegging functionality 2017-11-06 10:54:50 -05:00
Gregory Sanders
65ed777e6e remove legacy peg-in/withdrawlocks 2017-11-06 09:51:45 -05:00
Gregory Sanders
4ac6a671e9 fix help text for listunspent asset filter 2017-10-16 14:05:01 +02:00
Gregory Sanders
7e954d1503 re-add transaction comments to univalue returns 2017-10-10 11:55:43 -04:00
tdudz
d3a48d59e3 changed elements serialization to new style with no marker 0x00 byte and witness data at the end 2017-10-08 11:36:05 -04:00
Gregory Sanders
b76b0b2270 Change network settings commitment to sha2, include in asset type def 2017-08-24 15:28:44 -04:00
Gregory Sanders
8c1ba39a02 Replace static BITCOINID with generated pegged_asset using standard issuance derivation 2017-08-24 14:30:35 -04:00
Gregory Sanders
ae1f058433 Only use chainparams to access BITCOINID as pegged_asset 2017-08-24 14:30:35 -04:00
Gregory Sanders
f400def229 Don't use pointers for CReserveKeys 2017-08-08 10:38:45 -04:00
Gregory Sanders
b8aa6eb0ff Merge pull request #216 from AkioNak/fix-rpc-listissuances
listissuances should outputs asset/tokenamount as -1 if the asset is blinded.
2017-07-19 08:39:52 -04:00
Akio Nakamura
e491e5bdff fix listreceivedbyaddress to sum amounts for each asset. 2017-07-18 16:48:11 +09:00
Akio Nakamura
da8b6c1d4b listissuances returns asset/tokenamount as -1 if the asset is blinded. 2017-07-18 15:08:16 +09:00
Gregory Sanders
1e1366b68d various rpc help and return fixes 2017-07-11 10:02:40 -04:00
Gregory Sanders
0e7d8db1d0 replace serValue/valuecommitment with amount(commitment) 2017-07-07 15:52:31 -04:00
Gregory Sanders
26a4cc349b return assetblinder in listunspent 2017-07-06 12:03:44 -04:00
Akio Nakamura
47e1686e50 Remove redundant code (issueasset) 2017-07-04 16:56:03 +09:00
Akio Nakamura
df676164d6 Fix help text in wallet/rpcwallet.cpp 2017-06-29 18:05:15 +09:00
Akio Nakamura
994e79c06d change type of vin to numeric in issueasset response. 2017-06-24 08:57:50 +09:00
Gregory Sanders
d77ad7385a Use wallet to find compatible pegin sidechain_address by default during claimpegin 2017-06-16 13:43:40 -04:00
Gregory Sanders
917e3177b4 Disable claimpegin during IBD 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
71c8ac0589 fundraw may add more than 1 change output for multiasset txn 2017-06-16 12:02:37 -04:00
Gregory Sanders
0d7c6d4f7f Disable changePosition arguments functionality, only used in fundraw 2017-06-16 12:02:37 -04:00
Gregory Sanders
9bba66aa04 remove extraneous blinder returns for WalletTxToJSON 2017-06-16 12:02:36 -04:00
Karl-Johan Alm
5157fc17ba [rpc] Include the name of the asset in error message when the asset cannot be identified. 2017-06-16 12:02:36 -04:00
Gregory Sanders
fef9ca4843 audit log asset blinder info and issuance blinder info 2017-06-16 12:02:36 -04:00
Gregory Sanders
31bc28858d show assetlabel in listunspent if set 2017-06-16 12:02:36 -04:00
Gregory Sanders
46e13e2aa9 blindrawtransaction takes auxiliary generator args 2017-06-16 12:02:36 -04:00
Gregory Sanders
a08d6fbc6a getbalance "*" adds issuances to mapBalance since there is no corresponding receipt in previous transaction. 2017-06-16 12:02:36 -04:00
Gregory Sanders
8b41ac4b98 policyAsset instead of BITCOINID for fee in getbalance 2017-06-16 12:02:36 -04:00
Gregory Sanders
bc5b2b383f remove out of date help for assetlabel wildcard 2017-06-16 12:02:36 -04:00
Gregory Sanders
171cbf8b98 add {dump, import}issuanceblindingkey functionality 2017-06-16 12:02:36 -04:00
Gregory Sanders
d33fbcc631 add listissuances rpc call 2017-06-16 12:02:36 -04:00
Gregory Sanders
56ba0e5378 add reissueasset rpc call 2017-06-16 12:02:36 -04:00
Gregory Sanders
f37db5e608 add issueasset rpc call 2017-06-16 12:02:36 -04:00
Gregory Sanders
984967c40e Update wallet infrastructure to support blinding issuances 2017-06-16 12:02:35 -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
5f90417261 CA: Decouple CWallet from CAssetsDir
Remove:

- std::vector<CAsset> GetKnownAssets() const;
- std::string GetLabelFromAsset(const CAsset& id) const;
- CAsset GetAssetFromLabel(const std::string& label) const;
2017-06-16 12:02:35 -04:00