mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-25 18:14:19 +01:00
We use a "softref" which is a magic pointer which gets NULL'ed when the object is freed. But it's heavy, and a bit tricky to use, and we only use it in gossipd. Instead, keep the nodeid, and do a lookup (now that's fast) if we want to credit the sender for valid gossip. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>