mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
Merge bitcoin/bitcoin#34816: test: Remove vulture from ci, Remove some --min-confidence=60 unused code
fa90b21430test: Remove unused feature_segwit.py functions (MarcoFalke)fa6b05c96ftest: Remove unused CUSTOM_._COUNT (MarcoFalke)fa7bac94d8test: Remove unused wait_for_addr, firstAddrnServices, on_addr (MarcoFalke)fa388a3585test: Remove unused self.p2p_conn_index = 1 (MarcoFalke)fa803710e2test: Remove unused AddressType (MarcoFalke)fab5072ce1ci: Remove vulture (MarcoFalke) Pull request description: Currently, `vulture` is run with `--min-confidence=100`, which reduces its checks to dead code after control statements, which is nice, but not really a common nor severe issue. See the discussion in https://github.com/bitcoin/bitcoin/issues/34810#issuecomment-4045927137 and commit5c005363a8, which had to remove dead code manually. Reducing the confidence has shown to be too brittle/tedious in the past, so remove the tool for now from CI. Of course, removing this from CI does not prevent anyone from running it locally and removing dead code. Fixes https://github.com/bitcoin/bitcoin/issues/34810 ACKs for top commit: fanquake: ACKfa90b21430willcl-ark: ACKfa90b21430Tree-SHA512: 6a5998470dae3a17baec29b70b02333f4cd9b81bc4c6a05b56085ff1ba527ed7bdeccd17b09d9ad785ae03c97982ee1f3147e4df3bd537c66b02e9a44d0e5f15
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
- bech32 segwit v0 P2WPKH and P2WSH addresses.
|
||||
- bech32m segwit v1 P2TR addresses."""
|
||||
|
||||
import enum
|
||||
import unittest
|
||||
|
||||
from .script import (
|
||||
@@ -37,13 +36,6 @@ ADDRESS_BCRT1_UNSPENDABLE_DESCRIPTOR = 'addr(bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
|
||||
# Coins sent to this address can be spent with a witness stack of just OP_TRUE
|
||||
ADDRESS_BCRT1_P2WSH_OP_TRUE = 'bcrt1qft5p2uhsdcdc3l2ua4ap5qqfg4pjaqlp250x7us7a8qqhrxrxfsqseac85'
|
||||
|
||||
|
||||
class AddressType(enum.Enum):
|
||||
bech32 = 'bech32'
|
||||
p2sh_segwit = 'p2sh-segwit'
|
||||
legacy = 'legacy' # P2PKH
|
||||
|
||||
|
||||
b58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
|
||||
|
||||
|
||||
|
||||
@@ -120,7 +120,6 @@ class TestNode():
|
||||
"""
|
||||
|
||||
self.index = i
|
||||
self.p2p_conn_index = 1
|
||||
self.datadir_path = datadir_path
|
||||
self.bitcoinconf = self.datadir_path / "bitcoin.conf"
|
||||
self.stdout_dir = self.datadir_path / "stdout"
|
||||
|
||||
Reference in New Issue
Block a user