mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-05-29 04:08:49 +00:00
Merge remote-tracking branch 'github/develop' into develop
This commit is contained in:
commit
3e727fb760
@ -12,7 +12,7 @@ If you know how to make a pull request to contribute a fix, please write the cor
|
||||
|
||||
# Reading this book (Where is the PDF?)
|
||||
|
||||
To read this book, see book.asciidoc. Click on each of the chapters to read in your browser. This is not as convenient as reading a PDF or an ebook on your e-reader. Convenience costs money (see below).
|
||||
To read this book, see [book.asciidoc](https://github.com/bitcoinbook/bitcoinbook/blob/develop/book.asciidoc). Click on each of the chapters to read in your browser. This is not as convenient as reading a PDF or an ebook on your e-reader. Convenience costs money (see below).
|
||||
|
||||
The 2nd edition of "Mastering Bitcoin" is available under a CC-BY-NC-ND license, not a CC-BY-SA license.
|
||||
|
||||
|
@ -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)
|
||||
|
@ -32,6 +32,3 @@ for txid in transactions:
|
||||
block_value = block_value + tx_value
|
||||
|
||||
print("Total value in block: ", block_value)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user