1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-12-24 15:38:08 +00:00

Merge pull request #491 from cclauss/whitespace-fixes

Whitespace fixes to placate flake8
This commit is contained in:
Andreas M. Antonopoulos 2018-02-02 19:27:40 -08:00 committed by GitHub
commit 4c8da579d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 12 deletions

View File

@ -8,6 +8,7 @@ from pycoin.key.validate import is_address_valid, is_wif_valid
from pycoin.services import spendables_for_address
from pycoin.tx.tx_utils import create_signed_tx
def get_address(which):
while 1:
print("enter the %s address=> " % which, end='')
@ -17,6 +18,7 @@ def get_address(which):
return address
print("invalid address, please try again")
src_address = get_address("source")
spendables = spendables_for_address(src_address)
print(spendables)

View File

@ -32,6 +32,3 @@ for txid in transactions:
block_value = block_value + tx_value
print("Total value in block: ", block_value)