pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/finance/bitcoin



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Dec  3 16:30:35 UTC 2019

Modified Files:
        pkgsrc/finance/bitcoin: Makefile distinfo
        pkgsrc/finance/bitcoin/patches: patch-src_netbase.cpp
Removed Files:
        pkgsrc/finance/bitcoin/patches: patch-src_secp256k1_configure

Log Message:
bitcoin: updated to 0.19.0.1

0.19.0.1:
Notable changes

New user documentation

Reduce memory suggests configuration tweaks for running Bitcoin Core on systems with limited memory.
New RPCs

getbalances returns an object with all balances (mine, untrusted_pending and immature). Please refer to the RPC help of getbalances for details. The new RPC is intended to replace getbalance, 
getunconfirmedbalance, and the balance fields in getwalletinfo. These old calls and fields may be removed in a future version.

setwalletflag sets and unsets wallet flags that enable or disable features specific to that existing wallet, such as the new avoid_reuse feature documented elsewhere in these release notes.

getblockfilter gets the BIP158 filter for the specified block. This RPC is only enabled if block filters have been created using the -blockfilterindex configuration option.

New settings

-blockfilterindex enables the creation of BIP158 block filters for the entire blockchain. Filters will be created in the background and currently use about 4 GiB of space. Note: this version of 
Bitcoin Core does not serve block filters over the P2P network, although the local user may obtain block filters using the getblockfilter RPC.
Updated settings

whitebind and whitelist now accept a list of permissions to provide peers connecting using the indicated interfaces or IP addresses. If no permissions are specified with an address or CIDR network, 
the implicit default permissions are the same as previous releases. See the bitcoind -help output for these two options for details about the available permissions.

Users setting custom dbcache values can increase their setting slightly without using any more real memory. Recent changes reduced the memory use by about 9% and made chainstate accounting more 
accurate (it was underestimating the use of memory before). For example, if you set a value of "450" before, you may now set a value of "500" to use about the same real amount of memory.

Updated RPCs

Note: some low-level RPC changes mainly useful for testing are described in the Low-level Changes section below.

sendmany no longer has a minconf argument. This argument was not well-specified and would lead to RPC errors even when the wallet's coin selection succeeded. Users who want to influence coin 
selection can use the existing -spendzeroconfchange, -limitancestorcount, -limitdescendantcount and -walletrejectlongchains configuration arguments.

getbalance and sendtoaddress, plus the new RPCs getbalances and createwallet, now accept an "avoid_reuse" parameter that controls whether already used addresses should be included in the operation. 
Additionally, sendtoaddress will avoid partial spends when avoid_reuse is enabled even if this feature is not already enabled via the -avoidpartialspends command line flag because not doing so would 
risk using up the "wrong" UTXO for an address reuse case.

RPCs which have an include_watchonly argument or includeWatching option now default to true for watch-only wallets. Affected RPCs are: getbalance, listreceivedbyaddress, listreceivedbylabel, 
listtransactions, listsinceblock, gettransaction, walletcreatefundedpsbt, and fundrawtransaction.

listunspent now returns a "reused" bool for each output if the wallet flag "avoid_reuse" is enabled.

getblockstats now uses BlockUndo data instead of the transaction index, making it much faster, no longer dependent on the -txindex configuration option, and functional for all non-pruned blocks.

utxoupdatepsbt now accepts a descriptors parameter that will fill out input and output scripts and keys when known. P2SH-witness inputs will be filled in from the UTXO set when a descriptor is 
provided that shows they're spending segwit outputs. See the RPC help text for full details.

sendrawtransaction and testmempoolaccept no longer accept a allowhighfees parameter to fail mempool acceptance if the transaction fee exceeds the value of the configuration option -maxtxfee. Now 
there is a hardcoded default maximum feerate that can be changed when calling either RPC using a maxfeerate parameter.

getmempoolancestors, getmempooldescendants, getmempoolentry, and getrawmempool no longer return a size field unless the configuration option -deprecatedrpc=size is used. Instead a new vsize field is 
returned with the transaction's virtual size (consistent with other RPCs such as getrawtransaction).

getwalletinfo now includes a scanning field that is either false (no scanning) or an object with information about the duration and progress of the wallet's scanning historical blocks for 
transactions affecting its balances.

gettransaction now accepts a third (boolean) argument verbose. If set to true, a new decoded field will be added to the response containing the decoded transaction. This field is equivalent to RPC 
decoderawtransaction, or RPC getrawtransaction when verbose is passed.

createwallet accepts a new passphrase parameter. If set, this will create the new wallet encrypted with the given passphrase. If unset (the default) or set to an empty string, no encryption will be 
used.

getchaintxstats RPC now returns the additional key of window_final_block_height.

getmempoolentry now provides a weight field containing the transaction weight as defined in BIP141.

The getnetworkinfo and getpeerinfo commands now contain a new field with decoded network service flags.

getdescriptorinfo now returns an additional checksum field containing the checksum for the unmodified descriptor provided by the user (that is, before the descriptor is normalized for the descriptor 
field).

joinpsbts now shuffles the order of the inputs and outputs of the resulting joined PSBT. Previously, inputs and outputs were added in the order PSBTs were provided. This made it easy to correlate 
inputs to outputs, representing a privacy leak.

walletcreatefundedpsbt now signals BIP125 Replace-by-Fee if the -walletrbf configuration option is set to true.

GUI changes

The GUI wallet now provides bech32 addresses by default. The user may change the address type during invoice generation using a GUI toggle, or the default address type may be changed with the 
-addresstype configuration option.

In 0.18.0, a ./configure flag was introduced to allow disabling BIP70 support in the GUI (support was enabled by default). In 0.19.0, this flag is now disabled by default. If you want to compile 
Bitcoin Core with BIP70 support in the GUI, you can pass --enable-bip70 to ./configure.

Deprecated or removed configuration options

-mempoolreplacement is removed, although default node behavior remains the same. This option previously allowed the user to prevent the node from accepting or relaying BIP125 transaction 
replacements. This is different from the remaining configuration option -walletrbf.
Deprecated or removed RPCs

bumpfee no longer accepts a totalFee option unless the configuration parameter deprecatedrpc=totalFee is specified. This parameter will be fully removed in a subsequent release.

bumpfee has a new fee_rate option as a replacement for the deprecated totalFee.

generate is now removed after being deprecated in Bitcoin Core 0.18. Use the generatetoaddress RPC instead.

P2P changes

BIP 61 reject messages were deprecated in v0.18. They are now disabled by default, but can be enabled by setting the -enablebip61 command line option. BIP 61 reject messages will be removed entirely 
in a future version of Bitcoin Core.

To eliminate well-known denial-of-service vectors in Bitcoin Core, especially for nodes with spinning disks, the default value for the -peerbloomfilters configuration option has been changed to 
false. This prevents Bitcoin Core from sending the BIP111 NODE_BLOOM service flag, accepting BIP37 bloom filters, or serving merkle blocks or transactions matching a bloom filter. Users who still 
want to provide bloom filter support may either set the configuration option to true to re-enable both BIP111 and BIP37 support or enable just BIP37 support for specific peers using the updated 
-whitelist and -whitebind configuration options described elsewhere in these release notes. For the near future, lightweight clients using public BIP111/BIP37 nodes should still be able to connect to 
older versions of Bitcoin Core and nodes that have manually enabled BIP37 support, but developers of such software should consider migrating to either using specific BIP37 nodes or an alternative 
transactio
n filtering system.

By default, Bitcoin Core will now make two additional outbound connections that are exclusively used for block-relay. No transactions or addr messages will be processed on these connections. These 
connections are designed to add little additional memory or bandwidth resource requirements but should make some partitioning attacks more difficult to carry out.

Miscellaneous CLI Changes

The testnet field in bitcoin-cli -getinfo has been renamed to chain and now returns the current network name as defined in BIP70 (main, test, regtest).


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/finance/bitcoin/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/finance/bitcoin/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/finance/bitcoin/patches/patch-src_secp256k1_configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/finance/bitcoin/Makefile
diff -u pkgsrc/finance/bitcoin/Makefile:1.16 pkgsrc/finance/bitcoin/Makefile:1.17
--- pkgsrc/finance/bitcoin/Makefile:1.16        Fri Sep 20 16:57:28 2019
+++ pkgsrc/finance/bitcoin/Makefile     Tue Dec  3 16:30:35 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2019/09/20 16:57:28 adam Exp $
+# $NetBSD: Makefile,v 1.17 2019/12/03 16:30:35 adam Exp $
 
-DISTNAME=      bitcoin-0.18.1
+DISTNAME=      bitcoin-0.19.0.1
 CATEGORIES=    finance
 MASTER_SITES=  https://bitcoincore.org/bin/bitcoin-core-${PKGVERSION_NOREV}/
 
@@ -14,6 +14,7 @@ USE_LANGUAGES=                c c++
 USE_LIBTOOL=           yes
 USE_TOOLS+=            gmake pkg-config
 GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --disable-ccache
 CONFIGURE_ARGS+=       --disable-hardening # uses -fPIE which is problemtic
 CONFIGURE_ARGS+=       --with-boost=${BUILDLINK_PREFIX.boost-libs}
 PKGCONFIG_OVERRIDE=    libbitcoinconsensus.pc.in

Index: pkgsrc/finance/bitcoin/distinfo
diff -u pkgsrc/finance/bitcoin/distinfo:1.4 pkgsrc/finance/bitcoin/distinfo:1.5
--- pkgsrc/finance/bitcoin/distinfo:1.4 Fri Sep 20 16:57:28 2019
+++ pkgsrc/finance/bitcoin/distinfo     Tue Dec  3 16:30:35 2019
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.4 2019/09/20 16:57:28 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/12/03 16:30:35 adam Exp $
 
-SHA1 (bitcoin-0.18.1.tar.gz) = 319cecf510805ad7a0844d26564550300eaab5f2
-RMD160 (bitcoin-0.18.1.tar.gz) = 57c4f73f64ca695b649f87ec3fdf1b1659150dbb
-SHA512 (bitcoin-0.18.1.tar.gz) = 40c2d76e7ae9e61ba9daed84a5d9118aab8d9c342ea1a621f730ce5fc02971138fc6eb343876b0950c10b997bdb4fe32b98bd6bb90b812c4abfdc2ef99a05fe7
-Size (bitcoin-0.18.1.tar.gz) = 7379509 bytes
+SHA1 (bitcoin-0.19.0.1.tar.gz) = ea47611c499ecfb435d3c3404ce99c33f4ac6515
+RMD160 (bitcoin-0.19.0.1.tar.gz) = 68aebc32d91724640b8112d1524adf3dd089e892
+SHA512 (bitcoin-0.19.0.1.tar.gz) = e5ae7c54e343453c6d3a7fabb056081e433f953080c542621b76bdd0200feb42fb3e18229b4b5adb87691a7c295da7a56615ffc21bd64ecde28ad07c598a9d3f
+Size (bitcoin-0.19.0.1.tar.gz) = 7386333 bytes
 SHA1 (patch-src_leveldb_port_port__posix.h) = 6a3cde12951b9801e8ffe19b6134ca48ad0d876c
-SHA1 (patch-src_netbase.cpp) = 5f9589a6572ff7d23f5f135beaf6c6533eaafe73
-SHA1 (patch-src_secp256k1_configure) = e3ef7209dc9e2c42e1d70612a774323a28a40abc
+SHA1 (patch-src_netbase.cpp) = 676ea8643f1ad86d4c94c4ed8e179b58aa1e2f95

Index: pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp
diff -u pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp:1.2 pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp:1.3
--- pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp:1.2    Fri Sep 20 16:57:28 2019
+++ pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp        Tue Dec  3 16:30:35 2019
@@ -1,15 +1,15 @@
-$NetBSD: patch-src_netbase.cpp,v 1.2 2019/09/20 16:57:28 adam Exp $
+$NetBSD: patch-src_netbase.cpp,v 1.3 2019/12/03 16:30:35 adam Exp $
 
 It is unclear why this patch exists.  NetBSD 6 and 7 have AI_ADDRCONFIG,
 although NetBSD 5 does not.  Arguably upstream should have an autoconf
 test instead.  This is not known to be reported upstream.
 
---- src/netbase.cpp.orig       2019-09-20 11:57:52.000000000 +0000
+--- src/netbase.cpp.orig       2019-11-18 09:44:44.000000000 +0000
 +++ src/netbase.cpp
-@@ -80,7 +80,11 @@ bool static LookupIntern(const char *psz
-     aiHint.ai_socktype = SOCK_STREAM;
-     aiHint.ai_protocol = IPPROTO_TCP;
-     aiHint.ai_family = AF_UNSPEC;
+@@ -91,7 +91,11 @@ bool static LookupIntern(const char *psz
+     // If we don't allow lookups, then use the AI_NUMERICHOST flag for
+     // getaddrinfo to only decode numerical network addresses and suppress
+     // hostname lookups.
 +#ifdef AI_ADDRCONFIG
      aiHint.ai_flags = fAllowLookup ? AI_ADDRCONFIG : AI_NUMERICHOST;
 +#else



Home | Main Index | Thread Index | Old Index