fixed transaction deadlock
This commit is contained in:
parent
66e63ee081
commit
dc6ade4ae3
@ -190,13 +190,9 @@ impl<C, S, A, M, EM> EthClient<C, S, A, M, EM>
|
|||||||
let hash = signed_transaction.hash();
|
let hash = signed_transaction.hash();
|
||||||
|
|
||||||
let import = {
|
let import = {
|
||||||
let miner = take_weak!(self.miner);
|
|
||||||
let client = take_weak!(self.client);
|
let client = take_weak!(self.client);
|
||||||
take_weak!(self.miner).import_transactions(vec![signed_transaction], |a: &Address| AccountDetails {
|
take_weak!(self.miner).import_transactions(vec![signed_transaction], |a: &Address| AccountDetails {
|
||||||
nonce: miner
|
nonce: client.nonce(a),
|
||||||
.last_nonce(a)
|
|
||||||
.map(|nonce| nonce + U256::one())
|
|
||||||
.unwrap_or_else(|| client.nonce(a)),
|
|
||||||
balance: client.balance(a),
|
balance: client.balance(a),
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user