Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Jsonrpc backend refactor #82

Merged
merged 4 commits into from
Jan 20, 2021
Merged

Jsonrpc backend refactor #82

merged 4 commits into from
Jan 20, 2021

Conversation

emesik
Copy link
Contributor

@emesik emesik commented Jan 20, 2021

An example of split

Jeffrey Ryan and others added 4 commits January 19, 2021 02:00
Motivation:
    `backends.jsonrpc` was already probably longer than it needed to be. I split
up the logic for `JSONRPCDaemon` and `JSONRPCWallet` in order to increase readibility.
This will be especially important in the future as more backends are written.
In particular, an issue (#73) is currently open which suggests adding MyMonero
API support. If this is added, it might be worth also adding the OpenMonero API.
Both of these are JSON RPC APIs, but I think it wouldn't necesarily make a lot
of sense to put these all into the same file so I went ahead and split the backends
up. Also, because of the default backends PR (#79), to the most basic of users, it
will matter much less how the backends are named, if you chose to take issue with
my naming. I hope this PR is useful for future development!

Changes:
    1. Moved `JSONRPCDaemon` to `backends.rpcdaemon`
    2. Moved `JSONRPCWallet` to `backends.rpcwallet`
    3. Moved `jsonrpc` exceptions to `backends.rpcexceptions`
    4. `monero.backends.jsonrpc` now only imports the backends and exceptions
    5. Edited test files accordingly

Notes:
    * This change is backwards compatible
@emesik emesik merged commit 73ad956 into master Jan 20, 2021
@jeffro256
Copy link

Looks good! Should the 0.7.x branch also be updated with the new commits?

@jeffro256 jeffro256 mentioned this pull request Jan 20, 2021
@emesik
Copy link
Contributor Author

emesik commented Jan 20, 2021

I'll update branches when releasing.

@emesik emesik deleted the jsonrpc_backend_refactor branch November 27, 2021 18:47
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