btcjson: remove WebsocketOnly for wallet extension RPCs

This commit is contained in:
Roy Lee 2022-07-29 12:10:53 -07:00
parent 05f52c11a1
commit 6b0e7592c6

View file

@ -114,9 +114,8 @@ func NewWalletIsLockedCmd() *WalletIsLockedCmd {
} }
func init() { func init() {
// The commands in this file are only usable with a wallet server via // The commands in this file are only usable with a wallet server.
// websockets. flags := UFWalletOnly
flags := UFWalletOnly | UFWebsocketOnly
MustRegisterCmd("createencryptedwallet", (*CreateEncryptedWalletCmd)(nil), flags) MustRegisterCmd("createencryptedwallet", (*CreateEncryptedWalletCmd)(nil), flags)
MustRegisterCmd("exportwatchingwallet", (*ExportWatchingWalletCmd)(nil), flags) MustRegisterCmd("exportwatchingwallet", (*ExportWatchingWalletCmd)(nil), flags)