Commit graph

13654 commits

Author SHA1 Message Date
Steven Roose
6d00035cae
Merge #778: Remove 'bitcoin' from address descriptions
e92ac19a4 Remove 'bitcoin' from address descriptions (Gregory Sanders)

Pull request description:

  fixes https://github.com/ElementsProject/elements/issues/777

  Alternative would be to have the `-chain` name be put there, but honestly seems overkill.

Tree-SHA512: a54e95f0755134fc6a1df51962a82957678d777406bda62a3f11359f52b8d72cd8c5199248f764ffbcf888b343737801d4ba19a58181a9b41bd4d3e5db656230
2019-11-26 11:07:09 +00:00
Steven Roose
45f04d9753
Merge #784: Fill out expected liquidv1 chain size
547a2f7bd Fill out expected liquidv1 chain size (Gregory Sanders)

Pull request description:

  fixes https://github.com/ElementsProject/elements/issues/765

Tree-SHA512: 7ea4ac2850b086f2aeee1065b308ab6505ff7c4af559242062e88f1db5891f1c6ca0c26f97a5a1c90f8eee284a66ffc9f31d422962f6efa6b870215fa04b955f
2019-11-26 11:05:17 +00:00
Steven Roose
4d5bd19fa0
Merge #785: Fix QR address display for blinded base58 addrs
d837ac40c Fix QR address display for blinded base58 addrs (Gregory Sanders)

Pull request description:

  fixes https://github.com/ElementsProject/elements/issues/763

Tree-SHA512: aea0a9f4211688fde55600f213f375f9117c06519952e656275ec4aca8d132b15718d99cbcdc63547e04f981ad33c75104c416bc7262a3ae6dad0774ca1138f9
2019-11-26 11:02:09 +00:00
Andrew Chow
ead03a8a19 Make balances in overview scrollable 2019-11-21 17:22:42 -05:00
Andrew Chow
3743ff53b7 Set the vertical layout in .ui file instead of programatically 2019-11-21 13:26:05 -05:00
Gregory Sanders
d837ac40c6 Fix QR address display for blinded base58 addrs 2019-11-19 10:47:59 -05:00
Gregory Sanders
547a2f7bdf Fill out expected liquidv1 chain size
Currently it is 1.1 GB according to my local machine.

Overshooting by 3x to account for growth.
2019-11-19 10:30:40 -05:00
Steven Roose
ccf6697e3b
Merge #780: Change elements mode to activating BIP9 signaling based on height
6fc3fe04e Change elements mode to activating BIP9 signaling based on height (Gregory Sanders)

Pull request description:

  When based on block time, it's really hard to engineer principled tests for activation of consensus changes.

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

Tree-SHA512: c5672d54a3a906d1318c82197022b9effd39e951e3f9e5ca4dc92055f2fa638a6359797662014c4928be25795ddd6b3f401769d53a967cf08d4f564210926773
2019-11-14 11:40:50 +00:00
Gregory Sanders
6fc3fe04ef Change elements mode to activating BIP9 signaling based on height 2019-11-13 16:07:29 -05:00
Gregory Sanders
e92ac19a45 Remove 'bitcoin' from address descriptions 2019-11-13 10:55:25 -05:00
Gregory Sanders
6ba90ef1e7 commit_data is entirely optional 2019-11-13 10:04:37 -05:00
Gregory Sanders
fd5ec4bff6 HF: Simplify legacy->dynafed transition max sig size 2019-11-08 14:07:07 -05:00
Gregory Sanders
7b15b4802c HF: Publish full dynafed block no matter epoch age 2019-11-08 14:07:01 -05:00
Gregory Sanders
1d7847305c HF: Dyanfed pruned header now has extra root 2019-11-08 14:07:01 -05:00
Steven Roose
08023b0b4e
Merge #770: Revert errant line change committed in bf66a93cbd
610d8d7af Revert errant line change committed in bf66a93cbd (Gregory Sanders)

Pull request description:

  …b25293e277

Tree-SHA512: 62b2080d75dcb7e3a182be4f184f82150233711356b16d6a538a8cd793d8adc48cd5d47113242e06379a4fa4821fbab4bf9a439e1614de67617a9af73980552d
2019-11-05 17:36:59 +00:00
Gregory Sanders
610d8d7afa Revert errant line change committed in bf66a93cbd 2019-11-05 12:29:50 -05:00
Steven Roose
53afce3b0b
Merge #769: Correctly seed the liquidv1 paklist pre-dynafed
bf66a93cb Correctly seed the liquidv1 paklist pre-dynafed (Gregory Sanders)

Pull request description:

  Currently PAK is blank for anyone running on liquidv1 network. This is wrong.

  No PAK list changes are expected prior to dynafed roll-out, so this should remain constant until activation.

Tree-SHA512: eef819c62ee887fdb36b194e52f896306e567a9e7a059fec0620c87b9e126f594a78128e7beec7e86c00976b180c7ea43412a7bb123c3f50e4800d3c837b7f6b
2019-11-05 16:49:07 +00:00
Steven Roose
5d3b7eb9f8
Merge #768: When RPC server disabled, only warn on validatepegin failure
674f3c747 When RPC server disabled, only warn on validatepegin failure (Gregory Sanders)

Pull request description:

  QT starts up normally, and fails when `-server=1` is set, and continues otherwise, by turning off peg-in validation.

  This should be tested on liquidv1 with fresh syncs.

Tree-SHA512: acf188b2eead8db2f2b8d92ae90b510a05e6ab15639249917a3fb99bf3ec48b3d741e372a4bfcf44b8c632d199e56070bbfe1f6a69ef1c991f126b4d34b218a8
2019-11-05 16:35:43 +00:00
Gregory Sanders
bf66a93cbd Correctly seed the liquidv1 paklist pre-dynafed 2019-11-05 10:39:22 -05:00
Gregory Sanders
674f3c7473 When RPC server disabled, only warn on validatepegin failure 2019-11-05 09:06:56 -05:00
Gregory Sanders
b334392946
Merge #758: dynaParamsToJSON: No lock required
304bdf943 dynaParamsToJSON: No lock required (Gregory Sanders)

Pull request description:

Tree-SHA512: 208ea9f00cda6e717e2ed1840b8eba3c33357bf04119608c005ea7f51ad7cf7882bcedb6659d217941f1b084bcf6a9af21339462f6b3891ccf28f131c7f0814f
2019-10-28 16:00:35 -04:00
Gregory Sanders
304bdf9431 dynaParamsToJSON: No lock required 2019-10-28 14:09:25 -04:00
Gregory Sanders
6d9639b211 getnewblockhex: Take data push for arbitrary data in block coinbase commitment 2019-10-28 09:11:05 -04:00
Gregory Sanders
0d2832a6d1
Merge #741: Allow specifying peg-in data in createrawtransaction
5a4d61169 Test raw transaction peg-in (Andrew Chow)
ac6f052a6 Have find_vout_for_address only get non-confidential address when using elements chain (Andrew Chow)
cefe40767 Allow specifying peg-in info in raw transaction RPC inputs (Andrew Chow)
42babb81f Refactor peg-in input construction into its own function in rpc/rawtransaction.cpp (Andrew Chow)
a90d1521c Refactor peg-in witness construction to it's own function (Andrew Chow)

Pull request description:

  Adds to `createrawtransaction` the fields `pegin_bitcoin_tx`, `pegin_txout_proof`, and `pegin_claim_script` so that raw transactions can contain peg-in inputs too.

  Since `ConstructTransaction` is used by `createpsbt` and `walletcreatefundedpsbt` but those should not support peg-ins yet (the peg-in data should go into PSBT fields for peg-ins but those don't exist yet), an argument is added to it to optionally reject peg-in data.

Tree-SHA512: fcf3e4be87f92bfc5b00321bec405001d98615cefb76118345e0c759c6bfcb90b6050735960b6fbdbe26479fa11c9273f9963873a8adc1fbad9ed31dc7953ee0
2019-10-16 10:16:25 -04:00
Andrew Chow
cefe40767d Allow specifying peg-in info in raw transaction RPC inputs 2019-10-14 16:58:53 -04:00
Andrew Chow
42babb81f0 Refactor peg-in input construction into its own function in rpc/rawtransaction.cpp 2019-10-14 16:58:53 -04:00
Andrew Chow
a90d1521c8 Refactor peg-in witness construction to it's own function
Also changes to Use CVectorWriter instead of casting for peg-in value serialization
2019-10-14 16:06:58 -04:00
Steven Roose
06209ba03d
Merge #709: tweakfedpegscript: Optional fedpeg arg
97e46f937 tweakfedpegscript: Optional fedpeg arg (Gregory Sanders)

Pull request description:

  Might be useful for dynamic federations chains, when calculating old peg-in addresses

Tree-SHA512: 33c8f58cf020cf835640ca959f6e84dd58b59df3386fcd5ac71dee9c210028d0857acef65a02fb84888209010e41115b5c54bbb2458effc284afaf44b310c3a5
2019-10-14 16:25:43 +01:00
Gregory Sanders
bf2f1c6217 Reduce min relay to 100 sat/vkB 2019-10-14 10:17:32 -04:00
Gregory Sanders
130d190e70 Disallow implicit conversion for CFeeRate constructor 2019-10-14 10:17:32 -04:00
Gregory Sanders
36fceda4ab feefilter: Compute the absolute fee rather than stored rate to match mempool acceptance logic 2019-10-14 10:17:32 -04:00
Steven Roose
073cb3cb94
Merge #732: Give more descriptive error for non-WSH(OP_TRUE) block generation
3a2888cca Give more descriptive error for non-WSH(OP_TRUE) block generation (Gregory Sanders)

Pull request description:

  If someone transitions to a different block type, including something else op_true-ey but not exactly, `generatetoaddress` and ilk will complain without much recourse.

Tree-SHA512: 720e6888eb3985ad3619d2570b4c22985365a63d72d4a0d9b7d75d2091f6839db034d1b192a177901f0dfbb0d97cef330183438b02c6a11b64d33fe480023d88
2019-10-14 13:38:39 +01:00
Gregory Sanders
7126d1fe38 finalizecompactblock: Fix it, make test easier to fail 2019-10-10 15:46:43 -04:00
Gregory Sanders
cb90cdb7bf Fix finalizecompactblock filling in more found txs from mempool 2019-10-10 10:52:34 -04:00
Gregory Sanders
81fd79ab94
Merge #739: Take mempool locks when doing compact block RPC calls touching mempool
67a669e69 Take mempool locks when doing compact block RPC calls touching mempool (Gregory Sanders)

Pull request description:

  This may help reduce the failures in `feature_blocksign.py` that seem to occur fairly often. It could be that the mempool is in an inconsistent state, which messed up compact block finalization.

Tree-SHA512: cd066933cf58b3c57869db3fd97c2de0ff554d442e91051f43626b12778d55835065ad5fc42fed09b7750796e9e0b2e6947f1ac54e02fe4c8e2a84fe340429ae
2019-10-09 13:13:14 -04:00
Gregory Sanders
67a669e692 Take mempool locks when doing compact block RPC calls touching mempool 2019-10-09 12:11:52 -04:00
Andrew Chow
34e1350114 Use Elements PSBT magic when in Elements mode
Elements PSBTs are incompatible with normal PSBTs due to differing transaction
formats, so use different magic bytes to distinguish.
2019-10-08 14:12:04 -04:00
Andrew Chow
3fa355c767 Change Proprietary types to use the method specified in BIP 174 2019-10-08 14:04:44 -04:00
Gregory Sanders
97e46f9376 tweakfedpegscript: Optional fedpeg arg 2019-10-08 10:23:28 -04:00
Gregory Sanders
3a2888ccad Give more descriptive error for non-WSH(OP_TRUE) block generation 2019-10-08 10:22:40 -04:00
Gregory Sanders
5af17a42bc Update initpegoutwallet help to describe derivation paths properly. 2019-09-30 12:36:45 -04:00
Steven Roose
55c4c6cd20
Fix other bug in initpegoutwallet descriptor parsing 2019-09-30 17:40:33 +02:00
Steven Roose
28dac17c4d
Temp disable pegout descriptors that are not pkh() 2019-09-30 16:07:20 +02:00
Steven Roose
fdba8c45f9
Support descriptors with checksums in initpegoutwallet 2019-09-30 15:50:27 +02:00
Steven Roose
280c33f865
Merge #723: [HF] Dynafed blocks must have sighash byte
809f4acd3 Dynafed blocks must have sighash byte (Gregory Sanders)

Pull request description:

  It is not included in the signature hash.
  The sighash byte MUST be SIGHASH_ALL to avoid malleability.

Tree-SHA512: d4a658448e3a8b3609b32fc24e8d28fc65ea13021ba0b49109b6c4477253d08183ac6e77e0658f23b2630cbb916c6b19e86db241c5d7456391385a308235d0bd
2019-09-30 01:18:46 +02:00
Gregory Sanders
b1c36a8ba6
Merge #719: Add unit test for dynafed CalculateRoot methods
6650067bb Add unit test for dynafed CalculateRoot methods (Steven Roose)

Pull request description:

  I created these for having test vectors for rust-elements, but it makes sense to have them around so that we don't accidentally change them.

Tree-SHA512: 1e6fef4a09e1ab15cf462858c83e65c1224b15e14aa73b7ae1788b74aca3c2c46147affb44a1a1a64bf8c4ff7f57f3859e220652f4ea2ab5ff14738a33ab756a
2019-09-27 15:29:28 -04:00
Gregory Sanders
809f4acd3b Dynafed blocks must have sighash byte
It is not included in the signature hash.
The sighash byte MUST be SIGHASH_ALL to avoid
malleability.
2019-09-27 14:43:50 -04:00
Gregory Sanders
85de70cdfa Don't activate dynafed like custom chains 2019-09-26 09:06:31 -04:00
Gregory Sanders
b73ff4ccfe Fix liquidv1 sync
A single field wasn't given a positive value which
meant it considers no peg-ins to be valid.
2019-09-26 09:06:31 -04:00
Steven Roose
6650067bb3
Add unit test for dynafed CalculateRoot methods 2019-09-26 00:47:58 +02:00