count: Option, _skip: Option, _include_watchonly: Option, ) -> Result, jsonrpc_core::Error> { let state = self.state(); Ok( state .transactions .iter() .take(count.unwrap_or(u16::MAX).into()) .map(|(txid, tx)| (*txid, tx)) .chain(state.mempool.iter().map(|tx| (tx.txid(), tx))) .map(|(txid, tx)| ListTransactionResult { info: WalletTxInfo { confirmations: state.get_confirmations(tx), blockhash: None, blockindex: None, blocktime: None, blockheight: None, txid, time: 0, timereceived: 0, bip125_replaceable: Bip125Replaceable::Unknown, wallet_conflicts: Vec::new(), }, detail: GetTransactionResultDetail { address: None, category: GetTransactionResultDetailCategory::Immature, amount: SignedAmount::from_sat(0), label: None,