fixes after merge with master
This commit is contained in:
parent
9d0afa4592
commit
398d5d5836
|
@ -99,7 +99,7 @@ impl From<miner::BlockTemplate> for BlockTemplate {
|
|||
impl From<db::IndexedTransaction> for BlockTemplateTransaction {
|
||||
fn from(transaction: db::IndexedTransaction) -> Self {
|
||||
use ser::serialize;
|
||||
let serialize = serialize(&transaction.transaction);
|
||||
let serialize = serialize(&transaction.raw);
|
||||
BlockTemplateTransaction {
|
||||
data: RawTransaction::new(Vec::from((*serialize).clone())),
|
||||
..Default::default()
|
||||
|
|
|
@ -76,7 +76,7 @@ impl OrphanTransactionsPool {
|
|||
let child_entry = self.by_hash.get_mut(child).expect("every entry in by_parent.values() has corresponding entry in by_hash.keys()");
|
||||
child_entry.remove_known_parent(&hash)
|
||||
};
|
||||
|
||||
|
||||
if all_parents_are_known {
|
||||
removed_orphans_hashes.push(child.clone());
|
||||
removed_orphans.push((child.clone(), self.by_hash.remove(child).expect("checked couple of lines above").transaction));
|
||||
|
|
Loading…
Reference in New Issue