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

Create WalletService (1/2) #81

Merged
merged 4 commits into from
Feb 7, 2022
Merged

Conversation

alvasw
Copy link
Contributor

@alvasw alvasw commented Feb 7, 2022

The WalletService is the public API that other modules call. It exposes all wallet functionalities. All methods of the WalletService are asynchronous and return a CompletableFuture.

If Bisq crashes e.g. due to a crash Bisq won't be able to reconnect to
the wallet because the wallet is was not properly unloaded. If it's
already loaded we don't have to reload it.
In Bitcoind multiple wallets can be loaded at the same time. Each wallet
gets its own RPC endpoint, and all non-wallet-related RPC methods have
their own endpoint. This change creates WalletRpcConfig for the wallet
endpoint. The existing RpcConfig is for non-wallet-related RPC calls,
e.g., loadwallet.
Bisq will support multiple external wallets. All wallet implementations
expose their functionalities using the Wallet interface. The Wallet
interface should only be used within the wallet module as an abstraction.
The WalletService is the public API that other modules call. It exposes
all wallet functionalities.
@alvasw alvasw mentioned this pull request Feb 7, 2022
@alvasw alvasw changed the title Create WalletService Create WalletService (1/2) Feb 7, 2022
@alvasw alvasw closed this Feb 7, 2022
@alvasw alvasw deleted the wallet_interface branch February 7, 2022 19:55
@alvasw alvasw restored the wallet_interface branch February 7, 2022 19:55
@alvasw alvasw reopened this Feb 7, 2022
Copy link
Contributor

@chimp1984 chimp1984 left a comment

Choose a reason for hiding this comment

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

utACK

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.

None yet

2 participants