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 {
3535 Self { connection }
3636 }
3737
38- /// Return all the [CardanoTransactionRecord]s in the database using chronological order .
38+ /// Return all the [CardanoTransactionRecord]s in the database.
3939 pub async fn get_all_transactions ( & self ) -> StdResult < Vec < CardanoTransactionRecord > > {
4040 let provider = GetCardanoTransactionProvider :: new ( & self . connection ) ;
4141 let filters = WhereCondition :: default ( ) ;
@@ -44,7 +44,8 @@ impl CardanoTransactionRepository {
4444 Ok ( transactions. collect ( ) )
4545 }
4646
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.
4849 pub async fn get_transactions_in_range_blocks (
4950 & self ,
5051 range : Range < BlockNumber > ,
@@ -56,8 +57,8 @@ impl CardanoTransactionRepository {
5657 Ok ( transactions. collect ( ) )
5758 }
5859
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+ ///
6162 /// Note: until we rely on block number based beacons, this function needs to compute the highest block number for the given immutable file number.
6263 pub async fn get_transactions_up_to (
6364 & self ,
You can’t perform that action at this time.
0 commit comments