|
@ -268,12 +268,11 @@ class MemPool(util.LoggedClass): |
|
|
item = self.txs.get(hex_hash) |
|
|
item = self.txs.get(hex_hash) |
|
|
if not item or not raw_tx: |
|
|
if not item or not raw_tx: |
|
|
continue |
|
|
continue |
|
|
tx = Deserializer(raw_tx).read_tx() |
|
|
|
|
|
txin_pairs, txout_pairs = item |
|
|
txin_pairs, txout_pairs = item |
|
|
tx_fee = (sum(v for hash168, v in txin_pairs) |
|
|
tx_fee = (sum(v for hash168, v in txin_pairs) |
|
|
- sum(v for hash168, v in txout_pairs)) |
|
|
- sum(v for hash168, v in txout_pairs)) |
|
|
unconfirmed = any(txin.prev_hash not in self.txs |
|
|
tx = Deserializer(raw_tx).read_tx() |
|
|
for txin in tx.inputs) |
|
|
unconfirmed = any(txin.prev_hash in self.txs for txin in tx.inputs) |
|
|
result.append((hex_hash, tx_fee, unconfirmed)) |
|
|
result.append((hex_hash, tx_fee, unconfirmed)) |
|
|
return result |
|
|
return result |
|
|
|
|
|
|
|
|