Commit graph

12534 commits

Author SHA1 Message Date
Luke Dashjr
f5fb840cdb GUI: Overview: Show all assets in balances 2019-04-09 10:33:24 -04:00
Luke Dashjr
6342d80d7f GUI: Add GUIUtil::formatMultiAssetAmount to handle a CAmountMap 2019-04-09 10:19:33 -04:00
Luke Dashjr
988ed5effc GUI: Abstract asset+amount formatting into new GUIUtil::formatAssetAmount 2019-04-09 10:07:17 -04:00
Luke Dashjr
89275ebf21 GUI: TransactionRecord: Special-case the common scenario where assets are simply issued to myself 2019-04-09 09:48:00 -04:00
Luke Dashjr
906cc4c40b Wallet: GetIssuanceAssets to get CAmountMap for issuances 2019-04-08 16:04:35 -04:00
Luke Dashjr
4ea8f88274 GUI: TransactionRecord: When time/index/etc match, sort fee, issuance, send, then receive 2019-04-08 15:59:33 -04:00
Luke Dashjr
51e789722f GUI: TransactionRecord: Add asset issuance record type 2019-04-08 15:54:35 -04:00
Gregory Sanders
e6b3676b37 Wallet: GetIssuanceAssets to just get CAssets for issuances 2019-04-08 15:27:03 -04:00
Luke Dashjr
2bcd24313d GUI: Overview: Use formatted amount text from TransactionTableModel 2019-04-08 11:39:55 -04:00
Luke Dashjr
eef551a588 GUI: TransactionTableModel: Remove bitcoin unit from Amount column header 2019-04-08 11:39:15 -04:00
Luke Dashjr
19c87c0ae7 GUI: TransactionTableModel: Include unit name with formatted amount 2019-04-08 11:37:07 -04:00
Luke Dashjr
a582fe03e4 GUI: TransactionRecord: Turn non-bitcoin fees into entries 2019-04-08 11:30:26 -04:00
Gregory Sanders
ef2f717e67 GUI: TransactionRecord: Add asset field 2019-04-08 11:24:23 -04:00
Luke Dashjr
060ad2f566 GUI: TransactionRecord: Collapse credit+debit fields to just amount 2019-04-08 11:13:31 -04:00
Luke Dashjr
0aeab14f75 GUI: Ignore explicit fee output when determining if a transaction is send-to-self 2019-04-08 11:09:16 -04:00
João Barbosa
1655947c15 gui: Alternate row background based on txid
Github-Pull: bitcoin/bitcoin #12578
Rebased-From: 264f9c4d4f7c1aeb3e89eedddcd88e47e8bba938
2019-04-08 11:02:53 -04:00
João Barbosa
3edcdf8f0b gui: Add transaction record type Fee
Github-Pull: bitcoin/bitcoin #12578
Rebased-From: 550f1f3d3498d051ab94afdc0b9fb883c0655b99
2019-04-08 11:02:37 -04:00
João Barbosa
41c8d4c89c gui: Avoid TransactionRecord instance for IsMine outputs
Github-Pull: bitcoin/bitcoin #12578
Rebased-From: 82dd3e0ffa0af629a34b28ed7eca4027e0376756
2019-04-08 10:24:05 -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
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
Gregory Sanders
fa9841b5cf Fix a few Bitcoin server strings 2019-04-02 08:42:04 -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
6e2751c151
Merge #545: fix vector length calculation for targets in BlindTransaction
93f49ed81 fix vector length calculation for targets in BlindTransaction (Dmitry Petukhov)

Pull request description:

  port of https://github.com/ElementsProject/elements/pull/514

Tree-SHA512: 5e082bb2590c1dde70b67607524d974f435f673777459b638ca10193040b45239fcb4302cc47d4aa7dbd0a25627294e7ca4f11658a4e41cfcd001c8ca51faf3b
2019-04-01 10:24:53 +01: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
Dmitry Petukhov
93f49ed814 fix vector length calculation for targets in BlindTransaction
the size of surjectionTargets and targetAssetGenerator vectors
was calculated as tx.vin.size()*3, based on the fact that for
each input there might also be up to 2 issuance pseudo-inputs,
but did not take into account that the number of auxiliary generators
may exceed the number of inputs. This fixes the size calculations
by taking into account auxiliary generators supplied beyond vin size.
2019-03-28 16:58:31 -04:00
Gregory Sanders
870e41609e Enforce coinbase maturity on bitcoin peg-ins 2019-03-28 16:27:18 -04:00
Gregory Sanders
0baa13581e Only check 1 in 1000 block header sigs on load 2019-03-27 14:42:27 -04:00
Gregory Sanders
87c06d4091 Save some space, maintain compatibility with elements-0.14 header index 2019-03-27 13:54:19 -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
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
3c8206a36c
Merge #525: [0.17] Disallow extended encoding for non-witness transactions
e11c6f5 Disallow extended encoding for non-witness transactions (Pieter Wuille)

Pull request description:

  backport of https://github.com/ElementsProject/elements/pull/402 which is a backport of upstream

Tree-SHA512: 01cccbc0d54a9f039ed16c88f1d9ec7ebac3a936fb4a77e664c9103e06bb142741a743ac980887ec16570429ccc0f9614e5b3076084b1c949190b3169844ed7d
2019-03-21 13:37:34 -04:00
Pieter Wuille
e11c6f5580 Disallow extended encoding for non-witness transactions 2019-03-21 15:50:35 +00:00
Gregory Sanders
5273ed5bec Default to mainnet cookie for liquidv1 2019-03-21 10:43:20 -04:00
Gregory Sanders
8ea52eec38 Default to elementsregtest 2019-03-21 10:43:20 -04:00
Gregory Sanders
4ea4401e93
Merge #516: [0.17] Fix progress reporting issue
5b8c79a Fix progress reporting issue (Steven Roose)

Pull request description:

  Based on https://github.com/ElementsProject/elements/pull/515

  Reimplementation of https://github.com/Blockstream/liquid/pull/6

Tree-SHA512: 292be614802d0ca74bc9a19080bce46812bc4d5c386ed01f87e74898830946276359100d404868dda8fd4b4087699a9be804370a8ad387c7d92f4a3f5572d0b0
2019-03-21 08:09:25 -04: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
928c756171
Merge #517: [0.17] backport "Validation: stop logging fake pow data"
a657da0 Validation: stop logging fake pow data (Sjors Provoost)

Pull request description:

  Based on #515.

  Backport of https://github.com/Blockstream/liquid/pull/8

Tree-SHA512: 0f81430ca9905c4aa9b9e50ee3cd5a856132cc641dbc3346f982c2d5a023ab83cf68b64a3008f1adbda52d277d4357ed2d89e8ed6335c6288294fe5275743ba0
2019-03-21 07:11:12 -04: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
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
Sjors Provoost
a657da02a7
Validation: stop logging fake pow data 2019-03-20 23:05:15 +00:00
Steven Roose
ac642808ab
Set correct ports for Liquid network params 2019-03-20 22:10:03 +00:00
Gregory Sanders
6491b4da5d Use upstream Shuffle which doesn't cause DEBUG panic 2019-03-20 16:59:03 -04:00
Gregory Sanders
1f062da26c Fix compilation of certain builds 2019-03-20 13:20:49 -04:00
Gregory Sanders
7d86c7d976 remove leftover asset debug printing 2019-03-20 13:01:18 -04:00