mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
lint: fix issues from lint-python
This commit is contained in:
parent
95503abe8c
commit
4adeea7339
2 changed files with 2 additions and 3 deletions
|
|
@ -605,7 +605,7 @@ class CTxOutValue:
|
|||
return r
|
||||
|
||||
def setToAmount(self, amount):
|
||||
if type(amount) == int:
|
||||
if isinstance(amount, int):
|
||||
commit = [1]*9
|
||||
for i in range(8): #8 bytes
|
||||
commit[8-i] = ((amount >> (i*8)) & 0xff)
|
||||
|
|
@ -663,7 +663,7 @@ class CTxOut():
|
|||
|
||||
def __init__(self, nValue=CTxOutValue(), scriptPubKey=b'', nAsset=CTxOutAsset(BITCOIN_ASSET_OUT), nNonce=CTxOutNonce()):
|
||||
self.nAsset = nAsset
|
||||
if type(nValue) is int:
|
||||
if isinstance(nValue, int):
|
||||
self.nValue = CTxOutValue(nValue)
|
||||
else:
|
||||
self.nValue = nValue
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
"""Test the importprunedfunds and removeprunedfunds RPCs."""
|
||||
from decimal import Decimal
|
||||
|
||||
from test_framework.address import key_to_p2wpkh
|
||||
from test_framework.blocktools import COINBASE_MATURITY
|
||||
from test_framework import liquid_addr
|
||||
from test_framework.key import ECKey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue