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.nzPublished at
2023-06-07 02:20:51Event JSON
{
"id": "8680c6757db82afbe3545f6b44e7420e10418240f92d8dd85edc1e455d0cef63",
"pubkey": "af5f54d436e5f97e163aaec436b36387fda3be6e07f6ec93bdc148eb4c4eb6d6",
"created_at": 1686104451,
"kind": 1,
"tags": [
[
"e",
"cc00ddb85dedc2212061d16751088b73d57efb026c849783025275c8c322372c",
"",
"root"
],
[
"e",
"e591ab3c2233a0cdf99e07fbc2f26a858607bfc6c9c4cc0fcb1d3cef2e9d1906",
"",
"reply"
],
[
"p",
"af5f54d436e5f97e163aaec436b36387fda3be6e07f6ec93bdc148eb4c4eb6d6"
]
],
"content": "š
Original date posted:2011-09-03\nšļø 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.\nš Original message:On Sun, Sep 4, 2011 at 1:52 AM, Chris Double \u003cchris.double at double.co.nz\u003e wrote:\n\u003e So was the intent to use the CWalletTxn size, and the casting is\n\u003e superfluous, or was it supposed to be the CTransaction* portion and\n\u003e the cast is an incorrect way of doing that? Or am I suffering from\n\u003e late night programmer syndrome and reading it wrong?\n\nAfter a discussion on #bitcoin-dev it is indeed the latter. I was\nunder the mistaken believe that the GetSerializeSize method in\nCTransaction and CWalletTxn were virtual, which would result in the\nbehavior I was thinking of. But they're not so it works. Please\ndisregard!\n\nChris.\n-- \nhttp://www.bluishcoder.co.nz",
"sig": "ae8272674c0444ed372227463277dbf56c7c405c63359f59429750317b7d09200fc5ecd0bffab24b2605a478c48886258e08f83e6c58f9de275403eb78d630ef"
}