public TransactionPoolStatus MapTransactionPoolStatus(TransactionPoolInfo transactionPoolInfo) { if (transactionPoolInfo == null) { return(null); } return(new TransactionPoolStatus { Pending = transactionPoolInfo.Pending.Sum(t => t.Value.Count), Queued = transactionPoolInfo.Queued.Sum(t => t.Value.Count) }); }
public TransactionPoolInspection MapTransactionPoolInspection(TransactionPoolInfo transactionPoolInfo) { if (transactionPoolInfo == null) { return(null); } var transactionPoolInfoData = MapTransactionPoolInfoData(transactionPoolInfo); return(new TransactionPoolInspection { Pending = transactionPoolInfoData.Pending, Queued = transactionPoolInfoData.Queued }); }
MapTransactionPoolInfoData(TransactionPoolInfo transactionPoolInfo) => (transactionPoolInfo.Pending
public TransactionPoolStatus(TransactionPoolInfo info) { Pending = info.Pending.Sum(t => t.Value.Count); Queued = info.Queued.Sum(t => t.Value.Count); }
public TransactionPoolContent(TransactionPoolInfo info) { Pending = info.Pending.ToDictionary(k => k.Key, k => k.Value.ToDictionary(v => v.Key, v => v.Value.Select(tx => new TransactionForRpc(null, null, null, tx)).ToArray())); Queued = info.Queued.ToDictionary(k => k.Key, k => k.Value.ToDictionary(v => v.Key, v => v.Value.Select(tx => new TransactionForRpc(null, null, null, tx)).ToArray())); }
public TransactionPoolInspection(TransactionPoolInfo info) { Pending = info.Pending.ToDictionary(k => k.Key, k => k.Value.ToDictionary(v => v.Key, v => v.Value.Select(GetTransactionSummary).ToArray())); Queued = info.Queued.ToDictionary(k => k.Key, k => k.Value.ToDictionary(v => v.Key, v => v.Value.Select(GetTransactionSummary).ToArray())); }