Commit graph

34933 commits

Author SHA1 Message Date
MarcoFalke
df09befb2f Fix (inverse) meaning of -persistmempool
Github-Pull: #23061
Rebased-From: faff17bbde
(cherry picked from commit db76db7329f6357c5226cd08611fe0f669c002af)
2022-12-07 11:11:30 +00:00
W. J. van der Laan
92131fa0e9 build: Restrict check for CRC32C intrinsic to aarch64
`crc32c`'s hardware accelerated code doesn't handle ARM 32-bit at all.
Make the check in `configure.ac` check for this architecture explicitly.

For the release binaries, the current `configure.ac` check happens
to work: it enables it on aarch64 but disables it for armhf. However
some combination of compiler version and settings might ostensibly cause
this check to succeed on armhf (as reported on IRC). So make the 64-bit
platform requirement explicit.

Github-Pull: #23045
Rebased-From: f2747d1602
(cherry picked from commit 85c78e08ec857e51a9748d1a2492d1d3794b221a)
2022-12-07 11:11:30 +00:00
fanquake
7f02d38c2d build: fix depends zeromq dash compatibility
Picks upstream commit 9a397666d28ca5f3c0d8233be3d39b2206555f45 to fix
dash compatibility. This fixes building zeromq in our CentOS 8 CI. This
is my preferred fix over backporting a zeromq update (which would
contain this change).

(cherry picked from commit 685ac6ad2e48093d69cccd1d242ed36a326cf90b)
2022-12-07 11:11:30 +00:00
fanquake
e6cdef6dc4 build: libXau 1.0.9
Github-Pull: #23489
Rebased-From: fc65127244
(cherry picked from commit 4b92a6b42cb80eafa62fe7987860e8925b8c2361)
2022-12-07 11:11:30 +00:00
Martin Zumsande
3b672e7196 rpc: Capture potentially large UniValue by ref for rpcdoccheck
Github-Pull: 25237
Rebased-From: 20ff4991e5
(cherry picked from commit 7fcac96597)
2022-12-07 10:50:06 +00:00
Pablo Greco
dff0e8202b Merge branch 'master' into elements_22_1_rc1 2022-12-07 10:47:10 +00:00
Steven Roose
29e62db08e
Merge ElementsProject/elements#1195: Remove duplicated code from merge
2c7335fecc Remove duplicated code from merge (Pablo Greco)

Pull request description:

  Remove duplicated code that looks like a bad merge in the 21-22 timeframe

ACKs for top commit:
  delta1:
    utACK 2c7335f
  apoelstra:
    utACK 2c7335fecc

Tree-SHA512: 19332412530b898783de7ba705108552dcb17a8e54987d9c916f15aeb33cd94063a3957578edd77fedc97650b224949e5e13a5e25cc045959f3d72567a773e5a
2022-11-28 19:46:32 +00:00
Pablo Greco
2c7335fecc Remove duplicated code from merge 2022-11-25 12:54:09 -03:00
Pablo Greco
679f620a07
Merge pull request #928 from stevenroose/already-have-block
Have testproposedblock return RPC_VERIFY_ALREADY_IN_CHAIN
2022-11-24 12:37:34 -03:00
Steven Roose
30f02624c7
Have testproposedblock return RPC_VERIFY_ALREADY_IN_CHAIN
Instead of RPC_VERIFY_ERROR when the block is already in the chain.
2022-11-24 14:08:51 +00:00
James Dorfman
5c82e351a9
Merge pull request #1194 from andreabonel/add_back_missing_field_in_getblock
Add missing field 'signblock_challenge' back to getblock
2022-11-23 11:23:54 -05:00
Andrew Poelstra
1339dae913
Merge ElementsProject/elements#1167: Add native support for liquidtestnet
c6e074e25b liquidtestnet: Fix chain name in windows installer (Pablo Greco)
d0f391cfdb liquidtestnet: Add style for Elements-Qt (Pablo Greco)
48ddfbf8d7 liquidtestnet: Add fixed seeds (Pablo Greco)
3b34c8e927 liquidtestnet: Add seed nodes (Pablo Greco)
0d1964766f liquidtestnet: Accept multi OP_RETURN (Pablo Greco)
f955cb3d9c liquidtestnet: Add chainparams (Pablo Greco)
0fa20d006d CCustomParams: Move some defaults away from UpdateFromArgs (Pablo Greco)
e9df51121f Add text version of the fixed seeds for liquidv1 and liquidtestnet (Pablo Greco)

Pull request description:

  Currently using liquidtestnet requires a big config file, which is error-prone and uncomfortable for users, this MR adds support for just using `-chain=liquidtestnet`.

  There are a few things that need to be discussed/addressed

  1. Main port (currently set to 18891 because that's the one used originally, and the one that's configured in `liquidtestnet.com`)
  1. RPC and extra ports, I just chose some non-overlapping ports that are "close" to the ones in the other liquid/elements networks.
  1. Icon color, I just used something different than `liquidv1` and `elementsregtest`, suggestions accepted 😉
  1. `liquid-testnet.blockstream.com` is still using port 18892, it will be changed to 18891 soon.
  1. both seeds are just CNAME dns records at the moment, they should be changed to real seed nodes (no changes in code required, but important for review)

ACKs for top commit:
  delta1:
    ACK c6e074e
  wintercooled:
    ACK c6e074e25b
  apoelstra:
    utACK c6e074e25b

Tree-SHA512: 48c17b8b90ba5a33ae987935ffb368737167f6ca5ae772f6dd8c0c5e7efb39355d81e2677cd02d3e22984f2592fdd67caaf838003902b3c827f6ade01f18a040
2022-11-23 15:31:39 +00:00
Andrea Bonel
5d496b81f7 Add missing field 'signblock_challenge' back to getblock 2022-11-22 18:12:41 -03:00
Pablo Greco
58b5fa0dbf
Merge pull request #1186 from achow101/createfunded-explicit-value
Add include_explicit to walletcreatefundedpsbt
2022-11-21 17:15:58 -03:00
Pablo Greco
9c067622cf
Merge pull request #1192 from wintercooled/fix-pset-example
fix pset swap example
2022-11-18 19:39:32 -03:00
wintercooled
437e1e79f7 fix pset swap example 2022-11-18 12:34:18 +00:00
James Dorfman
35aa7168b7
Merge pull request #1188 from psgreco/elements-22_0_2
Bump version to 22.0.2
2022-10-31 10:24:03 -04:00
Pablo Greco
44730b5d0c Bump version to 22.0.2 2022-10-31 08:30:15 -03:00
Andrew Chow
42cbdc81a6 test: Test for explicit values and assets and their proofs 2022-10-18 16:52:31 -04:00
Andrew Chow
9dbf0b6f55 wallet, rpc: Add include_explicit to walletcreatefundedpsbt 2022-10-18 16:52:31 -04:00
Andrew Chow
a584133bd6 wallet: Add include_explicit to FillPSBT 2022-10-18 16:52:31 -04:00
Andrew Chow
462c873639 blindpsbt: Expose CreateBlind{Asset,Value}Proof
Make these two functions available to external callers.
CreateBlindValueProof is a wrapper around the static function to avoid
requiring callers to parse things into secp256k1 objects.
2022-10-18 16:52:31 -04:00
Pablo Greco
816585db1a
Merge pull request #1182 from jgriffiths/fix_blind_reissuance_amount_proof_output
rpc: decodepsbt: fix check for blind_reissuance_amount_proof output
2022-10-18 09:32:07 -03:00
Byron Hambly
b0813e0bb7
Merge pull request #1185 from psgreco/elements-22_0_2rc1
Elements 22 0 2rc1
2022-10-17 14:20:21 +02:00
Pablo Greco
8b3dabd543 Bump version to 22.0.2rc1 2022-10-16 10:06:28 -03:00
Pablo Greco
6624455ec2 Merge branch 'master' into elements-22_0_2rc1 2022-10-16 10:05:35 -03:00
Pablo Greco
fde2277034
Merge pull request #1168 from andreabonel/fix_windows_installer_icons
Fix nsis-header.bmp and nsis-wizard.bmp for Elements Windows installer
2022-10-15 18:10:00 -03:00
Pablo Greco
eca4cd9259
Merge pull request #1169 from andreabonel/fix_windows_elements_company
Fix company for Windows exes
2022-10-15 18:09:44 -03:00
Pablo Greco
f09a276eb0
Merge pull request #1171 from andreabonel/master-replace-icons
Replace icons
2022-10-15 18:09:26 -03:00
Pablo Greco
38eacf73e3
Merge pull request #1175 from andreabonel/fix_windows_uninstaller_icon
Fix Windows uninstaller icon in "Add or remove programs"
2022-10-15 18:09:08 -03:00
Pablo Greco
ae220b8545
Merge pull request #1184 from gwillen/feature-fix-taproot-parse-blinding
Preserve blinding key when parsing taproot address.
2022-10-15 13:44:31 -03:00
Glenn Willen
d0625e1ed5 Add taproot address parsing test case, regression test for #1181. 2022-10-11 17:02:34 -07:00
Glenn Willen
6b4228e3a5 Preserve blinding key when parsing taproot address. 2022-10-11 15:30:04 -07:00
Pablo Greco
285a18dbe9
Merge pull request #1173 from andreabonel/fix_issue_1120
Fix location for default cookie path
2022-10-05 22:57:29 -03:00
Jon Griffiths
e2348dadf3
PSET: VerifyBlindValueProof: fail verification if the value or asset commitment is missing
It is arguable whether attempting a value proof without an asset
commitment should be treated as incomplete or incorrect blinding. Since
the asset commitment is required to produce the value proof in the first
place, failing to provide it in the source PSET and thus at this call
site is treated as an error.

This does not change the existing behaviour since a missing asset
or value commitment in this function would already cause it to fail.

Future work on the blinding iterface should likely return the blinding
state directly from the verify calls and remove the duplicated mapping of
blinding error codes to transaction blinding error codes, instead of the
verify functions returning just true/false.
2022-10-06 09:12:02 +13:00
Jon Griffiths
5895fb10bb
rpc: decodepsbt: fix check for blind_reissuance_amount_proof output 2022-10-05 23:38:54 +13:00
Andrea Bonel
86db1b70e9 Fix location for default cookie path 2022-09-27 18:56:20 -03:00
James Dorfman
bfbd746bf1
Merge pull request #1177 from psgreco/elements-22_0_1
Elements 22 0 1
2022-09-26 21:10:26 -04:00
Pablo Greco
4aa849e0e9 Bump version to 22.0.1 2022-09-26 14:11:58 -03:00
Pablo Greco
01437393e3 Merge branch 'master' into elements-22_0_1 2022-09-26 14:11:40 -03:00
Pablo Greco
fd9a1b67b9 Fix lint
(cherry picked from commit 90c4bf99f6)
2022-09-26 14:11:31 -03:00
Andrew Poelstra
005a27cac7 wallet: account for issuances during coin selection
Prior to coin selection we need to indicate that the issuances will take
extra space, otherwise we may fail to select enough coins to cover our
fees, triggering the new "fee needed exceeds fees available" assertion.

(cherry picked from commit e5e3ec2700)
2022-09-26 14:11:31 -03:00
Andrew Poelstra
a1e1afcda1 test: rename elements_regression_1172 to follow naming convention
(cherry picked from commit 3c896b11e0)
2022-09-26 14:11:31 -03:00
Andrew Poelstra
ce496535c4 wallet: extend fix to "dropped change is the last blinded output" case
(cherry picked from commit 79fd90f064)
2022-09-26 14:11:31 -03:00
Andrew Poelstra
4553496c44 wallet: don't clear out all the blinding data when dropping change
The Elements 22 blinding logic has an edge case where when we drop change,
leaving only a single blinded output, we recompute a bunch of blinding
data to handle the potential for us to have 0 inputs and 1 output to blind.
(BlindTransaction will fail in this case because it cannot make the
transaction balance with only one output to mess with.)

In this recomputation, we dropped more data than we meant to, causing us
to incorrectly blind an output.

(cherry picked from commit fac694be4c)
2022-09-26 14:11:31 -03:00
James Dorfman
a7c455e6bf
Merge pull request #1178 from psgreco/master-fix-linter
Fix lint
2022-09-26 12:21:26 -04:00
Pablo Greco
90c4bf99f6 Fix lint 2022-09-26 12:09:28 -03:00
Pablo Greco
f1dd3de8e1
Merge pull request #1172 from apoelstra/2022-09--wallet-fix
wallet: don't clear out all the blinding data when dropping change
2022-09-26 11:43:30 -03:00
Andrew Poelstra
e5e3ec2700
wallet: account for issuances during coin selection
Prior to coin selection we need to indicate that the issuances will take
extra space, otherwise we may fail to select enough coins to cover our
fees, triggering the new "fee needed exceeds fees available" assertion.
2022-09-22 13:20:29 +00:00
Andrew Poelstra
3c896b11e0
test: rename elements_regression_1172 to follow naming convention 2022-09-20 21:17:50 +00:00