//https://api.happynodes.f27.ventures/redis/unconfirmed public async Task <Unconfirmed> GetUnconfirmed() { var result = await _restClient.GetAsync(UnconfirmedEndpoint).ConfigureAwait(false); var data = await result.Content.ReadAsStringAsync(); return(Unconfirmed.FromJson(data)); }
public void PushEntry(WalletEntry entry, BlockType?blockType) { if (blockType == null && entry.Block != null) { throw new ArgumentException("An entry coming from a block should have a blocktype"); } Unconfirmed.PushEntry(entry); if (entry.Type == WalletEntryType.Outcome) { Available.PushEntry(entry); } if (entry.Block != null && blockType == BlockType.Main) { Available.PushEntry(entry); Confirmed.PushEntry(entry); } }