Merge pull request #540 from talvasconcelos/fix/watchonly_mempool

fix update mempool
This commit is contained in:
Arc 2022-03-07 04:19:23 +00:00 committed by GitHub
commit 1e759283ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ async def api_get_addresses(wallet_id, w: WalletTypeInfo = Depends(get_key_type)
async def api_update_mempool( async def api_update_mempool(
endpoint: str = Query(...), w: WalletTypeInfo = Depends(require_admin_key) endpoint: str = Query(...), w: WalletTypeInfo = Depends(require_admin_key)
): ):
mempool = await update_mempool(endpoint, user=w.wallet.user) mempool = await update_mempool(**{"endpoint": endpoint}, user=w.wallet.user)
return mempool.dict() return mempool.dict()