Exemplo n.º 1
0
        /// <summary>
        /// Gets transaction information for a specific transaction.
        /// </summary>
        /// <param name="hash">Hash of the transaction to query.</param>
        /// <returns>Transaction information.</returns>
        public TxMempoolInfo Info(uint256 hash)
        {
            TxMempoolEntry item = this.memPool.MapTx.TryGet(hash);

            return(item == null ? null : new TxMempoolInfo
            {
                Trx = item.Transaction,
                Time = item.Time,
                FeeRate = new FeeRate(item.Fee, (int)item.GetTxSize()),
                FeeDelta = item.ModifiedFee - item.Fee
            });
        }
Exemplo n.º 2
0
 /// <summary>
 /// Copy constructor for a transaction memory pool entry.
 /// </summary>
 /// <param name="other">Entry to copy.</param>
 /// <exception cref="NotImplementedException"/>
 public TxMempoolEntry(TxMempoolEntry other)
 {
     throw new NotImplementedException();
 }