Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Qzr1d-0003lq-Fu for bitcoin-development@lists.sourceforge.net; Sat, 03 Sep 2011 14:16:49 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.161.47 as permitted sender) client-ip=209.85.161.47; envelope-from=chris.double@gmail.com; helo=mail-fx0-f47.google.com; Received: from mail-fx0-f47.google.com ([209.85.161.47]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Qzr1b-0004VF-Ro for bitcoin-development@lists.sourceforge.net; Sat, 03 Sep 2011 14:16:49 +0000 Received: by fxg11 with SMTP id 11so3549208fxg.34 for ; Sat, 03 Sep 2011 07:16:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.74.83 with SMTP id t19mr143550faj.114.1315059401033; Sat, 03 Sep 2011 07:16:41 -0700 (PDT) Sender: chris.double@gmail.com Received: by 10.223.107.10 with HTTP; Sat, 3 Sep 2011 07:16:40 -0700 (PDT) In-Reply-To: References: Date: Sun, 4 Sep 2011 02:16:40 +1200 X-Google-Sender-Auth: 44bR9w6ef9I-PFfs-A3gQyG1_88 Message-ID: From: Chris Double To: bitcoin-development@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.9 (/) 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 (chris.double[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.1 FRT_ADOBE2 BODY: ReplaceTags: Adobe 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 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service -0.6 AWL AWL: From: address is in the auto white-list X-Headers-End: 1Qzr1b-0004VF-Ro Subject: Re: [Bitcoin-development] Transaction limit size in CWallet::CreateTransaction 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: Sat, 03 Sep 2011 14:16:49 -0000 On Sun, Sep 4, 2011 at 1:52 AM, Chris Double wrote: > So was the intent to use the CWalletTxn size, and the casting is > superfluous, or was it supposed to be the CTransaction* portion and > the cast is an incorrect way of doing that? Or am I suffering from > late night programmer syndrome and reading it wrong? After a discussion on #bitcoin-dev it is indeed the latter. I was under the mistaken believe that the GetSerializeSize method in CTransaction and CWalletTxn were virtual, which would result in the behavior I was thinking of. But they're not so it works. Please disregard! Chris. -- http://www.bluishcoder.co.nz