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

Don't autopush txs across RPC #16314

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

Quexington
Copy link
Contributor

@Quexington Quexington commented Sep 12, 2023

This PR is a step in the direction of a more observer-style wallet.

Currently, most of our wallet functions just push directly to the network as a matter of course when creating a transaction. While this is convenient (especially in tests) it will be impossible should we get to a wallet design that does not contain the private key as a key component to wallet operations.

For now, the wallet still signs the transaction and has it ready to be pushed to the network should the user specify that. But all of the pushing logic has been migrated to the top-most layer available (usually the RPC) so that the user always has control over whether or not they would like to immediately push the transaction.

In addition, any transaction method in the RPC now returns a "transactions" key so that it is easy for a front-end client to have everything they need to push the transaction as if the wallet was doing it (using the push_transactions endpoint).

@Quexington Quexington added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Sep 12, 2023
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Sep 18, 2023
Base automatically changed from quex.create_message_spend_tx to main September 18, 2023 19:57
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Sep 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 19, 2023
@Quexington Quexington marked this pull request as ready for review September 19, 2023 13:55
@Quexington Quexington requested a review from a team as a code owner September 19, 2023 13:55
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 19, 2023
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Sep 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 20, 2023
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Sep 20, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 20, 2023
@github-actions github-actions bot added merge_conflict Branch has conflicts that prevent merge to main and removed merge_conflict Branch has conflicts that prevent merge to main labels Sep 25, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 25, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 25, 2023
geoffwalmsley
geoffwalmsley previously approved these changes Sep 28, 2023
@github-actions github-actions bot added merge_conflict Branch has conflicts that prevent merge to main and removed merge_conflict Branch has conflicts that prevent merge to main labels Sep 30, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 3, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 3, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 3, 2023
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Oct 3, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 3, 2023
@Quexington Quexington changed the base branch from main to long_lived/vault October 11, 2023 13:45
@Quexington Quexington force-pushed the quex.all_tx_pushing_optional branch from d6dc533 to 75555f5 Compare October 11, 2023 13:45
@Quexington Quexington force-pushed the quex.all_tx_pushing_optional branch from 95fb566 to 853b793 Compare October 12, 2023 21:41
@github-actions github-actions bot added merge_conflict Branch has conflicts that prevent merge to main and removed merge_conflict Branch has conflicts that prevent merge to main labels Oct 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 19, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Oct 19, 2023
@Chia-Network Chia-Network deleted a comment from coveralls-official bot Oct 19, 2023
@Quexington Quexington force-pushed the quex.all_tx_pushing_optional branch from e2553cd to 25cd068 Compare October 19, 2023 18:43
@Quexington Quexington force-pushed the quex.all_tx_pushing_optional branch from 25cd068 to 8ae964d Compare October 19, 2023 18:54
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Oct 30, 2023
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Nov 2, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Nov 2, 2023
@Chia-Network Chia-Network deleted a comment from github-actions bot Nov 2, 2023
Copy link
Contributor

github-actions bot commented Nov 2, 2023

File Coverage Missing Lines
chia/wallet/cat_wallet/cat_wallet.py 0.0% lines 715
Total Missing Coverage
490 lines Unknown 99%

Copy link
Contributor

@wjblanke wjblanke left a comment

Choose a reason for hiding this comment

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

aok

@Quexington Quexington merged commit 008f3ba into long_lived/vault Nov 6, 2023
@Quexington Quexington deleted the quex.all_tx_pushing_optional branch November 6, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog coverage-diff vault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants