Commit graph

34782 commits

Author SHA1 Message Date
Glenn Willen
ada87dc6db Fix RC version to 22.0.0rc1 2022-08-03 18:21:41 -07:00
Glenn Willen
ff439d8d50 Another fix to manpages 2022-08-03 16:08:36 -07:00
Pablo Greco
93ebe3b98a QT: fix title in custom chains 2022-08-03 15:46:24 -07:00
Glenn Willen
dea9125620 Fixes to manpage generation; regenerate manpages 2022-08-03 15:27:36 -07:00
Carl Dong
7180bdcbc9 guix/prelude: Override VERSION with FORCE_VERSION
Previously, if the builder exported $VERSION in their environment (as
past Gitian-building docs told them to), but their HEAD does not
actually point to v$VERSION, their build outputs will differ from those
of other builders.

This is because the contrib/guix/guix-* scripts only ever act on the
current git worktree, and does not try to check out $VERSION if $VERSION
is set in the environment.

Setting $VERSION only makes the scripts pretend like the current
worktree is $VERSION.

This problem was seen in jonatack's attestation for all.SHA256SUMS,
where only his bitcoin-22.0rc3-osx-signed.dmg differed from everyone
else's.

Here is my deduced sequence of events:

1. Aug 27th: He guix-builds 22.0rc3 and uploads his attestations up to
   guix.sigs

2. Aug 30th, sometime after POSIX time 1630310848: he pulls the latest
   changes from master in the same worktree where he guix-built 22.0rc3
   and ends up at 7be143a960

3. Aug 30th, sometime before POSIX time 1630315907: With his worktree
   still on 7be143a960, he guix-codesigns. Normally, this would result
   in outputs going in guix-build-7be143a960e2, but he had
   VERSION=22.0rc3 in his environment, so the guix-* scripts pretended
   like he was building 22.0rc3, and used 22.0rc3's guix-build directory
   to locate un-codesigned outputs and dump codesigned ones.

   However, our SOURCE_DATE_EPOCH defaults to the POSIX time of HEAD
   (7be143a960), which made all timestamps in the resulting codesigned
   DMG 1630310848, 7be143a960e2's POSIX timestamp. This differs from the
   POSIX timestamp of 22.0rc3, which is 1630348517. Note that the
   windows codesigning procedure does not consider SOURCE_DATE_EPOCH.

We resolve this by only allowing VERSION overrides via the FORCE_VERSION
environment variable.
2022-08-03 12:19:43 -07:00
fanquake
4f11bbf7d3 guix: ignore additioanl failing certvalidator test
======================================================================
ERROR: test_revocation_mode_soft (tests.test_validate.ValidateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/test_validate.py", line 85, in test_revocation_mode_soft
    validate_path(context, path)
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/../certvalidator/validate.py", line 50, in validate_path
    return _validate_path(validation_context, path)
  File "/tmp/guix-build-python-certvalidator-0.1-1.e5bdb4b.drv-0/source/tests/../certvalidator/validate.py", line 358, in _validate_path
    raise PathValidationError(pretty_message(
certvalidator.errors.PathValidationError: The path could not be validated because the end-entity certificate expired 2022-01-14 12:00:00Z

Github-Pull: #24057
Rebased-From: 8588591965
2022-08-03 12:18:11 -07:00
Hennadii Stepanov
1e4053c4f0 qt: Pre-rc3 translations update 2022-08-01 15:36:16 -07:00
Hennadii Stepanov
4a7dc8b520 qt: Pre-rc2 translations update 2022-08-01 15:36:16 -07:00
W. J. van der Laan
7ce47bf53e qt: Pre-rc2 translations update
We forgot this for rc1. Thanks to Hebasto for fixing the import script.

Tree-SHA512: 127d0989dabf95867f4542e7f3134ef5d5045418b1411582772d60759e16a5090e30c83bffbbc44b2a496ba830a66bdb0d8ba0d2def43f3462a4f15edf64953a
2022-08-01 15:36:16 -07:00
Glenn Willen
f4820e59f0 Revert "Add parameter for chain name in initial download string"
This reverts commit 5e3019570f. That commit
erroneously made changes to translation files by hand, conflicting with
the automated translation pipeline.

Reverting will facilitate merging in upstream translation changes.
2022-08-01 15:36:16 -07:00
Glenn Willen
9fb51a2a20 generate manual pages for 22 release 2022-08-01 15:36:16 -07:00
Glenn Willen
ca2d72ae8b elements: Fix build by removing newly-added assertion from upstream that doesn't make sense with assets 2022-08-01 15:36:16 -07:00
Pieter Wuille
a4b194c671 Some small improvements to release notes 2022-08-01 15:36:16 -07:00
Pieter Wuille
9c9695f97f doc: mention bech32m/BIP350 in doc/descriptors.md
Github-Pull: #22837
Rebased-From: d2a09c8355
2022-08-01 15:35:07 -07:00
W. J. van der Laan
bf4d58f351 doc: Move 22.0 release notes from wiki
Co-authored-by: Andrew Chow <achow101-github@achow101.com>
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Co-authored-by: Jon Atack <jon@atack.com>
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Co-authored-by: Michael Folkson <michaelfolkson@gmail.com>
Co-authored-by: Pieter Wuille <github-sipa@wuille.net>
Co-authored-by: Sjors Provoost <sjors@sprovoost.nl>
Co-authored-by: Vasil Dimov <vd@freebsd.org>
2022-08-01 15:35:07 -07:00
W. J. van der Laan
5514d409a9 doc: Stop nixing - in manual pages
The version replacement here is not working anyway, not just that but it
is actively harmful as it removes all `-` from the text. So remove that
line. See discussion in #22681.

Tree-SHA512: 909c6225a50bbda1253bae65c09700a658bd36b5c91c91cea28d1df0aad5dc4adb095e0695259eca377536da34d17741ce453a5c5c50041d1163d94bbbe5355d
2022-08-01 15:35:07 -07:00
Jon Atack
4df7e88f6f Improve doc/i2p.md regarding I2P router options/versions
Github-Pull: bitcoin/bitcoin#22648
Rebased-From: b87a9c4d13

Tree-SHA512: 3567e6dbfb7c3f410ea84d3f005c86be0283f92e1be1bc2a7ce93240a0b8460b985b3cec5873a19eade52dc1d78ca383c99e023d0bb4247048ae7e43b47522a5
2022-08-01 15:35:07 -07:00
Rafael Sadowski
45898781ec Fix build with Boost 1.77.0
BOOST_FILESYSTEM_C_STR changed to accept the path as an argument

Github-Pull: bitcoin/bitcoin#22713
Rebased-From: acb7aad27e
2022-08-01 15:35:07 -07:00
Hennadii Stepanov
a94c1d5c61 qt: Handle new added plurals in bitcoin_en.ts
This step was missed. See translation_process.md

Github-Pull: bitcoin-core/gui#406
Rebased-From: 2b3d8f3dde
2022-08-01 15:35:07 -07:00
Andrew Chow
a5d5de2f35 doc: Mention the flat directory structure for uploads
The uploaded binaries need to match the same flat directory structure of
the SHA256SUMS file in order for torrent downloaders to be able to
verify the download without moving files. Mention this in the release
process doc.

Github-Pull: bitcoin/bitcoin#22654
Rebased-From: 132cae44f2
2022-08-01 15:35:07 -07:00
Andrew Chow
0bfa783a00 guix: Don't include directory name in SHA256SUMS
The SHA256SUMS file can be used in a sha256sum -c command to verify
downloaded binaries. However users are likely to download just a single
file and not place this file in the correct directory relative to the
SHA256SUMS file for the simple verification command to work. By not
including the directory name in the SHA256SUMS file, it will be easier
for users to verify downloaded binaries.

Co-authored-by: Carl Dong <contact@carldong.me>

Github-Pull: bitcoin/bitcoin#22654
Rebased-From: fb17c99e35
2022-08-01 15:35:06 -07:00
S3RK
c9d0d0cbe4 test: fix bug in 22686
Github-Pull: bitcoin/bitcoin#22742
Rebased-From: 8dcbbbea64
2022-08-01 15:35:06 -07:00
Carl Dong
1c028b9a51 clientversion: No suffix #if CLIENT_VERSION_IS_RELEASE
Previously, building from a release source tarball would result in a
version string like v22.0.0-<commithash>, but we expect just v22.0.0.
This commit solves this problem.

Also use PACKAGE_VERSION instead of reconstructing it.

Github-Pull: bitcoin/bitcoin#22685
Rebased-From: 5100deee58
2022-08-01 15:35:06 -07:00
Andrew Chow
58deead9b9 test: Test for ApproximateBestSubset edge case with too little fees
ApproximateBestSubset had an edge case (due to not using
GetSelectionAmount) where it was possible for it to return success but
fail to select enough to cover transaction fees. A test is added that
could trigger this failure prior to the fix being implemented.

Github-Pull: bitcoin/bitcoin#22686
Rebased-From: 92885c4f69
2022-08-01 15:35:06 -07:00
Andrew Chow
a513722516 wallet: Assert that enough was selected to cover the fees
When the fee is not subtracted from the outputs, the amount that has
been reserved for the fee (change_and_fee - change_amount) must be
enough to cover the fee that is needed. It would be a bug to not do so,
so use an assert to make this obvious if such a situation were to occur.

Github-Pull: bitcoin/bitcoin#22686
Rebased-From: d9262324e8
2022-08-01 15:35:06 -07:00
Andrew Chow
efac8a33fa wallet: Use GetSelectionAmount for target value calculations
For target value calculations, GetSelectionAmount should be used, not
m_effective_value or m_value.

Specifically, ApproximateBestSubset mistakenly uses m_value when
calculating whether the target value has been met. This has been changed
to use GetSelectionAmount.

Github-Pull: bitcoin/bitcoin#22686
Rebased-From: 2de222c401
2022-08-01 15:35:06 -07:00
Carl Dong
13a256fc9b release: Release with separate SHA256SUMS and sig files
This allows us to remove the rfc4880 EOL hacks and release with a
SHA256SUMS.asc file that's a combination of all signer signatures.

Github-Pull: bitcoin/bitcoin#22642
Rebased-From: 90b3e482e9
2022-08-01 15:35:06 -07:00
Carl Dong
1e6ee42132 guix-verify: Non-zero exit code when anything fails
Previously, if verification fails, the correct message will be printed,
but the exit code would still be 0.

Github-Pull: bitcoin/bitcoin#22643
Rebased-From: d451b60d22
2022-08-01 15:35:06 -07:00
Andrew Chow
0608e9958f gui: ensure external signer option remains disabled without signers
When no external signers are available, the option to enable external
signers should always be disabled. However the encrypt wallet checkbox
can erroneously re-enable the external signer checkbox. To avoid this,
CreateWalletDialog now stores whether signers were available during
setSigners so that future calls to external_signer_checkbox->setEnabled
can account for whether signers are available.

Github-Pull: bitcoin-core/gui#396
Rebased-From: a9b9ca82da
2022-08-01 15:35:06 -07:00
Hennadii Stepanov
61e168957d qt: Fix regression in "Encrypt Wallet" menu item
Adding a new item to the m_wallet_selector must follow the establishment
of signal-slot connections.

Github-Pull: bitcoin-core/gui#393
Rebased-From: d54d949598
2022-08-01 15:35:06 -07:00
Anthony Towns
68f17e6b67 consensus/params: simplify ValidDeployment check to avoid gcc warning
Github-Pull: bitcoin/bitcoin#22597
Rebased-From: 059171009b
2022-08-01 15:35:06 -07:00
Hennadii Stepanov
8ec2c4fed5 ci: Run fuzzer task for the master branch only
Github-Pull: bitcoin/bitcoin#22730
Rebased-From: 5a9e255e5a
2022-08-01 15:35:06 -07:00
W. J. van der Laan
c0bbec8982 build: Bump RC to rc2
Tree-SHA512: 2e9db22da514b0ef4456f46524762420730cdd3c160a4012ca9d736d18d01abd2403b0ce800743b1f92212937436fe849b1c1b07bed0e3ad9f61165be55b7958
2022-08-01 15:35:06 -07:00
Jon Atack
a37b834a6b doc: add info to i2p.md about IBD time and multiple networks
Github-Pull: #22589
Rebased-From: d2dffd5be4
2022-08-01 15:35:06 -07:00
Jon Atack
50b66c238e contrib, p2p: update I2P hardcoded seeds
Github-Pull: #22589
Rebased-From: 2962640c49
2022-08-01 15:35:06 -07:00
Andrew Chow
925571c7dd guix: Ensure EPOCH_SOURCE_DATE does not include GPG information
If the user has set log.showSignature=true in their git config, then the
git log will always output GPG signature information. Since git log is
used to set EPOCH_SOURCE_DATE, this will mistakenly have GPG signature
information in it which causes issues for the build. To avoid this
issue, we override the config and force log.showSignature=false.

Github-Pull: #22531
Rebased-From: 9b313dfef1
2022-08-01 15:35:06 -07:00
Andrew Chow
8f495aa3ef guix: Remove extra \r from all.SHA256SUMS line ending
guix-attest mistakenly added an extra \r to the line endings in
all.SHA256SUMS, causing guix-verify to erroneously fail.

Co-Authored-By: Carl Dong <contact@carldong.me>

Github-Pull: #22531
Rebased-From: 43225f0a2a
2022-08-01 15:35:06 -07:00
Andrew Chow
2d948930e2 guix, doc: Add a note that codesigners need to rebuild after tagging
One of the issues observed during the 22.0rc1 release process was that a
codesigner's attestation mismatched non-codesigner attestations because
the guix-codesign step was performed prior to tagging the version in
bitcoin-detached-sigs.

Github-Pull: #22531
Rebased-From: d080c27066
2022-08-01 15:35:06 -07:00
Andrew Chow
c576e88cee guix: Allow changing the base manifest in guix-verify
When verifying guix attestations, it is useful to set a particular
signer's manifest as the base to compare against.

Github-Pull: #22531
Rebased-From: 4a466388a0
2022-08-01 15:35:06 -07:00
Andrew Chow
82d8bdb042 guix: Make all.SHA256SUMS rather than codesigned.SHA256SUMS
Github-Pull: #22531
Rebased-From: 33455c7696
2022-08-01 15:35:06 -07:00
jonatack
a32205f9cc script, doc: guix touchups
Github-Pull: #22538
Rebased-From: 198ceb82f9
2022-08-01 15:35:06 -07:00
h
bd56b60454 Updated Readme, Corrected the codesign typo
Github-Pull: #22538
Rebased-From: d7b7f610a5
2022-08-01 15:35:06 -07:00
Carl Dong
96aaed9813 guix/build: Remove vestigial SKIPATTEST.TAG
Github-Pull: #22533
Rebased-From: 9f01feda0a
2022-08-01 15:35:06 -07:00
Carl Dong
9cc787300b guix/INSTALL: Misc fixups
Github-Pull: #22511
Rebased-From: a884a1edcd
2022-08-01 15:35:06 -07:00
Carl Dong
d1be61f836 guix: Silence getent(1) invocation
Github-Pull: #22511
Rebased-From: 3c4d2c418e
2022-08-01 15:35:06 -07:00
W. J. van der Laan
6c7021777c build: Bump version to 22.0.0rc1
Tree-SHA512: 1bc98f4a6d15d8f810fa6d2ee26c495a8da08dff3efd3d2ec6bbc6bd8091751a21436efc39f04fb68c5279312644ff9a63bcbc3c4df02e0bf89cd1cd8473bac5
2022-08-01 15:35:06 -07:00
Glenn Willen
cd9d64ebff
Merge pull request #1127 from psgreco/master-fix-guix-gitian
Fix tarball names in guix and gitian builds
2022-08-01 12:58:19 -07:00
Pablo Greco
7ab26e5fd3 Fix elements naming in gitian builds 2022-08-01 19:28:21 +00:00
Pablo Greco
a0585cec57 Fix naming in guix builds 2022-08-01 19:28:19 +00:00
Andrew Poelstra
c80e926d6e
Merge ElementsProject/elements#1122: PSET spec updates
28c3836b5c PSET: docs: Fix constant names to match those actually used (Jon Griffiths)
7ef6c44225 PSET: docs: Fix the data type of PSBT_ELEMENTS_IN_PEG_IN_WITNESS (Jon Griffiths)
bb20a6c373 PSET: docs: Mark PSBT_ELEMENTS_GLOBAL_TX_MODIFIABLE bit 0 as reserved/unused (Jon Griffiths)
e7d994008e PSET: docs: Fix reference to non-existent PSBT_OUT_VALUE field (Jon Griffiths)
0b1b0b2676 PSET: docs: Document PSBT fields that are conditionally mandatory in PSET (Jon Griffiths)

Pull request description:

  Following discussion with achow101

ACKs for top commit:
  apoelstra:
    utACK 28c3836b5c

Tree-SHA512: 72d4399a749bfb95042d7375e780a0992e1ca850af049de7710e48b8bcdb4cd7703f92882d83ba3131398b8f0aef01ae450721c9dd960bb7c700497a4a7be6fb
2022-07-27 16:34:43 +00:00