Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WEPp5-0001WS-FA for bitcoin-development@lists.sourceforge.net; Fri, 14 Feb 2014 20:57:23 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.212.171 as permitted sender) client-ip=209.85.212.171; envelope-from=da.colonel@gmail.com; helo=mail-wi0-f171.google.com; Received: from mail-wi0-f171.google.com ([209.85.212.171]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WEPp4-0003XW-Hk for bitcoin-development@lists.sourceforge.net; Fri, 14 Feb 2014 20:57:23 +0000 Received: by mail-wi0-f171.google.com with SMTP id cc10so860964wib.10 for ; Fri, 14 Feb 2014 12:57:16 -0800 (PST) X-Received: by 10.180.165.238 with SMTP id zb14mr3886653wib.51.1392411436422; Fri, 14 Feb 2014 12:57:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.102.66 with HTTP; Fri, 14 Feb 2014 12:56:56 -0800 (PST) In-Reply-To: <52FE4782.6020001@monetize.io> References: <52FE4782.6020001@monetize.io> From: Denis Andrejew Date: Fri, 14 Feb 2014 21:56:56 +0100 Message-ID: To: Mark Friedenbach , bitcoin-development@lists.sourceforge.net Content-Type: multipart/alternative; boundary=00248c0ee4ec0ca10704f2640dac X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (da.colonel[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1WEPp4-0003XW-Hk Subject: Re: [Bitcoin-development] working with the blockchain: transaction fees & sum(inputs) != sum(outputs) (newbie questions) X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 20:57:23 -0000 --00248c0ee4ec0ca10704f2640dac Content-Type: text/plain; charset=ISO-8859-1 Thanks Wladimir, perfect info! Mark, sounds good. But most likely this DB is keeping this information only for the current state of the blockchain and what I need really is to be able to get the unspent outputs (and calculate the balance for all addresses) for any particular block I happen to be interested in :) - Denis "Be the change you want to see in the world." (Mahatma Gandhi) On Fri, Feb 14, 2014 at 5:42 PM, Mark Friedenbach wrote: > On 02/14/2014 04:20 AM, Denis Andrejew wrote: > > What I'm trying to do is read the blockchain in order to find all > > unspent outputs. I'm using bitcoind via rpc as my source of > > information about the blockchain. > > By the way, bitcoind keeps this information in a special LevelDB > database in the chainstate directory. It would be rather simple to > iterate over the database for the list of al unspent outputs. > --00248c0ee4ec0ca10704f2640dac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Wladimir, perfect info!

Mark, so= unds good. But most likely this DB is keeping this information only for the= current state of the blockchain and what I need really is to be able to ge= t the unspent outputs (and calculate the balance for all addresses) for any= particular block I happen to be interested in :)

- Denis

"Be the change you want to see in the world." (Maha= tma Gandhi)


On Fri, Feb 14, 2014 at 5:42 PM, Mark Fr= iedenbach <mark@monetize.io> wrote:
On 02/14/2014 04:20 AM, Denis Andrejew wrote:
> What I'm trying to do is read the blockchain in order to find all<= br> > unspent outputs. I'm using bitcoind via rpc as my source of
> information about the blockchain.

By the way, bitcoind keeps this information in a special LevelDB
database in the chainstate directory. It would be rather simple to
iterate over the database for the list of al unspent outputs.

--00248c0ee4ec0ca10704f2640dac--