From mboxrd@z Thu Jan 1 00:00:00 1970 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 ) 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 ; 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> <201107071719.45416.andyparkins@gmail.com> Date: Thu, 7 Jul 2011 18:44:48 +0200 X-Google-Sender-Auth: VlPX4FsNWt0J2d4PMtLAPFw9ZBo Message-ID: From: Mike Hearn To: Andy Parkins 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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.