Skip to content

Commit 25af8cb

Browse files
BertBert
authored andcommitted
GH-598: transaction count param from pending to latest
1 parent 77a1d1c commit 25af8cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

node/src/blockchain/blockchain_interface/blockchain_interface_web3/lower_level_interface_web3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use futures::Future;
99
use serde_json::Value;
1010
use web3::contract::{Contract, Options};
1111
use web3::transports::{Batch, Http};
12-
use web3::types::{Address, BlockNumber, Filter, Log};
12+
use web3::types::{Address, Filter, Log};
1313
use web3::{Error, Web3};
1414

1515
pub struct LowBlockchainIntWeb3 {
@@ -68,7 +68,7 @@ impl LowBlockchainInt for LowBlockchainIntWeb3 {
6868
Box::new(
6969
self.web3
7070
.eth()
71-
.transaction_count(address, Some(BlockNumber::Pending))
71+
.transaction_count(address, None)
7272
.map_err(move |e| QueryFailed(format!("{} for wallet {}", e, address))),
7373
)
7474
}

node/src/blockchain/blockchain_interface/blockchain_interface_web3/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ impl BlockchainInterface for BlockchainInterfaceWeb3 {
279279
get_transaction_id
280280
.map_err(LocalPayableError::TransactionID)
281281
.and_then(move |latest_nonce| {
282+
debug!(logger, "Latest nonce: {:?}", latest_nonce);
283+
282284
let templates =
283285
SignableTxTemplates::new(priced_templates, latest_nonce.as_u64());
284286

0 commit comments

Comments
 (0)