Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent da095c5 commit 515e8c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions btclib_node/chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def __init__(self):
"dnsseed.emzy.de",
"seed.bitcoin.wiz.biz",
]
self.genesis = create_genesis(
1231006505, 2083236893, 0x1D00FFFF, 1, 50 * 10**8
)
self.genesis = create_genesis(1231006505, 2083236893, 0x1D00FFFF, 1, 50 * 10**8)
self.flags = [
(170061, "P2SH"),
(363725, "DERSIG"),
Expand All @@ -105,9 +103,7 @@ def __init__(self):
"seed.testnet.bitcoin.sprovoost.nl",
"testnet-seed.bluematt.me",
]
self.genesis = create_genesis(
1296688602, 414098458, 0x1D00FFFF, 1, 50 * 10**8
)
self.genesis = create_genesis(1296688602, 414098458, 0x1D00FFFF, 1, 50 * 10**8)
self.flags = [
(395, "P2SH"),
(330776, "DERSIG"),
Expand Down
6 changes: 3 additions & 3 deletions btclib_node/chainstate/utxo_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def add_block(self, block):

for i, tx_out in enumerate(tx.vout):
out_point = OutPoint(tx_id, i, check_validity=False)
self.updated_utxo_set[
out_point.serialize(check_validity=False)
] = tx_out
self.updated_utxo_set[out_point.serialize(check_validity=False)] = (
tx_out
)
added.append(out_point)

complete_transactions.append([prev_outputs, tx])
Expand Down

0 comments on commit 515e8c6

Please sign in to comment.