Commit c3922f1 1 parent 649f0c2 commit c3922f1 Copy full SHA for c3922f1
File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ //! Code for retrieving transaction gas information from the database.
2
+ //!
3
+ //! This module exposes the [`find_transaction_gas_in_block_range`] function, that queries the
4
+ //! database and returns how much gas each transaction were issued with.
5
+
1
6
use super :: transaction_receipt:: drain_vector;
2
7
use diesel:: {
3
8
pg:: { Pg , PgConnection } ,
@@ -96,7 +101,7 @@ struct RawTransactionGas {
96
101
}
97
102
98
103
/// Like web3::types::Transaction, but with fewer fields.
99
- pub ( crate ) struct TransactionGas {
104
+ struct TransactionGas {
100
105
pub transaction_hash : H256 ,
101
106
pub gas : U256 ,
102
107
}
Original file line number Diff line number Diff line change
1
+ //! Code for retrieving transaction receipts from the database.
2
+ //!
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.
6
+ //! 2. the [`LightTransactionReceipt`] type, which holds basic information about the retrieved
7
+ //! transaction receipts.
8
+
1
9
use diesel:: {
2
10
pg:: { Pg , PgConnection } ,
3
11
prelude:: * ,
You can’t perform that action at this time.
0 commit comments