Commit graph

20560 commits

Author SHA1 Message Date
Phil McLean
366befb0aa Add homebrew tools required for image manipulation
- libicns provides png2icon
- imagemagick provides convert
2020-03-30 14:24:44 -07:00
Steven Roose
3c029f42bd
Merge #840: Remove the min(max( construction for the ct_exponent argument
edfa40eb6 Remove the min(max( construction for the ct_exponent argument (Steven Roose)

Pull request description:

  As per @dgpv's suggestion here: https://github.com/ElementsProject/elements/pull/834#discussion_r396333202

  @dgpv could you review?

Tree-SHA512: 6c91a0a86a593f22ff42fb617aa96aeb97e2e5225e2b5b6980aa470f45ee613dab53de49dbbae20aecf7a4bf21cc005839be770917d55cfb2c9afd821c2d0231
2020-03-25 14:39:12 +00:00
Steven Roose
ac5a435247
Merge #838: Index the genesis block with txindex
fd4dcf9c7 Improve coinbase and issuance tx testing for txindex (Steven Roose)
ac9966f65 Index the genesis block with txindex (Steven Roose)

Pull request description:

  This reverts commit ed12d5df1b in which Core removed the genesis txs from the txindex.

  Since they are spendable in Elements (as opposed to Core), they should be added to the index as well.

Tree-SHA512: a9067032f80a78f5393437d287022756816a4baa6bfb8fc382d04dc7831a536dc68959a039636aa4b1bb268b2b849e67a0d4ca59abe835c2834ac358f8175e9e
2020-03-24 17:15:55 +00:00
Steven Roose
edfa40eb69
Remove the min(max( construction for the ct_exponent argument
We removed the similar construction for ct_bits in an earlier commit.
The construction is to keep the value between -1 and 18. This kind of
means that a user that inputs a value outside that range will not get an
error, but will use the value on the edge of the range instead.

It's probably better to return an error (generated by secp256k1) in the
case of invalid input.
2020-03-24 14:15:15 +00:00
Steven Roose
fd4dcf9c7c
Improve coinbase and issuance tx testing for txindex 2020-03-23 18:02:02 +00:00
Steven Roose
ac9966f655
Index the genesis block with txindex 2020-03-23 18:02:01 +00:00
Steven Roose
95602ec21f
Merge #834: Switch default bits of hiding to 52
c780a5186 nit: Comment in blind_tests.cpp was wrong (Steven Roose)
e87b39040 Some readability improvements in blind.cpp (Steven Roose)
26e5490e8 Switch default bits of hiding to 52 (Gregory Sanders)

Pull request description:

  Replaces https://github.com/ElementsProject/elements/pull/793 and is basically that MR but rebased. (I can't rebase on Greg's branch.)

Tree-SHA512: 2c321d7f50d1c16f73e9eafc905b3a21a1aa7a4c44a2da39b1adda7f7c12d74c0f49379c7995afe605b5c07410e8e2f0e3468826e4d246c91c8a1c2c8a03e5dc
2020-03-17 17:40:05 +00:00
Steven Roose
71d00ba8df
Merge #835: Reduce mintxfee to 0.1 sat/vbyte and fallback fee to 2 sat/vb
bfb77ad44 Reduce mintxfee to 0.1 sat/vbyte and fallback fee to 2 sat/vb (Steven Roose)

Pull request description:

  This follows the reduction of the `minrelaytxfee` in the previous release to the same value. Using this value, the wallet will be able to make transactions with a 0.1 sat/vbyte fee by default.

Tree-SHA512: a8a977e48abdb103f4514cfe92014be4e7d720d7d1626c4648d021f0cdad55ff839d0bb146158186676f4d72515b7b6112140b041de2d86f765c8f443e567560
2020-03-17 17:35:24 +00:00
Steven Roose
c780a51864
nit: Comment in blind_tests.cpp was wrong 2020-03-17 17:32:41 +00:00
Steven Roose
f6748b39a6
Merge #795: Remove outdated information about peg-in address creation pre-HD
e2a5d8adf Remove outdated information about peg-in address creation pre-HD (Gregory Sanders)

Pull request description:

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

Tree-SHA512: e7d94779f9cc7a41b1300c977b4f6dc125cb7b00abdf85b77f99fdeaeabe0ca463105aaaeb56ba8ad2f6cd799e0d813d8f84136e307d240a9c04251aacb5a4ba
2020-03-17 16:08:49 +00:00
Steven Roose
ad27fddd1f
Merge #796: Trivial: fix typo in error message when mainchain daemon is unavailable
5489e602f Trivial: fix typo in error message when mainchain daemon is unavailable (Philippe McLean)

Pull request description:

Tree-SHA512: 84c00897122e67305f6147266eca92d9794662bb386fc957a2dbe92ac044db781993fe65a8f8b5d69e0aba87d40184678e535c1364210fd8c0f729b56675e731
2020-03-17 16:07:40 +00:00
Steven Roose
bfb77ad44d
Reduce mintxfee to 0.1 sat/vbyte and fallback fee to 2 sat/vb 2020-03-17 12:47:03 +00:00
Steven Roose
e87b390409
Some readability improvements in blind.cpp 2020-03-16 20:55:42 +00:00
Gregory Sanders
26e5490e83
Switch default bits of hiding to 52 2020-03-16 20:55:37 +00:00
Steven Roose
bef78a0447
Merge #828: Add test to test unconfirmed asset balances
521e357f9 Add test to test unconfirmed asset balances (Steven Roose)

Pull request description:

  Addresses https://github.com/ElementsProject/elements/issues/827.

Tree-SHA512: 00f75d5b43b2f676b83e2929eb9b213e48ccb65f7c421f66475bf90d56a4607aa67f1f9c3edc78ced01a694c9f5e4fb3aba7a8110e15cef370fd8707958a62c5
2020-03-16 15:52:04 +00:00
Steven Roose
521e357f93
Add test to test unconfirmed asset balances 2020-03-04 15:57:07 +00:00
Steven Roose
29298ceeb6
Merge #829: initpegoutwallet: check for hardened derivation steps early
a7b41e1f7 initpegoutwallet: check for hardened derivation steps early (Gregory Sanders)

Pull request description:

  Before anything is written to wallet.

Tree-SHA512: 44d46740481aaf06a9ff774f5c0bfa750e522b19b5cf7beeae7c1e29652978f727dc04d7f95849595d6b5fbab6a743ed66ecc529e2f56b2e8c309b1100fc12a5
2020-03-04 15:55:22 +00:00
Gregory Sanders
a7b41e1f7e initpegoutwallet: check for hardened derivation steps early 2020-03-03 09:52:57 -05:00
Gregory Sanders
c0e0e0a9d5
Merge #818: Place the mainchain RPC warmup message in a better place
c5cb71484 Place the mainchain RPC warmup message in a better place (Steven Roose)

Pull request description:

  Now it also shows with `-validatepegin=0`.

Tree-SHA512: 7e04ab1b5b853fc6896245cb735e1fbfeb2c94950afdf4e2a40ad1c1d59ed06f578c1f491686caa88fa0432a02078ad4c04f338500b34812503e06570e988d52
2020-02-26 10:07:21 -05:00
Gregory Sanders
171540429f
Merge #819: Include deque to fix build
08b41e65d Include deque to fix build (Steven Roose)

Pull request description:

  Upstream: https://github.com/bitcoin/bitcoin/pull/17249/files

Tree-SHA512: ab0151356814e5bcaa85d16d6de16397bf1a10d12b43b28cfb09d682ca53c08243fbff53175753036fc56a7c4fbccbb0ea11437dd600c388ef1489cf0bb51258
2020-02-26 10:04:09 -05:00
Steven Roose
a2fa6ba736
Merge #825: Create witness outputs for (re)issueasset RPC
91583b6e0 Create witness outputs for (re)issueasset RPC (Gregory Sanders)

Pull request description:

  Band aid for https://github.com/ElementsProject/elements/issues/824

Tree-SHA512: 275056e075796513527382ab2c8164433267839c709d28fc197a250a98f6e1096761ff6ec9840723e7095f4027ca2fcdfa18990ed426c4e5d091efe7bc698253
2020-02-24 15:46:56 +00:00
Gregory Sanders
91583b6e0a Create witness outputs for (re)issueasset RPC 2020-02-24 09:32:21 -05:00
Steven Roose
08b41e65db
Include deque to fix build 2020-02-18 15:34:23 +00:00
Steven Roose
c5cb714847
Place the mainchain RPC warmup message in a better place 2020-02-18 15:15:52 +00:00
Steven Roose
e5ab941489
Merge #813: Fix claimpegin and createrawpegin support for multiwallet.
fc841c804 Fix claimpegin and createrawpegin support for multiwallet. (Glenn Willen)

Pull request description:

  Fixes #812. @stevenroose, take a look when you get back?

  Fix multiple issues with claimpegin and createrawpegin support for
  multiple loaded wallets:

  - Failure to call EnsureWalletIsAvailable would cause a crash when multiple
    wallets were loaded, but one was not specified in the RPC call.
  - Failure to propagate the request URL from claimpegin when making an
    internal call to another RPC would result in failure when multiple
    wallets were loaded, by failing to specify one for that call.

  Add a regression test to the feature_fedpeg.py test: at a critical point,
  create a second wallet on the sidechaind, and set up the RPC client to
  use the first one, to check that it still works correctly.

Tree-SHA512: 38d28319d0bc131f530a03e2477b013a982b28d321383a2316372d9aa94f66b19137ba4c1c7e1fe44e3470fe87e80fabbd435836892925b50134c05613581e10
2020-02-10 16:26:22 +00:00
Glenn Willen
fc841c8047 Fix claimpegin and createrawpegin support for multiwallet.
Fix multiple issues with claimpegin and createrawpegin support for
multiple loaded wallets:

- Failure to call EnsureWalletIsAvailable would cause a crash when multiple
  wallets were loaded, but one was not specified in the RPC call.
- Failure to propagate the request URL from claimpegin when making an
  internal call to another RPC would result in failure when multiple
  wallets were loaded, by failing to specify one for that call.

Add a regression test to the feature_fedpeg.py test: at a critical point,
create a second wallet on the sidechaind, and set up the RPC client to
use the first one, to check that it still works correctly.
2020-02-06 23:08:56 -08:00
Steven Roose
da3611a580
Merge pull request #808 from stevenroose/default-chain
Add DEFAULT chain and set to liquidv1
2020-01-31 18:13:00 +00:00
Steven Roose
719662d3f0
Make elements-cli also use DEFAULT chain by default 2020-01-30 17:57:45 +00:00
Steven Roose
7a5a412a18
Remove unused ArgsManager::GetUnrecognizedSections 2020-01-30 17:29:42 +00:00
Steven Roose
02b3cf6aee
Some Elements/Liquid fixes for Qt GUI 2020-01-30 17:29:41 +00:00
Steven Roose
1bdda5e0a9
Add DEFAULT chain and set to liquidv1
This fixes f.e. that when arguments are set in CLI or the config file
without a network attached (`port` instead of `liquidv1.port`), they
will now be assigned to the liquidv1 instead of Bitcoin mainnet.
2020-01-30 17:29:39 +00:00
Gregory Sanders
53e1771cd8
Merge #807: Replace Greg with Steven as security contact
6ff3125fc Replace Greg with Steven as security contact (Steven Roose)

Pull request description:

Tree-SHA512: d29b1cf63e44511530b8d167af14c88f9e5f30c207b98751c16c6027f65c4c38e2450d57d62893a1db72651c31ba0335c2f52a8d185c06997feb5386590aeec1
2020-01-22 13:39:52 -05:00
Steven Roose
6ff3125fc4
Replace Greg with Steven as security contact 2020-01-22 18:37:15 +00:00
Steven Roose
c7ee0ac906
Merge #803: getwalletpakinfo: Use offline counter when reporting lookahead
76fbb4bad getwalletpakinfo: Use offline counter when reporting lookahead (Gregory Sanders)

Pull request description:

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

Tree-SHA512: 37cac0979e0cd7a773d6298fcfb86f5e5719694fb20041eadd1556f70a8476fe3993a734fc286caf74ac02caed8ff8c6eb3e0978675d63509e861025599c35c8
2020-01-15 17:43:14 +00:00
Gregory Sanders
76fbb4bad5 getwalletpakinfo: Use offline counter when reporting lookahead 2020-01-13 09:29:50 -05:00
Gregory Sanders
7754cd3848
Merge #797: Fix VerifyScript calls in fuzz/script_flags
ee068ef07 Fix VerifyScript calls in fuzz/script_flags (Gregory Sanders)

Pull request description:

  Only is compiled with clang/fuzzer setups I suppose.

Tree-SHA512: 3e4b7a1fc96a684cb1b56565830f9f343a23a77677ddde3b18c86cc18d745bbc98c69bdefe985a0f29b3002f05bfc956d2b2b9b6574a4b48615a89dd70f6e468
2020-01-13 09:11:07 -05:00
Gregory Sanders
f3e8ef2ac5
Merge #799: Add current_params_root key to getblockchaininfo
5196b881a Add current_params_root key to getblockchaininfo (Steven Roose)

Pull request description:

Tree-SHA512: eb87803a4ce1a9593fb0aff3a16020459b4c77911921910fe1117974c952fb1a01724d73efc7d5c13862a4d39646b584c683aa521ab6e5145cc3be207fefd16b
2019-12-19 09:20:48 -05:00
Steven Roose
5196b881af
Add current_params_root key to getblockchaininfo 2019-12-17 16:00:23 +01:00
Gregory Sanders
ee068ef075 Fix VerifyScript calls in fuzz/script_flags 2019-12-05 10:18:47 -05:00
Philippe McLean
5489e602ff Trivial: fix typo in error message when mainchain daemon is unavailable 2019-12-04 18:22:09 -08:00
Gregory Sanders
526e802d69
Merge #755: Be able to fund transactions with peg-ins specified
00eb6c097 Test funding peg-in psbt (Andrew Chow)
1ce74e07f Be able to fund transactions with peg-ins (Andrew Chow)
74c4d3778 Tests for fundrawtransaction with external inputs (Andrew Chow)
c25874672 allow fundtx rpcs to work with external inputs (Andrew Chow)
9486cdf54 Give a better error when tx size estimation fails (Andrew Chow)
8258aaa73 Allow Coin Selection be able to take external inputs (Andrew Chow)
698340b62 Allow CInputCoin to also be constructed with COutPoint and CTxOut (Andrew Chow)

Pull request description:

  Allows `fundrawtransaction` and `walletcreatefundedpsbt` to take transactions with pre-selected peg-in inputs and take them into account when selecting additional inputs to meet the output amounts.

  As a side effect, those RPCs will also now allow pre-selected non-wallet inputs so long as the correct additional solving data is provided (scripts and pubkeys are needed to estimate the size for transaction fees).

  Based on #751

  Ports https://github.com/bitcoin/bitcoin/pull/17211 with some modification to work with elements outputs and such.

Tree-SHA512: 813202adfe2b63780bea01b02975dda393197a489a6c1a9590908ac7252d1d0e5f0984125fbfd1dc271524ddad84dc1778a1e8fa447e61235c7f21c6e6999460
2019-12-04 14:58:01 -05:00
Andrew Chow
00eb6c0978 Test funding peg-in psbt 2019-12-04 12:01:54 -05:00
Andrew Chow
1ce74e07f3 Be able to fund transactions with peg-ins 2019-12-04 11:36:28 -05:00
Andrew Chow
74c4d37788 Tests for fundrawtransaction with external inputs 2019-12-04 11:29:36 -05:00
Andrew Chow
c25874672b allow fundtx rpcs to work with external inputs 2019-12-04 11:29:33 -05:00
Andrew Chow
9486cdf549 Give a better error when tx size estimation fails 2019-12-04 11:28:02 -05:00
Andrew Chow
8258aaa733 Allow Coin Selection be able to take external inputs 2019-12-04 11:28:00 -05:00
Gregory Sanders
e2a5d8adfd Remove outdated information about peg-in address creation pre-HD 2019-12-04 09:31:03 -05:00
Andrew Chow
698340b62a Allow CInputCoin to also be constructed with COutPoint and CTxOut 2019-12-03 17:29:28 -05:00
Gregory Sanders
2949ea924f
Merge #751: Peg-in fields for PSBT
7cb5f6bb0 Sign PSBTs with peg-in data (Andrew Chow)
73711eb0b Merge psbt peg-in data (Andrew Chow)
4ad849fed Finalize psbt peg-ins (Andrew Chow)
b7e369505 Test createpsbt and decodepsbt with peg-ins (Andrew Chow)
8ece8e0a0 Show peg-in info in decodepsbt (Andrew Chow)
646e76f7d Be able to create peg-in PSBTs in createpegin (Andrew Chow)
b5590b20c Add peg-in PSBT fields (Andrew Chow)

Pull request description:

  Adds peg-in fields for PSBT. `createpsbt` uses the new peg-in raw tx api to allow specifying the peg-in data and then adds it to the psbt. `decodepsbt`, `finalizepsbt` and `walletsignpsbt` are both updated to handle peg-in stuff too. Also tests.

  `walletcreatefundedpsbt` still does not handle peg-in data. It will require handling external inputs which the wallet does not do. I think it would be best to first implement external inputs in `FundTransaction` upstream before allowing `walletcreatefundedpsbt` to accept peg-ins.

Tree-SHA512: 838c2cf0de78b6ad948aaec2932326e2e39b6645c98193c90eedaee7e5cd8ebe3e8ea00e3ba4a67d5f862948195f37aded0e6a08a7c3c20def325d4cabb78ee3
2019-12-03 11:42:58 -05:00