summaryrefslogtreecommitdiff
path: root/66/0f77989752869e011a3dc107a68a67d383b6a7
blob: b0815c2a4481af740412b26f2476e2613364a98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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 <da.colonel@gmail.com>) 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 <bitcoin-development@lists.sourceforge.net>;
	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: <CAPc1t_8kp7dRpjPkK0K6K+mBz4dF9tsVx9n55eaW30FeFvU1EA@mail.gmail.com>
	<52FE4782.6020001@monetize.io>
From: Denis Andrejew <da.colonel@gmail.com>
Date: Fri, 14 Feb 2014 21:56:56 +0100
Message-ID: <CAPc1t_8DPeEZnHHhxNNYs9YXP+C78kW-u_hgxahAAGQVLDzpFw@mail.gmail.com>
To: Mark Friedenbach <mark@monetize.io>,
	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: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=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 <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
> > 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

<div dir=3D"ltr">Thanks Wladimir, perfect info!<div><br></div><div>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 :)</div>

<div><br></div><div>- Denis</div></div><div class=3D"gmail_extra"><br clear=
=3D"all"><div>&quot;Be the change you want to see in the world.&quot; (Maha=
tma Gandhi)</div>
<br><br><div class=3D"gmail_quote">On Fri, Feb 14, 2014 at 5:42 PM, Mark Fr=
iedenbach <span dir=3D"ltr">&lt;<a href=3D"mailto:mark@monetize.io" target=
=3D"_blank">mark@monetize.io</a>&gt;</span> wrote:<br><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">

<div class=3D"">On 02/14/2014 04:20 AM, Denis Andrejew wrote:<br>
&gt; What I&#39;m trying to do is read the blockchain in order to find all<=
br>
&gt; unspent outputs. I&#39;m using bitcoind via rpc as my source of<br>
&gt; information about the blockchain.<br>
<br>
</div>By the way, bitcoind keeps this information in a special LevelDB<br>
database in the chainstate directory. It would be rather simple to<br>
iterate over the database for the list of al unspent outputs.<br>
</blockquote></div><br></div>

--00248c0ee4ec0ca10704f2640dac--