Merge branch 'master' into tx-limit-bug
Conflicts: miner/src/transaction_queue.rs
This commit is contained in:
commit
cd044ec096
@ -830,7 +830,8 @@ impl BlockChain {
|
|||||||
CacheID::Extras(ExtrasIndex::BlockLogBlooms, h) => { block_logs.remove(&h); },
|
CacheID::Extras(ExtrasIndex::BlockLogBlooms, h) => { block_logs.remove(&h); },
|
||||||
CacheID::Extras(ExtrasIndex::BlocksBlooms, h) => { blocks_blooms.remove(&h); },
|
CacheID::Extras(ExtrasIndex::BlocksBlooms, h) => { blocks_blooms.remove(&h); },
|
||||||
CacheID::Extras(ExtrasIndex::BlockReceipts, h) => { block_receipts.remove(&h); },
|
CacheID::Extras(ExtrasIndex::BlockReceipts, h) => { block_receipts.remove(&h); },
|
||||||
_ => panic!(),
|
// TODO: debris, temporary fix
|
||||||
|
CacheID::Extras(ExtrasIndex::BlockHash, _) => { },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cache_man.cache_usage.push_front(HashSet::new());
|
cache_man.cache_usage.push_front(HashSet::new());
|
||||||
|
@ -628,6 +628,7 @@ impl TransactionQueue {
|
|||||||
let future_tx = self.by_hash.remove(&order.hash).unwrap();
|
let future_tx = self.by_hash.remove(&order.hash).unwrap();
|
||||||
try!(check_too_cheap(Self::replace_transaction(future_tx, state_nonce, &mut self.current, &mut self.by_hash)));
|
try!(check_too_cheap(Self::replace_transaction(future_tx, state_nonce, &mut self.current, &mut self.by_hash)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also enforce the limit
|
// Also enforce the limit
|
||||||
if let Err(e) = check_if_removed(&hash, self.current.enforce_limit(&mut self.by_hash)) {
|
if let Err(e) = check_if_removed(&hash, self.current.enforce_limit(&mut self.by_hash)) {
|
||||||
// If current transaction was removed because of limit we need to update last_nonces also.
|
// If current transaction was removed because of limit we need to update last_nonces also.
|
||||||
|
Loading…
Reference in New Issue
Block a user