Commit 1030854 1 parent c4d36fc commit 1030854 Copy full SHA for 1030854
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
//! Code for retrieving transaction receipts from the database.
2
2
//!
3
3
//! This module exposes:
4
- //! 1. the [`find_transaction_receipts_for_block_range `] function, that queries the database and returns
5
- //! transaction receipts for a given block range .
4
+ //! 1. the [`find_transaction_receipts_in_block `] function, that queries the database and returns
5
+ //! transaction receipts present in a given block.
6
6
//! 2. the [`LightTransactionReceipt`] type, which holds basic information about the retrieved
7
7
//! transaction receipts.
8
8
@@ -170,7 +170,7 @@ impl TryFrom<RawTransactionReceipt> for LightTransactionReceipt {
170
170
}
171
171
172
172
/// Queries the database for all the transaction receipts in a given block range.
173
- pub fn find_transaction_receipts_for_block (
173
+ pub fn find_transaction_receipts_in_block (
174
174
conn : & PgConnection ,
175
175
chain_name : & str ,
176
176
block_hash : & H256 ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ mod data {
66
66
use graph:: {
67
67
constraint_violation,
68
68
prelude:: {
69
- transaction_receipt:: { find_transaction_receipts_for_block , LightTransactionReceipt } ,
69
+ transaction_receipt:: { find_transaction_receipts_in_block , LightTransactionReceipt } ,
70
70
StoreError ,
71
71
} ,
72
72
} ;
@@ -1088,14 +1088,14 @@ mod data {
1088
1088
. unwrap ( ) ;
1089
1089
}
1090
1090
1091
- /// Delegates to [`transaction_receipt::find_transaction_receipts_for_block `].
1092
- pub ( crate ) fn find_transaction_receipts_for_block (
1091
+ /// Delegates to [`transaction_receipt::find_transaction_receipts_in_block `].
1092
+ pub ( crate ) fn find_transaction_receipts_in_block (
1093
1093
& self ,
1094
1094
conn : & PgConnection ,
1095
1095
chain_name : & str ,
1096
1096
block_hash : & H256 ,
1097
1097
) -> anyhow:: Result < Vec < LightTransactionReceipt > > {
1098
- find_transaction_receipts_for_block ( conn, chain_name, block_hash)
1098
+ find_transaction_receipts_in_block ( conn, chain_name, block_hash)
1099
1099
}
1100
1100
}
1101
1101
}
@@ -1439,7 +1439,7 @@ impl ChainStoreTrait for ChainStore {
1439
1439
) -> Result < Vec < LightTransactionReceipt > , StoreError > {
1440
1440
let conn = self . get_conn ( ) ?;
1441
1441
self . storage
1442
- . find_transaction_receipts_for_block ( & conn, & self . chain , & block_hash)
1442
+ . find_transaction_receipts_in_block ( & conn, & self . chain , & block_hash)
1443
1443
. map_err ( |e| e. into ( ) )
1444
1444
}
1445
1445
}
You can’t perform that action at this time.
0 commit comments