Add client() getter to OpTransactionValidator (#10814)

This commit is contained in:
Eric Woolsey
2024-09-10 16:59:20 -07:00
committed by GitHub
parent ac5ab944dd
commit e130457683

View File

@@ -41,6 +41,11 @@ impl<Client, Tx> OpTransactionValidator<Client, Tx> {
self.inner.chain_spec()
}
/// Returns the configured client
pub fn client(&self) -> &Client {
self.inner.client()
}
/// Returns the current block timestamp.
fn block_timestamp(&self) -> u64 {
self.block_info.timestamp.load(Ordering::Relaxed)