Skip to content

Commit

Permalink
ledger: Small updates on comments and namings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Jun 12, 2024
1 parent 4f7deda commit 913d73a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ledger/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Ledger {
pub fn _get_transactions(&self) -> Vec<Transaction> {
get_item!(self.transactions);
}
/// Checks if a transaction is OK or not.
/// Checks if a transaction is valid or not.
///
/// # Panics
///
Expand All @@ -65,8 +65,9 @@ mod tests {
use crate::ledger::Ledger;
use bitcoin::{Amount, TxOut};

/// Tests UTXO operations over ledger.
#[test]
fn add_utxo() {
fn utxo() {
let ledger = Ledger::new();

assert_eq!(ledger._get_utxos().len(), 0);
Expand Down

0 comments on commit 913d73a

Please sign in to comment.