Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
- name: Run pycodestyle
run: |
pycodestyle \
--exclude=src/electrumx/lib/zcash \
--max-line-length=140 \
src

Expand Down
7 changes: 4 additions & 3 deletions src/electrumx/lib/tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ def read_tx(self):
self.cursor += 96 * nSpendsSapling # vSpendsSapling
nOutputsSapling = self._read_varint()
self.cursor += 756 * nOutputsSapling # vOutputsSapling
hasSapling = not(nSpendsSapling == 0 and nOutputsSapling == 0)
hasSapling = not (nSpendsSapling == 0 and nOutputsSapling == 0)
if (hasSapling):
self.cursor += 8 # valueBalanceSapling
if not(nSpendsSapling == 0):
if not (nSpendsSapling == 0):
self.cursor += 32 # anchorSapling
self.cursor += 192 * nSpendsSapling # vSpendProofsSapling
self.cursor += 64 * nSpendsSapling # vSpendAuthSigsSapling
Expand All @@ -606,7 +606,7 @@ def read_tx(self):
self.cursor += 32 # anchorOrchard
sizeProofsOrchard = self._read_varint()
self.cursor += sizeProofsOrchard # proofsOrchard
self.cursor += 64 * nActionsOrchard # vSpendAuthSigsOrchard
self.cursor += 64 * nActionsOrchard # vSpendAuthSigsOrchard
self.cursor += 64 # bindingSigOrchard
if is_zip229_v6:
nActionsIronwood = self._read_varint()
Expand Down Expand Up @@ -662,6 +662,7 @@ def _zcash_txid_canonical(txin, *, expected_version):
) from e
return bytes(reversed(hex_str_to_bytes(tx.hash)))


@dataclass(kw_only=True, slots=True)
class TxPIVX(Tx):
'''Class representing a PIVX transaction.'''
Expand Down
5 changes: 5 additions & 0 deletions tests/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def _does_coin_require_testcase(coin: Coin) -> bool:
coins.Sibcoin,
coins.CanadaeCoin,
coins.Auroracoin,
coins.Clam,
coins.Diabase,
coins.Pepecoin,
coins.Riecoin,
coins.Verus,
]:
return False
return True
Expand Down