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

Commit b0ed9be

Browse files
committed
Client::transaction -> Client::block_transaction
1 parent 78448e5 commit b0ed9be

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
@@ -1893,7 +1893,7 @@ impl BlockChainClient for Client {
18931893
Some(keys)
18941894
}
18951895

1896-
fn transaction(&self, id: TransactionId) -> Option<LocalizedTransaction> {
1896+
fn block_transaction(&self, id: TransactionId) -> Option<LocalizedTransaction> {
18971897
self.transaction_address(id).and_then(|address| self.chain.read().transaction(&address))
18981898
}
18991899

ethcore/src/test_helpers/test_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ impl BlockChainClient for TestBlockChainClient {
737737
fn list_storage(&self, _id: BlockId, _account: &Address, _after: Option<&H256>, _count: Option<u64>) -> Option<Vec<H256>> {
738738
None
739739
}
740-
fn transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
740+
fn block_transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
741741
None // Simple default.
742742
}
743743
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)