From 8e1143345985175cee289dd15c0211e375958256 Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:14:07 +0200 Subject: [PATCH] Added threshold to wallet api response (#314) --- src/Proto/nodeguard.proto | 1 + src/Rpc/NodeGuardService.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Proto/nodeguard.proto b/src/Proto/nodeguard.proto index 83a14bf8..f99035db 100644 --- a/src/Proto/nodeguard.proto +++ b/src/Proto/nodeguard.proto @@ -135,6 +135,7 @@ message Wallet { string name = 2; bool is_hot_wallet = 3; repeated AccountKeySettings account_key_settings = 4; + int32 threshold = 5; } message GetAvailableWalletsResponse { repeated Wallet wallets = 1; diff --git a/src/Rpc/NodeGuardService.cs b/src/Rpc/NodeGuardService.cs index 001d5da0..02c2e9c0 100644 --- a/src/Rpc/NodeGuardService.cs +++ b/src/Rpc/NodeGuardService.cs @@ -315,7 +315,8 @@ public override async Task GetAvailableWallets(GetA { Xpub = k.XPUB, }) - } + }, + Threshold = w.MofN }).ToList() } };