Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit b2ea4b7

Browse files
committed
Client::transaction -> Client::block_transaction
1 parent f8b22e2 commit b2ea4b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ethcore/client-traits/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub trait BlockChainClient:
285285
fn list_storage(&self, id: BlockId, account: &Address, after: Option<&H256>, count: Option<u64>) -> Option<Vec<H256>>;
286286

287287
/// Get transaction with given hash.
288-
fn transaction(&self, id: TransactionId) -> Option<LocalizedTransaction>;
288+
fn block_transaction(&self, id: TransactionId) -> Option<LocalizedTransaction>;
289289

290290
/// Get pool transaction with a given hash.
291291
fn pooled_transaction(&self, hash: H256) -> Option<Arc<VerifiedTransaction>>;

ethcore/src/client/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ impl BlockChainClient for Client {
18851885
Some(keys)
18861886
}
18871887

1888-
fn transaction(&self, id: TransactionId) -> Option<LocalizedTransaction> {
1888+
fn block_transaction(&self, id: TransactionId) -> Option<LocalizedTransaction> {
18891889
self.transaction_address(id).and_then(|address| self.chain.read().transaction(&address))
18901890
}
18911891

ethcore/src/test_helpers/test_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ impl BlockChainClient for TestBlockChainClient {
738738
fn list_storage(&self, _id: BlockId, _account: &Address, _after: Option<&H256>, _count: Option<u64>) -> Option<Vec<H256>> {
739739
None
740740
}
741-
fn transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
741+
fn block_transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
742742
None // Simple default.
743743
}
744744
fn pooled_transaction(&self, _hash: H256) -> Option<Arc<VerifiedTransaction>> {

rpc/src/v1/impls/eth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<C, SN: ?Sized, S: ?Sized, M, EM, T> EthClient<C, SN, S, M, EM> where
309309
}
310310

311311
fn transaction(&self, id: PendingTransactionId) -> Result<Option<Transaction>> {
312-
let client_transaction = |id| match self.client.transaction(id) {
312+
let client_transaction = |id| match self.client.block_transaction(id) {
313313
Some(t) => Ok(Some(Transaction::from_localized(t))),
314314
None => Ok(None),
315315
};

0 commit comments

Comments
 (0)