예제 #1
0
        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)
            });
        }
예제 #2
0
        public TransactionPoolInspection MapTransactionPoolInspection(TransactionPoolInfo transactionPoolInfo)
        {
            if (transactionPoolInfo == null)
            {
                return(null);
            }

            var transactionPoolInfoData = MapTransactionPoolInfoData(transactionPoolInfo);

            return(new TransactionPoolInspection
            {
                Pending = transactionPoolInfoData.Pending,
                Queued = transactionPoolInfoData.Queued
            });
        }
예제 #3
0
 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);
 }
예제 #5
0
 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()));
 }
예제 #6
0
 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()));
 }