From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uN/5Hda7GmBiWAAA0tVLHw (envelope-from ) for ; Wed, 03 Feb 2021 15:05:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eKbCGda7GmBMNQAAbx9fmQ (envelope-from ) for ; Wed, 03 Feb 2021 15:05:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E644F940480 for ; Wed, 3 Feb 2021 15:05:57 +0000 (UTC) Received: from localhost ([::1]:60062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7JjA-0005oL-NS for larch@yhetil.org; Wed, 03 Feb 2021 10:05:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7AQU-0006ab-Is for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7AQU-0004no-9u for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7AQU-0006fV-1j for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46266] [PATCH] gnu: Update bitcoin-core to 0.21.0 Resent-From: ZmnSCPxj Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Feb 2021 05:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46266@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161232896625587 (code B ref -1); Wed, 03 Feb 2021 05:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Feb 2021 05:09:26 +0000 Received: from localhost ([127.0.0.1]:36547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7APr-0006ea-A0 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 00:09:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:57616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l78JW-0003Kl-03 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 21:54:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l78JV-0003zx-MQ for guix-patches@gnu.org; Tue, 02 Feb 2021 21:54:41 -0500 Received: from mail-40130.protonmail.ch ([185.70.40.130]:27630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l78JS-0005bM-UK for guix-patches@gnu.org; Tue, 02 Feb 2021 21:54:41 -0500 Date: Wed, 03 Feb 2021 02:54:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612320873; bh=S9EsmNHR3dT4MqnPthkv1B6F+GNAQwCodtHDc8EBqLc=; h=Date:To:From:Reply-To:Subject:From; b=LV1favuUm/G+TQLhx2ttYhEjdbRH9V/gA5cCe1YO73z8/TjelO+Sp528KBzs4PZB5 OwFS0coOOmFbV3gKYLW9xb5YvpEQSB/mjy6t50qf0H9BPO43KuKmcZ6zrzPqrCs2z/ Uwc9IeseOEaqykDvDmNp4QybcLIKWt4+je0qRj3w= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.130; envelope-from=ZmnSCPxj@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 03 Feb 2021 00:09:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 03 Feb 2021 10:05:47 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: ZmnSCPxj X-ACL-Warn: , ZmnSCPxj via Guix-patches From: guix-patches--- via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=LV1favuU; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E644F940480 X-Spam-Score: -2.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: IrOPMhdhiVkO In addition to updating, I made as well, separate `bitcoin-core-0.20` and `= bitcoin-core-0.21` packages. Due to RPC changes, it is possible that other programs compatible with olde= r `bitcoin-core` version is not compatible with newer version. Thus, an `operating-system` declaration, may need to pin a specific major v= ersion. Hoping for your kind review and acceptance of this patch. Tested with `guix build bitcoin-core`. Is there more testing I need to do before this is accepted? Regards, ZmnSCPxj >From 319a66d931f2191ab91037e0ba9da1c2b969229d Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Wed, 3 Feb 2021 00:51:07 +0000 Subject: [PATCH] gnu: Update bitcoin-core to 0.21.0 * gnu/packages/finance.scm (make-bitcoin-core): New procedure, moved from .= .. (bitcoin-core): ... here. Update to 0.21.0. (bitcoin-core-0.20): New variable. (bitcoin-core-0.21): New variable. --- gnu/packages/finance.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 1798ad82bc..dc9b911c68 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -22,6 +22,7 @@ ;;; Copyright =C2=A9 2020 Vinicius Monego ;;; Copyright =C2=A9 2020 Carlo Holl ;;; Copyright =C2=A9 2020 Giacomo Leidi +;;; Copyright =C2=A9 2021 ZmnSCPxj ;;; ;;; This file is part of GNU Guix. ;;; @@ -108,18 +109,17 @@ #:use-module (gnu packages xml) #:use-module (gnu packages gnuzilla)) -(define-public bitcoin-core +(define (make-bitcoin-core target-version hash) (package (name "bitcoin-core") - (version "0.20.1") + (version target-version) (source (origin (method url-fetch) (uri (string-append "https://bitcoincore.org/bin/bitcoin-core-" version "/bitcoin-" version ".tar.gz")) (sha256 - (base32 - "0y5rad68b398arh0abr2wgiwybdw0i5a4dxz9s3fk9fgdbyn5gab")))) + (base32 hash)))) (build-system gnu-build-system) (native-inputs `(("autoconf" ,autoconf) @@ -186,6 +186,14 @@ of the bitcoin protocol. This package provides the Bi= tcoin Core command line client and a client based on Qt.") (license license:expat))) +;; Pinning specific versions may be necessary due to changes in +;; RPC interface, or signalling reasons. +(define-public bitcoin-core-0.20 + (make-bitcoin-core "0.20.1" "0y5rad68b398arh0abr2wgiwybdw0i5a4dxz9s3fk9f= gdbyn5gab")) +(define-public bitcoin-core-0.21 + (make-bitcoin-core "0.21.0" "0dszcn4r43w0ffsmgwmyzkzr5lqws3bbhlkssmjgnjg= fc8n2148s")) +(define-public bitcoin-core bitcoin-core-0.21) + (define-public hledger (package (name "hledger") -- 2.30.0