--- Log opened Thu Jul 24 00:00:51 2025 03:25 < TheCharlatan> mmh, doesn't that involve a copy if you manage it through a shared pointer, or do you just "use" the shared pointer for reference counting? 06:56 < stickies-v> i don't think it does. i've made changes so the CBlockUndo is managed by a shared_ptr, but then subsequent shared_ptr's for CTxUndo and Coin use the aliasing constructor from raw pointers 07:51 -!- yuvicc [~yuvicc@2409:40e6:12f:6bda:bc80:eb45:ca91:2328] has joined #bitcoin-kernel 07:51 -!- yuvicc [~yuvicc@user/yuvicc] has changed host 07:57 < TheCharlatan> mmh, yeah, that might actually be a nice solution. 08:21 -!- yuvicc [~yuvicc@user/yuvicc] has quit [Quit: yuvicc] 09:03 -!- purpleKarrot [~purpleKar@user/purpleKarrot] has joined #bitcoin-kernel 13:17 -!- purpleKarrot [~purpleKar@user/purpleKarrot] has quit [Quit: purpleKarrot] 14:38 < cfields> stickies-v: I'm curious why we use all typedefs and reinterpret_cast's as opposed to members/inheritance with safe casts? For ex: https://github.com/theuni/bitcoin/commit/0d407c84eba0900545da5bc33baf758398b593ee --- Log closed Fri Jul 25 00:00:55 2025