Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update api.py #72

Closed
wants to merge 1 commit into from
Closed

Update api.py #72

wants to merge 1 commit into from

Conversation

Latand
Copy link

@Latand Latand commented Apr 17, 2019

added fees and preference parameters to the simple_send function.

Copy link
Contributor

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Latand. Thank you for the PR!
Unfortunately, it won't work as is and also changes the default behavior. See the two comments.

@@ -1585,7 +1585,7 @@ def broadcast_signed_transaction(unsigned_tx, signatures, pubkeys, coin_symbol='


def simple_spend(from_privkey, to_address, to_satoshis, change_address=None,
privkey_is_compressed=True, min_confirmations=0, api_key=None, coin_symbol='btc'):
privkey_is_compressed=True, min_confirmations=0, api_key=None, coin_symbol='btc', fees=None, preference='low'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. However here you are changing the default preference from high to low. See here

preference='high', coin_symbol='btc', api_key=None):
.

@@ -1626,6 +1626,8 @@ def simple_spend(from_privkey, to_address, to_satoshis, change_address=None,
unsigned_tx = create_unsigned_tx(
inputs=inputs,
outputs=outputs,
fees=fees,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such field in create_unsigned_tx function.

@quentinlesceller
Copy link
Contributor

Closing due to lack of activity. Feel free to rebase and reopen a PR. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants