summaryrefslogtreecommitdiff
path: root/8a/790cb6934385708c63bc7c29e70fcf8d5b49b4
blob: b1851c86c4053d77c225fcf74e058804faa5a67e (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
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <mh.in.england@gmail.com>) id 1Qerh8-0003MI-Ta
	for bitcoin-development@lists.sourceforge.net;
	Thu, 07 Jul 2011 16:44:54 +0000
Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com
	designates 209.85.220.175 as permitted sender)
	client-ip=209.85.220.175; envelope-from=mh.in.england@gmail.com;
	helo=mail-vx0-f175.google.com; 
Received: from mail-vx0-f175.google.com ([209.85.220.175])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1Qerh8-0005hV-5z
	for bitcoin-development@lists.sourceforge.net;
	Thu, 07 Jul 2011 16:44:54 +0000
Received: by vxa37 with SMTP id 37so1216550vxa.34
	for <bitcoin-development@lists.sourceforge.net>;
	Thu, 07 Jul 2011 09:44:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.26.34 with SMTP id i2mr1374202vdg.29.1310057088737; Thu, 07
	Jul 2011 09:44:48 -0700 (PDT)
Sender: mh.in.england@gmail.com
Received: by 10.52.164.225 with HTTP; Thu, 7 Jul 2011 09:44:48 -0700 (PDT)
In-Reply-To: <201107071719.45416.andyparkins@gmail.com>
References: <201107071049.48131.andyparkins@gmail.com>
	<CANEZrP0L-8PmwLma4DJdfoj+NefXS0kH8wvVFe-vuyRnpF-+mw@mail.gmail.com>
	<201107071719.45416.andyparkins@gmail.com>
Date: Thu, 7 Jul 2011 18:44:48 +0200
X-Google-Sender-Auth: VlPX4FsNWt0J2d4PMtLAPFw9ZBo
Message-ID: <CANEZrP1eEmjqLAhAWHXTWurUVP7P1pxuf6e0w_0UF2DGZo3ZQw@mail.gmail.com>
From: Mike Hearn <mike@plan99.net>
To: Andy Parkins <andyparkins@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.5 (-)
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
	(mh.in.england[at]gmail.com)
	-0.0 SPF_PASS               SPF: sender matches SPF record
	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: 1Qerh8-0005hV-5z
Cc: bitcoin-development@lists.sourceforge.net
Subject: Re: [Bitcoin-development] Suggestion for enhancements to getblock
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: Thu, 07 Jul 2011 16:44:55 -0000

> What I want to be able to do though is calculate a balance for an aribtra=
ry
> address. =C2=A0Not every address; just the particular ones that the clien=
t is
> interested in. =C2=A0It's complete overkill to require the whole block ch=
ain just
> to calculate the balance of a few addresses.

But what is that for? You said it's for a lightweight client to do
that when it receives a transaction, to verify that all the
dependencies are in blocks recursively. But why?

> Not entirely. =C2=A0If I ask for "the block that contains transaction wit=
h hash
> 12345678abcd..." then when I get that full block, I can verify the merkle=
 tree
> myself.

Well, it's more efficient to just verify the merkle branch. But yes.

> I'm not entirely sure I see how a filter helps. =C2=A0If I've been offlin=
e for ten
> minutes then I need all the transactions pending in the last ten minutes.=
 =C2=A0No
> amount of filtering makes that list any smaller.

Why do you need all of them? You just care about the ones sending
coins to you, surely?

> That would be fine. =C2=A0My reason for suggesting using getblocks was th=
at it
> didn't introduce a new command.

IMHO it's fine to introduce new commands. They'll just be ignored by
old clients in any event.