File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
internal/mithril-persistence/src/database/repository Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl CardanoTransactionRepository {
35
35
Self { connection }
36
36
}
37
37
38
- /// Return all the [CardanoTransactionRecord]s in the database using chronological order .
38
+ /// Return all the [CardanoTransactionRecord]s in the database.
39
39
pub async fn get_all_transactions ( & self ) -> StdResult < Vec < CardanoTransactionRecord > > {
40
40
let provider = GetCardanoTransactionProvider :: new ( & self . connection ) ;
41
41
let filters = WhereCondition :: default ( ) ;
@@ -44,7 +44,8 @@ impl CardanoTransactionRepository {
44
44
Ok ( transactions. collect ( ) )
45
45
}
46
46
47
- /// Return all the [CardanoTransactionRecord]s in the database using chronological order.
47
+ /// Return all the [CardanoTransactionRecord]s in the database where block number is in the
48
+ /// given range.
48
49
pub async fn get_transactions_in_range_blocks (
49
50
& self ,
50
51
range : Range < BlockNumber > ,
@@ -56,8 +57,8 @@ impl CardanoTransactionRepository {
56
57
Ok ( transactions. collect ( ) )
57
58
}
58
59
59
- /// Return all the [CardanoTransactionRecord]s in the database up to the given beacon using
60
- /// order of insertion.
60
+ /// Return all the [CardanoTransactionRecord]s in the database up to the given beacon.
61
+ ///
61
62
/// Note: until we rely on block number based beacons, this function needs to compute the highest block number for the given immutable file number.
62
63
pub async fn get_transactions_up_to (
63
64
& self ,
You can’t perform that action at this time.
0 commit comments