mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-11-13 10:48:15 +11:00
TX: Fixed watchonly errors
This commit is contained in:
parent
6db6d02e9e
commit
18607358bf
@ -602,11 +602,15 @@ namespace FireWallet
|
|||||||
watchOnly = true;
|
watchOnly = true;
|
||||||
toolStripStatusLabelLedger.Text = "Cold Wallet";
|
toolStripStatusLabelLedger.Text = "Cold Wallet";
|
||||||
toolStripStatusLabelLedger.Visible = true;
|
toolStripStatusLabelLedger.Visible = true;
|
||||||
|
buttonRevealAll.Visible = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
watchOnly = false;
|
watchOnly = false;
|
||||||
toolStripStatusLabelLedger.Visible = false;
|
toolStripStatusLabelLedger.Visible = false;
|
||||||
|
buttonRevealAll.Visible = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -884,7 +888,13 @@ namespace FireWallet
|
|||||||
int toSkip = TotalTX - toGet;
|
int toSkip = TotalTX - toGet;
|
||||||
|
|
||||||
// GET TXs
|
// GET TXs
|
||||||
APIresponse = await APIPost("", true, "{\"method\": \"listtransactions\",\"params\": [\"default\"," + toGet + "," + toSkip + ", true]}");
|
if (watchOnly)
|
||||||
|
{
|
||||||
|
APIresponse = await APIPost("", true, "{\"method\": \"listtransactions\",\"params\": [\"default\"," + toGet + "," + toSkip + ", true]}");
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
APIresponse = await APIPost("", true, "{\"method\": \"listtransactions\",\"params\": [\"default\"," + toGet + "," + toSkip + "]}");
|
||||||
|
}
|
||||||
|
|
||||||
if (APIresponse == "Error")
|
if (APIresponse == "Error")
|
||||||
{
|
{
|
||||||
@ -902,7 +912,10 @@ namespace FireWallet
|
|||||||
}
|
}
|
||||||
|
|
||||||
JArray txs = JArray.Parse(TXGET["result"].ToString());
|
JArray txs = JArray.Parse(TXGET["result"].ToString());
|
||||||
if (toGet > txs.Count) toGet = txs.Count;
|
if (toGet > txs.Count)
|
||||||
|
{
|
||||||
|
toGet = txs.Count;
|
||||||
|
}
|
||||||
Control[] tmpControls = new Control[toGet];
|
Control[] tmpControls = new Control[toGet];
|
||||||
for (int i = 0; i < toGet; i++)
|
for (int i = 0; i < toGet; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user