ui: Improve rpc page usability for Decred.

This commit is contained in:
tecnovert
2024-05-21 14:29:02 +02:00
parent aa1e1fd79c
commit fcf234ef34
8 changed files with 85 additions and 36 deletions

View File

@@ -35,6 +35,9 @@ class PIVXInterface(BTCInterface):
# No multiwallet support
self.rpc_wallet = make_rpc_func(self._rpcport, self._rpcauth, host=self._rpc_host)
def checkWallets(self) -> int:
return 1
def signTxWithWallet(self, tx):
rv = self.rpc('signrawtransaction', [tx.hex()])
return bytes.fromhex(rv['hex'])