Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Conversation

@jseagrave21
Copy link
Contributor

What current issue(s) does this address, or what feature is it adding?

  • Allows for KeyboardInterrupt during prompting in sendmany
  • Prints the fee associated with the transaction when using send
  • Cleans up a couple outputs and verifies outputs during testing
  • Replaces return None with return which is in line with other refactoring
  • retitles test_send_command.py as test_send_commands.py to match others

How did you solve this problem?
Trial and Error

How did you make sure your solution works?
Manual Testing and unittest

Are there any special changes in the code that we should be aware of?
No

Please check the following, if applicable:

  • Did you add any tests?
  • Did you run make lint?
  • Did you run make test?

Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
- add CommandShow and CommandSearch to prompt
revert changes
Merge CoZ refactor-prompt with jseagrave21 refactor-prompt
Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
Merge CoZ refactor-prompt into jseagrave21 refactor-prompt
- add support for a KeyboardInterrupt during tx creation in `sendmany`
- add printout for fee being sent in `send`
- replace `return None` with `return` to keep with the rest of the refactoring
- fix some outputs
- add test for KeyboardInterrupt
- add verification of user output during tests
- remove unnecessary code
- un-indent lines to ensure the tests are completed
Copy link
Contributor

@LysanderGG LysanderGG left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

When you rename a file, please use git mv in order to keep the history.
I couldn't review the tests :/

logger.debug("invalid fee")
return None
return
print(f"Sending with fee: {fee.ToString()}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to print when the fee is 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is what the original code did and how sendmany works. I was adding it back in. I think it is a good reminder, especially now that priority is a big deal. So they can cancel still if they want to add priority.

@jseagrave21
Copy link
Contributor Author

@LysanderGG you and @ixje have both mentioned using that. Usually when I submit a PR I use GitHub via the web browser, which is how I did it this time too. I would like to close this PR and try it again so you can review. Can I use the web browser and command line? Also, how exactly would I do it from command line?

@LysanderGG
Copy link
Contributor

LysanderGG commented Jan 7, 2019

I don't think you can do it through the github UI.
The command line would be like a classic mv, so git mv old.py new.py

See https://help.github.com/articles/renaming-a-file-using-the-command-line/ for more details.

@jseagrave21
Copy link
Contributor Author

Okay I will recreate this PR and try to use the above help to rename

@jseagrave21 jseagrave21 closed this Jan 7, 2019
@jseagrave21 jseagrave21 deleted the improve-send-&-sendmany branch January 7, 2019 03:07
@jseagrave21 jseagrave21 restored the improve-send-&-sendmany branch January 7, 2019 05:57
@jseagrave21 jseagrave21 deleted the improve-send-&-sendmany branch January 7, 2019 05:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants