Surviving mutants

Generated by scripts/mutation_survivors.py from the cosmic-ray session databases. One row per surviving mutant: the suite ran that mutated line and no assertion failed.

A survivor is not automatically a bug — see the equivalent-mutant classes catalogued in docs/how-to/mutation-testing.md (type annotations, error-message f-strings, interpreter-detail rewrites). Triage means deciding, per row, whether the mutated behaviour is genuinely indistinguishable or whether nothing tests it.

425 surviving mutants across 1 modules, of which 132 are marked annot — a type annotation rewritten by a BitOr-family operator, which cannot change behaviour. Start with the unmarked rows.

src/pyrxd/hd/wallet.py — 425 survivors (132 annot)

Line

Definition

Operator

Original

Mutant

84

(module level)

AddNot

if TYPE_CHECKING:

if not TYPE_CHECKING:

91

(module level)

NumberReplacer

_GAP_LIMIT = 20

_GAP_LIMIT = 21

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Add

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str + None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_BitAnd

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str & None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_BitXor

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str ^ None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Div

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str / None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_FloorDiv

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str // None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_LShift

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str << None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Mod

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str % None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Mul

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str * None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Pow

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str ** None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_RShift

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str >> None = None) -> tuple[str, int]:

annot

106

_parse_radiant_path

ReplaceBinaryOperator_BitOr_Sub

def _parse_radiant_path(path: str | None = None) -> tuple[str, int]:

def _parse_radiant_path(path: str - None = None) -> tuple[str, int]:

annot

126

_parse_radiant_path

NumberReplacer

if len(parts) < 3:

if len(parts) < 4:

126

_parse_radiant_path

NumberReplacer

if len(parts) < 3:

if len(parts) < 2:

126

_parse_radiant_path

ReplaceComparisonOperator_Lt_LtE

if len(parts) < 3:

if len(parts) <= 3:

137

_validate_coin_type

ReplaceBinaryOperator_Mul_Div

def _validate_coin_type(value: object, *, source: str) -> int:

def _validate_coin_type(value: object, /, source: str) -> int:

165

_validate_coin_type

NumberReplacer

if not 0 <= value < 2**31:

if not 0 <= value < 2** 30:

165

_validate_coin_type

ReplaceComparisonOperator_Lt_NotEq

if not 0 <= value < 2**31:

if not 0 <= value != 2**31:

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Add

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int + None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_BitAnd

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int & None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_BitXor

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int ^ None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Div

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int / None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_FloorDiv

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int // None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_LShift

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int << None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Mod

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int % None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Mul

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int * None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Pow

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int ** None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_RShift

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int >> None) -> tuple[str, int]:

annot

174

_resolve_coin_type

ReplaceBinaryOperator_BitOr_Sub

def _resolve_coin_type(coin_type: int | None) -> tuple[str, int]:

def _resolve_coin_type(coin_type: int - None) -> tuple[str, int]:

annot

196

(module level)

NumberReplacer

_FILE_VERSION_V2 = 2

_FILE_VERSION_V2 = 3

199

(module level)

NumberReplacer

_SALT_LEN = 16  # scrypt

_SALT_LEN = 17  # scrypt

199

(module level)

NumberReplacer

_SALT_LEN = 16  # scrypt

_SALT_LEN = 15  # scrypt

200

(module level)

NumberReplacer

_NONCE_LEN = 12  # AES-GCM standard

_NONCE_LEN = 11  # AES-GCM standard

200

(module level)

NumberReplacer

_NONCE_LEN = 12  # AES-GCM standard

_NONCE_LEN = 13  # AES-GCM standard

202

(module level)

ReplaceBinaryOperator_Add_BitOr

_HEADER_LEN = 1 + _SALT_LEN + _NONCE_LEN + _TAG_LEN  # 45

_HEADER_LEN = 1 | _SALT_LEN + _NONCE_LEN + _TAG_LEN  # 45

202

(module level)

ReplaceBinaryOperator_Add_BitXor

_HEADER_LEN = 1 + _SALT_LEN + _NONCE_LEN + _TAG_LEN  # 45

_HEADER_LEN = 1 ^ _SALT_LEN + _NONCE_LEN + _TAG_LEN  # 45

209

(module level)

NumberReplacer

_SCRYPT_N = 2**14

_SCRYPT_N = 2** 13

209

(module level)

NumberReplacer

_SCRYPT_N = 2**14

_SCRYPT_N = 2** 15

209

(module level)

ReplaceBinaryOperator_Pow_Add

_SCRYPT_N = 2**14

_SCRYPT_N = 2+14

209

(module level)

ReplaceBinaryOperator_Pow_BitAnd

_SCRYPT_N = 2**14

_SCRYPT_N = 2&14

209

(module level)

ReplaceBinaryOperator_Pow_LShift

_SCRYPT_N = 2**14

_SCRYPT_N = 2<<14

209

(module level)

ReplaceBinaryOperator_Pow_Mod

_SCRYPT_N = 2**14

_SCRYPT_N = 2%14

210

(module level)

NumberReplacer

_SCRYPT_R = 8

_SCRYPT_R = 7

210

(module level)

NumberReplacer

_SCRYPT_R = 8

_SCRYPT_R = 9

211

(module level)

NumberReplacer

_SCRYPT_P = 1

_SCRYPT_P = 2

247

HdWallet

ReplaceFalseWithTrue

_seed: SecretBytes = field(repr=False)

_seed: SecretBytes = field(repr=True)

248

HdWallet

NumberReplacer

account: int = 0

account: int = 1

248

HdWallet

NumberReplacer

account: int = 0

account: int = -1

251

HdWallet

NumberReplacer

internal_tip: int = 0

internal_tip: int = -1

251

HdWallet

NumberReplacer

internal_tip: int = 0

internal_tip: int = 1

286

__setattr__

ReplaceComparisonOperator_Eq_Is

if name == "_coin_type" and getattr(self, "_initialized", False):

if name is "_coin_type" and getattr(self, "_initialized", False):

286

__setattr__

ReplaceComparisonOperator_Eq_LtE

if name == "_coin_type" and getattr(self, "_initialized", False):

if name <= "_coin_type" and getattr(self, "_initialized", False):

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Add

coin_type: int | None = None,

coin_type: int + None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_BitAnd

coin_type: int | None = None,

coin_type: int & None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_BitXor

coin_type: int | None = None,

coin_type: int ^ None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Div

coin_type: int | None = None,

coin_type: int / None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_FloorDiv

coin_type: int | None = None,

coin_type: int // None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_LShift

coin_type: int | None = None,

coin_type: int << None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Mod

coin_type: int | None = None,

coin_type: int % None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Mul

coin_type: int | None = None,

coin_type: int * None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Pow

coin_type: int | None = None,

coin_type: int ** None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_RShift

coin_type: int | None = None,

coin_type: int >> None = None,

annot

353

from_mnemonic

ReplaceBinaryOperator_BitOr_Sub

coin_type: int | None = None,

coin_type: int - None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Add

coin_type: int | None = None,

coin_type: int + None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_BitAnd

coin_type: int | None = None,

coin_type: int & None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_BitXor

coin_type: int | None = None,

coin_type: int ^ None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Div

coin_type: int | None = None,

coin_type: int / None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_FloorDiv

coin_type: int | None = None,

coin_type: int // None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_LShift

coin_type: int | None = None,

coin_type: int << None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Mod

coin_type: int | None = None,

coin_type: int % None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Mul

coin_type: int | None = None,

coin_type: int * None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Pow

coin_type: int | None = None,

coin_type: int ** None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_RShift

coin_type: int | None = None,

coin_type: int >> None = None,

annot

396

load

ReplaceBinaryOperator_BitOr_Sub

coin_type: int | None = None,

coin_type: int - None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Add

coin_type: int | None = None,

coin_type: int + None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_BitAnd

coin_type: int | None = None,

coin_type: int & None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_BitXor

coin_type: int | None = None,

coin_type: int ^ None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Div

coin_type: int | None = None,

coin_type: int / None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_FloorDiv

coin_type: int | None = None,

coin_type: int // None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_LShift

coin_type: int | None = None,

coin_type: int << None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Mod

coin_type: int | None = None,

coin_type: int % None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Mul

coin_type: int | None = None,

coin_type: int * None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Pow

coin_type: int | None = None,

coin_type: int ** None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_RShift

coin_type: int | None = None,

coin_type: int >> None = None,

annot

440

load_or_create

ReplaceBinaryOperator_BitOr_Sub

coin_type: int | None = None,

coin_type: int - None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Add

coin_type: int | None = None,

coin_type: int + None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_BitAnd

coin_type: int | None = None,

coin_type: int & None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_BitXor

coin_type: int | None = None,

coin_type: int ^ None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Div

coin_type: int | None = None,

coin_type: int / None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_FloorDiv

coin_type: int | None = None,

coin_type: int // None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_LShift

coin_type: int | None = None,

coin_type: int << None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Mod

coin_type: int | None = None,

coin_type: int % None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Mul

coin_type: int | None = None,

coin_type: int * None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Pow

coin_type: int | None = None,

coin_type: int ** None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_RShift

coin_type: int | None = None,

coin_type: int >> None = None,

annot

491

_load_existing

ReplaceBinaryOperator_BitOr_Sub

coin_type: int | None = None,

coin_type: int - None = None,

annot

492

_load_existing

ReplaceBinaryOperator_Mul_Div

*,

/,

493

_load_existing

ReplaceTrueWithFalse

normalize: bool = True,

normalize: bool = False,

504

_load_existing

NumberReplacer

mode = path.stat().st_mode & 0o777

mode = path.stat().st_mode & 510

504

_load_existing

ReplaceBinaryOperator_BitAnd_Mod

mode = path.stat().st_mode & 0o777

mode = path.stat().st_mode % 0o777

504

_load_existing

ReplaceBinaryOperator_BitAnd_Mul

mode = path.stat().st_mode & 0o777

mode = path.stat().st_mode * 0o777

505

_load_existing

ExceptionReplacer

except OSError:

except CosmicRayTestingException:

507

_load_existing

NumberReplacer

if mode is not None and (mode & 0o077) and os.name == "posix":

if mode is not None and (mode & 62) and os.name == "posix":

507

_load_existing

ReplaceComparisonOperator_Eq_GtE

if mode is not None and (mode & 0o077) and os.name == "posix":

if mode is not None and (mode & 0o077) and os.name >= "posix":

507

_load_existing

ReplaceComparisonOperator_Eq_Is

if mode is not None and (mode & 0o077) and os.name == "posix":

if mode is not None and (mode & 0o077) and os.name is "posix":

507

_load_existing

ReplaceComparisonOperator_Eq_LtE

if mode is not None and (mode & 0o077) and os.name == "posix":

if mode is not None and (mode & 0o077) and os.name <= "posix":

516

_load_existing

ReplaceComparisonOperator_Lt_Eq

if len(raw) < _HEADER_LEN:

if len(raw) == _HEADER_LEN:

516

_load_existing

ReplaceComparisonOperator_Lt_Is

if len(raw) < _HEADER_LEN:

if len(raw) is _HEADER_LEN:

516

_load_existing

ReplaceComparisonOperator_Lt_LtE

if len(raw) < _HEADER_LEN:

if len(raw) <= _HEADER_LEN:

520

_load_existing

ReplaceComparisonOperator_NotEq_IsNot

if version != _FILE_VERSION_V2:

if version is not _FILE_VERSION_V2:

520

_load_existing

ReplaceComparisonOperator_NotEq_Lt

if version != _FILE_VERSION_V2:

if version < _FILE_VERSION_V2:

527

_load_existing

ReplaceBinaryOperator_Add_BitOr

salt = raw[1 : 1 + _SALT_LEN]

salt = raw[1 : 1 | _SALT_LEN]

527

_load_existing

ReplaceBinaryOperator_Add_BitXor

salt = raw[1 : 1 + _SALT_LEN]

salt = raw[1 : 1 ^ _SALT_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitOr

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN | _NONCE_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitOr

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 | _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitOr

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 + _SALT_LEN : 1 | _SALT_LEN + _NONCE_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitXor

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN ^ _NONCE_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitXor

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 + _SALT_LEN : 1 ^ _SALT_LEN + _NONCE_LEN]

528

_load_existing

ReplaceBinaryOperator_Add_BitXor

nonce = raw[1 + _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

nonce = raw[1 ^ _SALT_LEN : 1 + _SALT_LEN + _NONCE_LEN]

529

_load_existing

ReplaceBinaryOperator_Add_BitOr

tag = raw[1 + _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

tag = raw[1 + _SALT_LEN | _NONCE_LEN : _HEADER_LEN]

529

_load_existing

ReplaceBinaryOperator_Add_BitOr

tag = raw[1 + _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

tag = raw[1 | _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

529

_load_existing

ReplaceBinaryOperator_Add_BitXor

tag = raw[1 + _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

tag = raw[1 ^ _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

529

_load_existing

ReplaceBinaryOperator_Add_BitXor

tag = raw[1 + _SALT_LEN + _NONCE_LEN : _HEADER_LEN]

tag = raw[1 + _SALT_LEN ^ _NONCE_LEN : _HEADER_LEN]

553

_load_existing

ReplaceComparisonOperator_NotEq_IsNot

if unicodedata.normalize("NFKD", passphrase) != passphrase:

if unicodedata.normalize("NFKD", passphrase) is not passphrase:

553

_load_existing

ReplaceComparisonOperator_NotEq_Lt

if unicodedata.normalize("NFKD", passphrase) != passphrase:

if unicodedata.normalize("NFKD", passphrase) < passphrase:

571

_load_existing

ExceptionReplacer

except (json.JSONDecodeError, UnicodeDecodeError) as exc:

except (json.JSONDecodeError, CosmicRayTestingException) as exc:

579

_load_existing

NumberReplacer

account = int(data.get("account", 0))

account = int(data.get("account", 1))

579

_load_existing

NumberReplacer

account = int(data.get("account", 0))

account = int(data.get("account", -1))

611

_load_existing

ReplaceComparisonOperator_NotEq_Gt

if coin_type is not None and coin_type != persisted_coin_type:

if coin_type is not None and coin_type > persisted_coin_type:

611

_load_existing

ReplaceComparisonOperator_NotEq_IsNot

if coin_type is not None and coin_type != persisted_coin_type:

if coin_type is not None and coin_type is not persisted_coin_type:

626

_load_existing

NumberReplacer

external_tip=int(data.get("external_tip", 0)),

external_tip=int(data.get("external_tip", 1)),

626

_load_existing

NumberReplacer

external_tip=int(data.get("external_tip", 0)),

external_tip=int(data.get("external_tip", -1)),

627

_load_existing

NumberReplacer

internal_tip=int(data.get("internal_tip", 0)),

internal_tip=int(data.get("internal_tip", -1)),

627

_load_existing

NumberReplacer

internal_tip=int(data.get("internal_tip", 0)),

internal_tip=int(data.get("internal_tip", 1)),

701

save

ReplaceTrueWithFalse

parent.mkdir(parents=True, exist_ok=True)

parent.mkdir(parents=False, exist_ok=True)

708

save

NumberReplacer

fd = -1

fd = - 0

708

save

NumberReplacer

fd = -1

fd = - 2

708

save

ReplaceUnaryOperator_Delete_USub

fd = -1

fd = 1

708

save

ReplaceUnaryOperator_USub_Invert

fd = -1

fd = ~1

708

save

ReplaceUnaryOperator_USub_Not

fd = -1

fd = not 1

708

save

ReplaceUnaryOperator_USub_UAdd

fd = -1

fd = +1

710

save

ExceptionReplacer

except Exception:

except CosmicRayTestingException:

711

save

AddNot

if fd != -1:

if not fd != -1:

711

save

NumberReplacer

if fd != -1:

if fd != - 0:

711

save

NumberReplacer

if fd != -1:

if fd != - 2:

711

save

ReplaceComparisonOperator_NotEq_Eq

if fd != -1:

if fd == -1:

711

save

ReplaceComparisonOperator_NotEq_Gt

if fd != -1:

if fd > -1:

711

save

ReplaceComparisonOperator_NotEq_GtE

if fd != -1:

if fd >= -1:

711

save

ReplaceComparisonOperator_NotEq_Is

if fd != -1:

if fd is -1:

711

save

ReplaceComparisonOperator_NotEq_IsNot

if fd != -1:

if fd is not -1:

711

save

ReplaceComparisonOperator_NotEq_Lt

if fd != -1:

if fd < -1:

711

save

ReplaceComparisonOperator_NotEq_LtE

if fd != -1:

if fd <= -1:

711

save

ReplaceUnaryOperator_Delete_USub

if fd != -1:

if fd != 1:

711

save

ReplaceUnaryOperator_USub_Invert

if fd != -1:

if fd != ~1:

711

save

ReplaceUnaryOperator_USub_UAdd

if fd != -1:

if fd != +1:

714

save

ExceptionReplacer

except OSError:

except CosmicRayTestingException:

719

save

ExceptionReplacer

except OSError:

except CosmicRayTestingException:

727

_derive_address

ReplaceBinaryOperator_BitOr_Add

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv + None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_BitAnd

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv & None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_BitXor

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv ^ None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_Div

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv / None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_FloorDiv

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv // None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_LShift

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv << None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_Mod

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv % None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_Mul

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv * None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_Pow

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv ** None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_RShift

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv >> None = None) -> str:

annot

727

_derive_address

ReplaceBinaryOperator_BitOr_Sub

def _derive_address(self, change: int, index: int, account_xprv: Xprv | None = None) -> str:

def _derive_address(self, change: int, index: int, account_xprv: Xprv - None = None) -> str:

annot

763

_scan_chain

NumberReplacer

consecutive_unused = 0

consecutive_unused = -1

770

_scan_chain

ReplaceComparisonOperator_Lt_IsNot

while consecutive_unused < _GAP_LIMIT:

while consecutive_unused is not _GAP_LIMIT:

770

_scan_chain

ReplaceComparisonOperator_Lt_LtE

while consecutive_unused < _GAP_LIMIT:

while consecutive_unused <= _GAP_LIMIT:

770

_scan_chain

ReplaceComparisonOperator_Lt_NotEq

while consecutive_unused < _GAP_LIMIT:

while consecutive_unused != _GAP_LIMIT:

785

_scan_chain

NumberReplacer

consecutive_unused = 0

consecutive_unused = -1

787

_scan_chain

NumberReplacer

newly_used += 1

newly_used += 2

792

_scan_chain

AddNot

if change == 0:

if not change == 0:

792

_scan_chain

NumberReplacer

if change == 0:

if change == 1:

792

_scan_chain

ReplaceComparisonOperator_Eq_Gt

if change == 0:

if change > 0:

792

_scan_chain

ReplaceComparisonOperator_Eq_GtE

if change == 0:

if change >= 0:

792

_scan_chain

ReplaceComparisonOperator_Eq_LtE

if change == 0:

if change <= 0:

792

_scan_chain

ReplaceComparisonOperator_Eq_NotEq

if change == 0:

if change != 0:

795

_scan_chain

ReplaceAndWithOr

(r.index for r in self.addresses.values() if r.change == 0 and r.used),

(r.index for r in self.addresses.values() if r.change == 0 or r.used),

795

_scan_chain

ReplaceComparisonOperator_Eq_GtE

(r.index for r in self.addresses.values() if r.change == 0 and r.used),

(r.index for r in self.addresses.values() if r.change >= 0 and r.used),

795

_scan_chain

ReplaceComparisonOperator_Eq_LtE

(r.index for r in self.addresses.values() if r.change == 0 and r.used),

(r.index for r in self.addresses.values() if r.change <= 0 and r.used),

796

_scan_chain

NumberReplacer

default=-1,

default=- 2,

796

_scan_chain

NumberReplacer

default=-1,

default=- 0,

796

_scan_chain

ReplaceUnaryOperator_Delete_USub

default=-1,

default=1,

796

_scan_chain

ReplaceUnaryOperator_USub_Invert

default=-1,

default=~1,

796

_scan_chain

ReplaceUnaryOperator_USub_Not

default=-1,

default=not 1,

796

_scan_chain

ReplaceUnaryOperator_USub_UAdd

default=-1,

default=+1,

798

_scan_chain

NumberReplacer

+ 1

+ 2

798

_scan_chain

ReplaceBinaryOperator_Add_LShift

+ 1

<< 1

803

_scan_chain

NumberReplacer

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change == 0 and r.used),

803

_scan_chain

NumberReplacer

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change == 2 and r.used),

803

_scan_chain

ReplaceAndWithOr

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change == 1 or r.used),

803

_scan_chain

ReplaceComparisonOperator_Eq_Gt

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change > 1 and r.used),

803

_scan_chain

ReplaceComparisonOperator_Eq_GtE

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change >= 1 and r.used),

803

_scan_chain

ReplaceComparisonOperator_Eq_Lt

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change < 1 and r.used),

803

_scan_chain

ReplaceComparisonOperator_Eq_LtE

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change <= 1 and r.used),

803

_scan_chain

ReplaceComparisonOperator_Eq_NotEq

(r.index for r in self.addresses.values() if r.change == 1 and r.used),

(r.index for r in self.addresses.values() if r.change != 1 and r.used),

804

_scan_chain

NumberReplacer

default=-1,

default=- 2,

804

_scan_chain

NumberReplacer

default=-1,

default=- 0,

804

_scan_chain

ReplaceUnaryOperator_Delete_USub

default=-1,

default=1,

804

_scan_chain

ReplaceUnaryOperator_USub_Invert

default=-1,

default=~1,

804

_scan_chain

ReplaceUnaryOperator_USub_Not

default=-1,

default=not 1,

804

_scan_chain

ReplaceUnaryOperator_USub_UAdd

default=-1,

default=+1,

806

_scan_chain

NumberReplacer

+ 1

+ 2

806

_scan_chain

NumberReplacer

+ 1

+ 0

806

_scan_chain

ReplaceBinaryOperator_Add_BitAnd

+ 1

& 1

806

_scan_chain

ReplaceBinaryOperator_Add_BitOr

+ 1

| 1

806

_scan_chain

ReplaceBinaryOperator_Add_BitXor

+ 1

^ 1

806

_scan_chain

ReplaceBinaryOperator_Add_Div

+ 1

/ 1

806

_scan_chain

ReplaceBinaryOperator_Add_FloorDiv

+ 1

// 1

806

_scan_chain

ReplaceBinaryOperator_Add_LShift

+ 1

<< 1

806

_scan_chain

ReplaceBinaryOperator_Add_Mod

+ 1

% 1

806

_scan_chain

ReplaceBinaryOperator_Add_Mul

+ 1

* 1

806

_scan_chain

ReplaceBinaryOperator_Add_Pow

+ 1

** 1

806

_scan_chain

ReplaceBinaryOperator_Add_RShift

+ 1

>> 1

806

_scan_chain

ReplaceBinaryOperator_Add_Sub

+ 1

- 1

815

next_receive_address

ReplaceBinaryOperator_Add_BitOr

for idx in range(self.external_tip + _GAP_LIMIT):

for idx in range(self.external_tip | _GAP_LIMIT):

815

next_receive_address

ReplaceBinaryOperator_Add_BitXor

for idx in range(self.external_tip + _GAP_LIMIT):

for idx in range(self.external_tip ^ _GAP_LIMIT):

826

next_receive_address

ReplaceBinaryOperator_Add_BitAnd

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip & _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_BitOr

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip | _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_BitXor

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip ^ _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_Div

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip / _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_FloorDiv

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip // _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_LShift

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip << _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_Mod

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip % _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_Mul

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip * _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_Pow

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip ** _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_RShift

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip >> _GAP_LIMIT

826

next_receive_address

ReplaceBinaryOperator_Add_Sub

idx = self.external_tip + _GAP_LIMIT

idx = self.external_tip - _GAP_LIMIT

827

next_receive_address

NumberReplacer

addr = self._derive_address(0, idx)

addr = self._derive_address( 1, idx)

827

next_receive_address

NumberReplacer

addr = self._derive_address(0, idx)

addr = self._derive_address( -1, idx)

828

next_receive_address

NumberReplacer

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

self.addresses[self._path_key( -1, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

828

next_receive_address

NumberReplacer

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

self.addresses[self._path_key( 1, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

828

next_receive_address

NumberReplacer

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change= 1, index=idx, used=False)

828

next_receive_address

NumberReplacer

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change= -1, index=idx, used=False)

828

next_receive_address

ReplaceFalseWithTrue

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=False)

self.addresses[self._path_key(0, idx)] = AddressRecord(address=addr, change=0, index=idx, used=True)

831

known_addresses

ReplaceBinaryOperator_BitOr_Add

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int + None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_BitAnd

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int & None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_BitXor

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int ^ None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_Div

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int / None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_FloorDiv

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int // None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_LShift

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int << None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_Mod

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int % None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_Mul

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int * None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_Pow

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int ** None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_RShift

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int >> None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_BitOr_Sub

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, *, change: int - None = None) -> list[AddressRecord]:

annot

831

known_addresses

ReplaceBinaryOperator_Mul_Div

def known_addresses(self, *, change: int | None = None) -> list[AddressRecord]:

def known_addresses(self, /, change: int | None = None) -> list[AddressRecord]:

835

known_addresses

ReplaceComparisonOperator_Eq_Is

recs = [r for r in recs if r.change == change]

recs = [r for r in recs if r.change is change]

835

known_addresses

ReplaceComparisonOperator_Eq_LtE

recs = [r for r in recs if r.change == change]

recs = [r for r in recs if r.change <= change]

842

_read_per_address

ReplaceBinaryOperator_Mul_Div

*,

/,

845

_read_per_address

ReplaceBinaryOperator_BitOr_Add

) -> list[object | None]:

) -> list[object + None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_BitAnd

) -> list[object | None]:

) -> list[object & None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_BitXor

) -> list[object | None]:

) -> list[object ^ None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_Div

) -> list[object | None]:

) -> list[object / None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_FloorDiv

) -> list[object | None]:

) -> list[object // None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_LShift

) -> list[object | None]:

) -> list[object << None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_Mod

) -> list[object | None]:

) -> list[object % None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_Mul

) -> list[object | None]:

) -> list[object * None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_Pow

) -> list[object | None]:

) -> list[object ** None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_RShift

) -> list[object | None]:

) -> list[object >> None]:

annot

845

_read_per_address

ReplaceBinaryOperator_BitOr_Sub

) -> list[object | None]:

) -> list[object - None]:

annot

878

_read_per_address

NumberReplacer

) from failures[0]

) from failures[ -1]

882

_read_per_address

NumberReplacer

type(failures[0]).__name__,

type(failures[ -1]).__name__,

883

_read_per_address

NumberReplacer

failures[0],

failures[ -1],

887

get_utxos

ReplaceBinaryOperator_Mul_Div

async def get_utxos(self, client: ElectrumXClient, *, strict: bool = False) -> list[UtxoRecord]:

async def get_utxos(self, client: ElectrumXClient, /, strict: bool = False) -> list[UtxoRecord]:

909

get_balance

ReplaceBinaryOperator_Mul_Div

async def get_balance(self, client: ElectrumXClient, *, strict: bool = False) -> int:

async def get_balance(self, client: ElectrumXClient, /, strict: bool = False) -> int:

930

get_balance

ReplaceComparisonOperator_Eq_GtE

if isinstance(result, tuple) and len(result) == 2:

if isinstance(result, tuple) and len(result) >= 2:

930

get_balance

ReplaceComparisonOperator_Eq_LtE

if isinstance(result, tuple) and len(result) == 2:

if isinstance(result, tuple) and len(result) <= 2:

944

_privkey_for

ReplaceBinaryOperator_BitOr_Add

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv + None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_BitAnd

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv & None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_BitXor

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv ^ None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_Div

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv / None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_FloorDiv

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv // None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_LShift

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv << None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_Mod

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv % None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_Mul

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv * None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_Pow

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv ** None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_RShift

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv >> None = None) -> PrivateKey:

annot

944

_privkey_for

ReplaceBinaryOperator_BitOr_Sub

def _privkey_for(self, change: int, index: int, account_xprv: Xprv | None = None) -> PrivateKey:

def _privkey_for(self, change: int, index: int, account_xprv: Xprv - None = None) -> PrivateKey:

annot

993

descriptors

ReplaceBinaryOperator_Mul_Div

def descriptors(self, *, checksum: bool = False) -> AccountDescriptors:

def descriptors(self, /, checksum: bool = False) -> AccountDescriptors:

1038

privkey_for_address

ReplaceComparisonOperator_Eq_GtE

if rec.address == address:

if rec.address >= address:

1038

privkey_for_address

ReplaceComparisonOperator_Eq_Is

if rec.address == address:

if rec.address is address:

1038

privkey_for_address

ReplaceComparisonOperator_Eq_LtE

if rec.address == address:

if rec.address <= address:

1069

_next_change_index

ReplaceBinaryOperator_Add_BitOr

for idx in range(self.internal_tip + _GAP_LIMIT):

for idx in range(self.internal_tip | _GAP_LIMIT):

1069

_next_change_index

ReplaceBinaryOperator_Add_BitXor

for idx in range(self.internal_tip + _GAP_LIMIT):

for idx in range(self.internal_tip ^ _GAP_LIMIT):

1074

_next_change_index

NumberReplacer

addr = self._derive_address(1, idx)

addr = self._derive_address( 2, idx)

1074

_next_change_index

NumberReplacer

addr = self._derive_address(1, idx)

addr = self._derive_address( 0, idx)

1078

_next_change_index

ReplaceBinaryOperator_Add_BitAnd

return self.internal_tip + _GAP_LIMIT

return self.internal_tip & _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_BitOr

return self.internal_tip + _GAP_LIMIT

return self.internal_tip | _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_BitXor

return self.internal_tip + _GAP_LIMIT

return self.internal_tip ^ _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_Div

return self.internal_tip + _GAP_LIMIT

return self.internal_tip / _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_FloorDiv

return self.internal_tip + _GAP_LIMIT

return self.internal_tip // _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_LShift

return self.internal_tip + _GAP_LIMIT

return self.internal_tip << _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_Mod

return self.internal_tip + _GAP_LIMIT

return self.internal_tip % _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_Mul

return self.internal_tip + _GAP_LIMIT

return self.internal_tip * _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_Pow

return self.internal_tip + _GAP_LIMIT

return self.internal_tip ** _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_RShift

return self.internal_tip + _GAP_LIMIT

return self.internal_tip >> _GAP_LIMIT

1078

_next_change_index

ReplaceBinaryOperator_Add_Sub

return self.internal_tip + _GAP_LIMIT

return self.internal_tip - _GAP_LIMIT

1086

_build_utxo_input

NumberReplacer

if utxo.value <= 0:

if utxo.value <= 1:

1086

_build_utxo_input

NumberReplacer

if utxo.value <= 0:

if utxo.value <= -1:

1086

_build_utxo_input

ReplaceComparisonOperator_LtE_Eq

if utxo.value <= 0:

if utxo.value == 0:

1086

_build_utxo_input

ReplaceComparisonOperator_LtE_Lt

if utxo.value <= 0:

if utxo.value < 0:

1109

collect_spendable

ReplaceBinaryOperator_Mul_Div

self, client: ElectrumXClient, *, strict: bool = False

self, client: ElectrumXClient, /, strict: bool = False

1138

collect_spendable

ReplaceTrueWithFalse

for rec, result in zip(used, results, strict=True):

for rec, result in zip(used, results, strict=False):

1153

build_send_tx

ReplaceFalseWithTrue

allow_below_relay_floor: bool = False,

allow_below_relay_floor: bool = True,

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Add

change_address: str | None = None,

change_address: str + None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_BitAnd

change_address: str | None = None,

change_address: str & None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_BitXor

change_address: str | None = None,

change_address: str ^ None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Div

change_address: str | None = None,

change_address: str / None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_FloorDiv

change_address: str | None = None,

change_address: str // None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_LShift

change_address: str | None = None,

change_address: str << None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Mod

change_address: str | None = None,

change_address: str % None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Mul

change_address: str | None = None,

change_address: str * None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Pow

change_address: str | None = None,

change_address: str ** None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_RShift

change_address: str | None = None,

change_address: str >> None = None,

annot

1154

build_send_tx

ReplaceBinaryOperator_BitOr_Sub

change_address: str | None = None,

change_address: str - None = None,

annot

1171

build_send_tx

ReplaceOrWithAnd

if not isinstance(photons, int) or isinstance(photons, bool):

if not isinstance(photons, int) and isinstance(photons, bool):

1173

build_send_tx

NumberReplacer

if photons <= 0:

if photons <= -1:

1173

build_send_tx

NumberReplacer

if photons <= 0:

if photons <= 1:

1173

build_send_tx

ReplaceComparisonOperator_LtE_Eq

if photons <= 0:

if photons == 0:

1173

build_send_tx

ReplaceComparisonOperator_LtE_Lt

if photons <= 0:

if photons < 0:

1175

build_send_tx

ReplaceComparisonOperator_Lt_LtE

if photons < DUST_THRESHOLD:

if photons <= DUST_THRESHOLD:

1183

build_send_tx

ReplaceComparisonOperator_LtE_Eq

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate == 0:

1183

build_send_tx

ReplaceOrWithAnd

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) and isinstance(fee_rate, bool) or fee_rate <= 0:

1203

build_send_tx

ReplaceTrueWithFalse

sorted_triples = sorted(triples, key=lambda t: t[0].value, reverse=True)

sorted_triples = sorted(triples, key=lambda t: t[0].value, reverse=False)

1212

build_send_tx

ReplaceBinaryOperator_Mul_Add

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES + fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_BitAnd

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES & fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_BitOr

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES | fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_BitXor

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES ^ fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_Div

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES / fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_FloorDiv

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES // fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_LShift

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES << fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_Mod

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES % fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_Pow

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES ** fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_RShift

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES >> fee_rate

1212

build_send_tx

ReplaceBinaryOperator_Mul_Sub

per_input_fee_cushion = SELECTION_INPUT_BYTES * fee_rate

per_input_fee_cushion = SELECTION_INPUT_BYTES - fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_Add

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES + fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_BitAnd

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES & fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_BitOr

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES | fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_BitXor

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES ^ fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_FloorDiv

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES // fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_LShift

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES << fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_Mod

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES % fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_Pow

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES ** fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_RShift

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES >> fee_rate

1213

build_send_tx

ReplaceBinaryOperator_Mul_Sub

base_fee_cushion = SELECTION_BASE_BYTES * fee_rate

base_fee_cushion = SELECTION_BASE_BYTES - fee_rate

1229

build_send_tx

ReplaceBinaryOperator_Sub_Add

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons + base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Add

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in + photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitAnd

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in & photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitAnd

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons & base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitOr

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in | photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitOr

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons | base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitXor

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons ^ base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_BitXor

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in ^ photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Div

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in / photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_FloorDiv

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in // photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_FloorDiv

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons // base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Mod

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in % photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Mod

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons % base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Mul

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons * base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Mul

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in * photons - base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_Pow

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons ** base_fee_cushion)

1229

build_send_tx

ReplaceBinaryOperator_Sub_RShift

trial_change = max(DUST_THRESHOLD, total_in - photons - base_fee_cushion)

trial_change = max(DUST_THRESHOLD, total_in - photons >> base_fee_cushion)

1241

build_send_tx

ReplaceBinaryOperator_Add_BitOr

if total_in >= photons + fee:

if total_in >= photons | fee:

1241

build_send_tx

ReplaceBinaryOperator_Add_BitXor

if total_in >= photons + fee:

if total_in >= photons ^ fee:

1241

build_send_tx

ReplaceComparisonOperator_GtE_Gt

if total_in >= photons + fee:

if total_in > photons + fee:

1243

build_send_tx

ReplaceComparisonOperator_GtE_Eq

if n_selected >= len(sorted_triples):

if n_selected == len(sorted_triples):

1243

build_send_tx

ReplaceComparisonOperator_GtE_Gt

if n_selected >= len(sorted_triples):

if n_selected > len(sorted_triples):

1243

build_send_tx

ReplaceComparisonOperator_GtE_Is

if n_selected >= len(sorted_triples):

if n_selected is len(sorted_triples):

1243

build_send_tx

ReplaceComparisonOperator_GtE_IsNot

if n_selected >= len(sorted_triples):

if n_selected is not len(sorted_triples):

1243

build_send_tx

ReplaceComparisonOperator_GtE_LtE

if n_selected >= len(sorted_triples):

if n_selected <= len(sorted_triples):

1243

build_send_tx

ReplaceComparisonOperator_GtE_NotEq

if n_selected >= len(sorted_triples):

if n_selected != len(sorted_triples):

1245

build_send_tx

NumberReplacer

n_selected += 1

n_selected += 2

1245

build_send_tx

NumberReplacer

n_selected += 1

n_selected += 0

1251

build_send_tx

ZeroIterationForLoop

for inp in inputs:

for inp in []:

1255

build_send_tx

ReplaceComparisonOperator_GtE_Gt

if change_value >= DUST_THRESHOLD:

if change_value > DUST_THRESHOLD:

1271

build_send_max_tx

ReplaceBinaryOperator_Mul_Div

*,

/,

1273

build_send_max_tx

ReplaceFalseWithTrue

allow_below_relay_floor: bool = False,

allow_below_relay_floor: bool = True,

1282

build_send_max_tx

NumberReplacer

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= -1:

1282

build_send_max_tx

NumberReplacer

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 1:

1282

build_send_max_tx

ReplaceComparisonOperator_LtE_Eq

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate == 0:

1282

build_send_max_tx

ReplaceComparisonOperator_LtE_Lt

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate < 0:

1282

build_send_max_tx

ReplaceOrWithAnd

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) and fee_rate <= 0:

1282

build_send_max_tx

ReplaceOrWithAnd

if not isinstance(fee_rate, int) or isinstance(fee_rate, bool) or fee_rate <= 0:

if not isinstance(fee_rate, int) and isinstance(fee_rate, bool) or fee_rate <= 0:

1294

build_send_max_tx

ReplaceComparisonOperator_LtE_Lt

if total_in <= DUST_THRESHOLD:

if total_in < DUST_THRESHOLD:

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_Add

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in + DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_BitAnd

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in & DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_BitOr

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in | DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_BitXor

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in ^ DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_FloorDiv

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in // DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_Mod

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in % DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_Mul

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in * DUST_THRESHOLD)],

1305

build_send_max_tx

ReplaceBinaryOperator_Sub_RShift

tx_outputs=[TransactionOutput(recipient_script, total_in - DUST_THRESHOLD)],

tx_outputs=[TransactionOutput(recipient_script, total_in >> DUST_THRESHOLD)],

1311

build_send_max_tx

ReplaceComparisonOperator_Lt_LtE

if out_value < DUST_THRESHOLD:

if out_value <= DUST_THRESHOLD:

1314

build_send_max_tx

ZeroIterationForLoop

for inp in inputs:

for inp in []:

1335

send

ReplaceFalseWithTrue

allow_below_relay_floor: bool = False,

allow_below_relay_floor: bool = True,

1336

send

ReplaceBinaryOperator_BitOr_Add

change_address: str | None = None,

change_address: str + None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_BitAnd

change_address: str | None = None,

change_address: str & None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_BitXor

change_address: str | None = None,

change_address: str ^ None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_Div

change_address: str | None = None,

change_address: str / None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_FloorDiv

change_address: str | None = None,

change_address: str // None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_LShift

change_address: str | None = None,

change_address: str << None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_Mod

change_address: str | None = None,

change_address: str % None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_Mul

change_address: str | None = None,

change_address: str * None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_Pow

change_address: str | None = None,

change_address: str ** None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_RShift

change_address: str | None = None,

change_address: str >> None = None,

annot

1336

send

ReplaceBinaryOperator_BitOr_Sub

change_address: str | None = None,

change_address: str - None = None,

annot

1359

send_max

ReplaceBinaryOperator_Mul_Div

*,

/,

1361

send_max

ReplaceFalseWithTrue

allow_below_relay_floor: bool = False,

allow_below_relay_floor: bool = True,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem= 127 * 1024 * 1024,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem=128 * 1025 * 1024,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem= 129 * 1024 * 1024,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem=128 * 1023 * 1024,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem=128 * 1024 * 1023,

1401

_derive_enc_key

NumberReplacer

maxmem=128 * 1024 * 1024,

maxmem=128 * 1024 * 1025,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_BitAnd

maxmem=128 * 1024 * 1024,

maxmem=128 & 1024 * 1024,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_BitAnd

maxmem=128 * 1024 * 1024,

maxmem=128 * 1024 & 1024,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_FloorDiv

maxmem=128 * 1024 * 1024,

maxmem=128 // 1024 * 1024,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_Mod

maxmem=128 * 1024 * 1024,

maxmem=128 * 1024 % 1024,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_RShift

maxmem=128 * 1024 * 1024,

maxmem=128 * 1024 >> 1024,

1401

_derive_enc_key

ReplaceBinaryOperator_Mul_RShift

maxmem=128 * 1024 * 1024,

maxmem=128 >> 1024 * 1024,