From f29a7e3823c6436d6655f2bdf5c2267382949460 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Wed, 22 Jun 2016 12:12:27 -0400 Subject: [PATCH] Add the TXO's value to the response from get_mempool since we have it right there anyway --- src/blockchain_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain_processor.py b/src/blockchain_processor.py index 7b9cec35..b1909369 100644 --- a/src/blockchain_processor.py +++ b/src/blockchain_processor.py @@ -304,7 +304,7 @@ def get_unconfirmed_history(self, addr): for tx_hash, delta in self.mempool_hist.get(addr, ()): height = -1 if self.mempool_unconfirmed.get(tx_hash) else 0 fee = self.mempool_fees.get(tx_hash) - hist.append({'tx_hash':tx_hash, 'height':height, 'fee':fee}) + hist.append({'tx_hash':tx_hash, 'height':height, 'fee':fee, 'value':delta}) return hist def get_history(self, addr, cache_only=False):