< meshcollider>
sipa: Q about the bech32 code in bitcoin. Shouldn't the encode function error if the HRP it is given is capitalised?
< meshcollider>
i think encoding currently just uses it as-is which means the checksum it creates will be over a mixed case address and will always be invalid, even if you manually change capitalisation afterwards
< elichai2>
Playing a bit with clangs `-flto=thin` and first the binaries are down from ~220-280mb to 16-30mb. curious to see if there are also any speed imporvements
< sipa>
elichai2: compared to what?
< sipa>
that kind of difference sounds more like you disabled or removed debug symbols
< sipa>
lto can have a bit of an impact on binary size, but nlt
< sipa>
lto can have a bit of an impact on binary size, but not that much
< elichai2>
sipa: the only difference is gcc vs clang+lto, might be the different compiler, but other than that didn't change anything
< sipa>
my non-lto bitcoind is 6 MB btw, after stripping debug symbols
< elichai2>
didn't touch the file, i'll try stripping in both cases, and try to stick to clang for with and without
< elichai2>
altough i'm explictly doing `--disable-debug` and manually setting CFLAGS and CXXFLAGS so in theory there shouldn't be really any debug symbols (no `-g`)
< elichai2>
after stripping them both you're right, there is no meaningful difference, but without striping there's a big difference, not sure why
< sipa>
poasibly because the debug symbol generation for lto is broken/incomplete :p
< warren>
IMO building with debug symbols and stripping before distribution is superior to building without debug symbols. This is because gdb lets you run the stripped binary while looking at the unstripped put in an optional directory to the side if you need to debug.
< midnightmagic>
What warren said. Although at least in the past this could cause performance issues in rare cases.
< midnightmagic>
Plus with a stripped binary you can rebuild with the same build env and recreate an image which can be used to debug coredumps from stripped bins. Which is pretty neat.