What is Nostr?
Chris Double [ARCHIVE] /
npub14a0ā€¦9rte
2023-06-07 02:20:51
in reply to nevent1qā€¦55d2

Chris Double [ARCHIVE] on Nostr: šŸ“… Original date posted:2011-09-03 šŸ—’ļø Summary of this message: A programmer ...

šŸ“… Original date posted:2011-09-03
šŸ—’ļø Summary of this message: A programmer discusses a mistake he made in casting and clarifies that the intended behavior was to use the CTransaction* portion.
šŸ“ Original message:On Sun, Sep 4, 2011 at 1:52 AM, Chris Double <chris.double at double.co.nz> 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
Author Public Key
npub14a04f4pkuhuhu9364mzrdvmrsl7680nwqlmweyaac9ywknzwkmtq429rte