ChanServ changed the topic of #bitcoin-core-dev to: Bitcoin Core development discussion and commit log | Feel free to watch, but please take commentary and usage questions to #bitcoin | Channel logs: http://www.erisian.com.au/bitcoin-core-dev/, http://gnusha.org/bitcoin-core-dev/ | Weekly Meeting Thursday @ 14:00 UTC | Meeting topics http://gnusha.org/bitcoin-core-dev/proposedmeetingtopics.txt
_aj_ has quit [Server closed connection]
_aj_ has joined #bitcoin-core-dev
_aj_ has joined #bitcoin-core-dev
benwestgate has quit [Quit: Leaving.]
DarrylTheFiish has quit [Remote host closed the connection]
DarrylTheFish has joined #bitcoin-core-dev
DarrylTheFish has quit [Ping timeout: 240 seconds]
vincenzopalazzo has quit [Ping timeout: 252 seconds]
jonatack has joined #bitcoin-core-dev
jetpack_ has joined #bitcoin-core-dev
jetpack has quit [Ping timeout: 240 seconds]
hirish has joined #bitcoin-core-dev
Nebraskka_ has joined #bitcoin-core-dev
hirish_ has quit [Quit: ZNC - https://znc.in]
Nebraskka has quit [Quit: Good day old chaps]
helo has quit [Ping timeout: 246 seconds]
helo has joined #bitcoin-core-dev
Nebraskka_ is now known as Nebraskka
jespada has quit [Ping timeout: 255 seconds]
jespada has joined #bitcoin-core-dev
gribble has quit [Server closed connection]
gribble has joined #bitcoin-core-dev
pablomartin has quit [Remote host closed the connection]
upekkha has quit []
upekkha has joined #bitcoin-core-dev
abubakarsadiq has quit [Quit: Connection closed for inactivity]
vasild has quit [Ping timeout: 246 seconds]
vasild_ has joined #bitcoin-core-dev
Guest70 has joined #bitcoin-core-dev
Guest70 has quit [Client Quit]
cmirror has quit [Remote host closed the connection]
cmirror has joined #bitcoin-core-dev
PaperSword has quit [Quit: PaperSword]
upekkha has quit [*.net *.split]
Nebraskka has quit [*.net *.split]
theStack has quit [*.net *.split]
javi404 has quit [*.net *.split]
roasbeef has quit [*.net *.split]
gribble has quit [*.net *.split]
hirish has quit [*.net *.split]
jetpack_ has quit [*.net *.split]
instagibbs has quit [*.net *.split]
test_ has quit [*.net *.split]
uasf has quit [*.net *.split]
dviola has quit [*.net *.split]
jespada has quit [*.net *.split]
_aj_ has quit [*.net *.split]
bomb-on has quit [*.net *.split]
kanzure has quit [*.net *.split]
hebasto has quit [*.net *.split]
jonatack has quit [*.net *.split]
neha has quit [*.net *.split]
cold has quit [*.net *.split]
josie has quit [*.net *.split]
willcl-ark has quit [*.net *.split]
unknown_unknown has quit [*.net *.split]
sanket_cell has quit [*.net *.split]
pinheadmz has quit [*.net *.split]
mxz has quit [*.net *.split]
midnight has quit [*.net *.split]
JTL has quit [*.net *.split]
meebey has quit [*.net *.split]
cfields has quit [*.net *.split]
dermoth has quit [*.net *.split]
S3RK has quit [*.net *.split]
fjahr has quit [*.net *.split]
da2ce7 has quit [*.net *.split]
BlueMatt has quit [*.net *.split]
justache has quit [*.net *.split]
dodo has quit [*.net *.split]
Evel-Knievel has quit [*.net *.split]
earnestly has quit [*.net *.split]
boris has quit [*.net *.split]
johnzweng has quit [*.net *.split]
adiabat_ has quit [*.net *.split]
cm has quit [*.net *.split]
glozow has quit [*.net *.split]
core-meetingbot has quit [*.net *.split]
w0xlt has quit [*.net *.split]
conman has quit [*.net *.split]
baakeydow has quit [*.net *.split]
dlb76 has quit [*.net *.split]
jrayhawk has quit [*.net *.split]
freesprung has quit [*.net *.split]
vasild_ has quit [*.net *.split]
bob_x1 has quit [*.net *.split]
qxs has quit [*.net *.split]
ghost43 has quit [*.net *.split]
lbia has quit [*.net *.split]
meshcollider has quit [*.net *.split]
achow101 has quit [*.net *.split]
koolazer has quit [*.net *.split]
jarthur has quit [*.net *.split]
RubenSomsen has quit [*.net *.split]
SpellChecker has quit [*.net *.split]
phantomcircuit_ has quit [*.net *.split]
TallTim has quit [*.net *.split]
yancy has quit [*.net *.split]
ariard has quit [*.net *.split]
sanket1729 has quit [*.net *.split]
kcalvinalvin has quit [*.net *.split]
valwal has quit [*.net *.split]
TheCharlatan has quit [*.net *.split]
rodarmor has quit [*.net *.split]
coreyphillips has quit [*.net *.split]
gleb has quit [*.net *.split]
jkczyz has quit [*.net *.split]
cncr04s has quit [*.net *.split]
kinlo has quit [*.net *.split]
Anth0mk has quit [*.net *.split]
jamesob has quit [*.net *.split]
stickies-v has quit [*.net *.split]
EPiSKiNG- has quit [*.net *.split]
jarolrod___ has quit [*.net *.split]
nickler has quit [*.net *.split]
kouloumos has quit [*.net *.split]
gnusha has quit [*.net *.split]
elichai2 has quit [*.net *.split]
andytoshi has quit [*.net *.split]
ajonas has quit [*.net *.split]
cornfeedhobo has quit [*.net *.split]
shiza has quit [*.net *.split]
qubenix has quit [*.net *.split]
nanotube has quit [*.net *.split]
warren has quit [*.net *.split]
realies has quit [*.net *.split]
b10c has quit [*.net *.split]
luke-jr has quit [*.net *.split]
rahl has quit [*.net *.split]
jnewbery has quit [*.net *.split]
berndj has quit [*.net *.split]
michaelfolkson has quit [*.net *.split]
lowhope_ is now known as lowhope
vasild_ has joined #bitcoin-core-dev
upekkha has joined #bitcoin-core-dev
gribble has joined #bitcoin-core-dev
jespada has joined #bitcoin-core-dev
Nebraskka has joined #bitcoin-core-dev
hirish has joined #bitcoin-core-dev
jetpack_ has joined #bitcoin-core-dev
jonatack has joined #bitcoin-core-dev
instagibbs has joined #bitcoin-core-dev
_aj_ has joined #bitcoin-core-dev
test_ has joined #bitcoin-core-dev
bomb-on has joined #bitcoin-core-dev
uasf has joined #bitcoin-core-dev
dviola has joined #bitcoin-core-dev
kanzure has joined #bitcoin-core-dev
hebasto has joined #bitcoin-core-dev
theStack has joined #bitcoin-core-dev
javi404 has joined #bitcoin-core-dev
roasbeef has joined #bitcoin-core-dev
shiza has joined #bitcoin-core-dev
JTL has joined #bitcoin-core-dev
qubenix has joined #bitcoin-core-dev
pinheadmz has joined #bitcoin-core-dev
neha has joined #bitcoin-core-dev
mxz has joined #bitcoin-core-dev
cold has joined #bitcoin-core-dev
bob_x1 has joined #bitcoin-core-dev
meebey has joined #bitcoin-core-dev
josie has joined #bitcoin-core-dev
midnight has joined #bitcoin-core-dev
cornfeedhobo has joined #bitcoin-core-dev
willcl-ark has joined #bitcoin-core-dev
unknown_unknown has joined #bitcoin-core-dev
lbia has joined #bitcoin-core-dev
boris has joined #bitcoin-core-dev
sanket_cell has joined #bitcoin-core-dev
qxs has joined #bitcoin-core-dev
earnestly has joined #bitcoin-core-dev
meshcollider has joined #bitcoin-core-dev
nanotube has joined #bitcoin-core-dev
achow101 has joined #bitcoin-core-dev
Evel-Knievel has joined #bitcoin-core-dev
cfields has joined #bitcoin-core-dev
dermoth has joined #bitcoin-core-dev
jamesob has joined #bitcoin-core-dev
S3RK has joined #bitcoin-core-dev
warren has joined #bitcoin-core-dev
fjahr has joined #bitcoin-core-dev
koolazer has joined #bitcoin-core-dev
stickies-v has joined #bitcoin-core-dev
johnzweng has joined #bitcoin-core-dev
cm has joined #bitcoin-core-dev
EPiSKiNG- has joined #bitcoin-core-dev
yancy has joined #bitcoin-core-dev
da2ce7 has joined #bitcoin-core-dev
adiabat_ has joined #bitcoin-core-dev
BlueMatt has joined #bitcoin-core-dev
justache has joined #bitcoin-core-dev
jarthur has joined #bitcoin-core-dev
realies has joined #bitcoin-core-dev
b10c has joined #bitcoin-core-dev
dodo has joined #bitcoin-core-dev
ariard has joined #bitcoin-core-dev
RubenSomsen has joined #bitcoin-core-dev
jarolrod___ has joined #bitcoin-core-dev
glozow has joined #bitcoin-core-dev
w0xlt has joined #bitcoin-core-dev
SpellChecker has joined #bitcoin-core-dev
core-meetingbot has joined #bitcoin-core-dev
conman has joined #bitcoin-core-dev
phantomcircuit_ has joined #bitcoin-core-dev
TallTim has joined #bitcoin-core-dev
baakeydow has joined #bitcoin-core-dev
dlb76 has joined #bitcoin-core-dev
luke-jr has joined #bitcoin-core-dev
freesprung has joined #bitcoin-core-dev
jrayhawk has joined #bitcoin-core-dev
nickler has joined #bitcoin-core-dev
kouloumos has joined #bitcoin-core-dev
elichai2 has joined #bitcoin-core-dev
ghost43 has joined #bitcoin-core-dev
gnusha has joined #bitcoin-core-dev
andytoshi has joined #bitcoin-core-dev
ajonas has joined #bitcoin-core-dev
rahl has joined #bitcoin-core-dev
jnewbery has joined #bitcoin-core-dev
berndj has joined #bitcoin-core-dev
michaelfolkson has joined #bitcoin-core-dev
Anth0mk has joined #bitcoin-core-dev
kinlo has joined #bitcoin-core-dev
gleb has joined #bitcoin-core-dev
jkczyz has joined #bitcoin-core-dev
cncr04s has joined #bitcoin-core-dev
coreyphillips has joined #bitcoin-core-dev
TheCharlatan has joined #bitcoin-core-dev
rodarmor has joined #bitcoin-core-dev
valwal has joined #bitcoin-core-dev
kcalvinalvin has joined #bitcoin-core-dev
sanket1729 has joined #bitcoin-core-dev
realies4 has joined #bitcoin-core-dev
realies has quit [Max SendQ exceeded]
realies4 is now known as realies
uasf has quit [Remote host closed the connection]
uasf has joined #bitcoin-core-dev
Guyver2 has joined #bitcoin-core-dev
upekkha has quit []
upekkha has joined #bitcoin-core-dev
puchka has joined #bitcoin-core-dev
vysn has joined #bitcoin-core-dev
Guyver2 has quit [Ping timeout: 255 seconds]
Guest71 has joined #bitcoin-core-dev
Guyver2 has joined #bitcoin-core-dev
Guest71 has quit [Quit: Client closed]
benwestgate has joined #bitcoin-core-dev
javi404 has quit [Ping timeout: 255 seconds]
robobub has joined #bitcoin-core-dev
benwestgate has quit [Client Quit]
benwestgate has joined #bitcoin-core-dev
javi404 has joined #bitcoin-core-dev
vincenzopalazzo has joined #bitcoin-core-dev
Guyver2 has left #bitcoin-core-dev [Closing Window]
dermoth has quit [Remote host closed the connection]
dermoth has joined #bitcoin-core-dev
AaronvanW has joined #bitcoin-core-dev
flooded has joined #bitcoin-core-dev
test_ has quit [Ping timeout: 245 seconds]
dberkelmans has joined #bitcoin-core-dev
dberkelmans has quit [Quit: Client closed]
AaronvanW has quit [Ping timeout: 245 seconds]
AaronvanW has joined #bitcoin-core-dev
vincenzopalazzo has quit [Quit: Leaving]
vincenzopalazzo has joined #bitcoin-core-dev
vincenzopalazzo has quit [Client Quit]
vincenzo- has joined #bitcoin-core-dev
<MacroFake> > [16:31] <sipa> MacroFake: any idea why DrahtBot repeatedly requests and unrequests reviews from vincenzopalazzo on #28196 ?
<gribble> https://github.com/bitcoin/bitcoin/issues/28196 | BIP324 connection support by sipa · Pull Request #28196 · bitcoin/bitcoin · GitHub
<MacroFake> That's a GitHub bug
<MacroFake> Usually it is not possible request review from external users, only from users in a "team". GitHub usually checks for that and errors out of the API request. However, here it doesn't error out and just does something nonsensical.
<MacroFake> [19:59] <jon_atack> MacroFake: what are the criteria for DrahtBot to request PR re-reviews? I see it happening for quite a few PRs, but not for other PRs.
<MacroFake> The code is open source, but the logic should be: "If has_current_ack: re_request_stale_acks();"
vincenzo- has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
vincenzopalazzo has joined #bitcoin-core-dev
<vincenzopalazzo> MacroFake, maybe because I did not review the last version after the rebase?
<MacroFake> vincenzopalazzo: Right, but the GitHub bug is that it *un*-requests the review when the API call is for a *re*-request of a review
<vincenzopalazzo> MacroFake, I see, probably
acl has joined #bitcoin-core-dev
vincenzopalazzo has quit [Remote host closed the connection]
vincenzopalazzo has joined #bitcoin-core-dev
acl has quit [Quit: Leaving...]
test_ has joined #bitcoin-core-dev
flooded has quit [Ping timeout: 258 seconds]
abubakarsadiq has joined #bitcoin-core-dev
Nekorand has joined #bitcoin-core-dev
preimage has joined #bitcoin-core-dev
michaelfolkson has quit [Server closed connection]
michaelfolkson has joined #bitcoin-core-dev
<dergoegge> MarcoFalke: according to the afl++ docs we are using __AFL_INIT (slightly) wrong: https://github.com/AFLplusplus/AFLplusplus/blob/stable/instrumentation/README.persistent_mode.md#3-deferred-initialization
<dergoegge> e.g. our initialization of tmp files and threads (test setups) before calling __AFL_INIT should/can cause problems
<gribble> https://github.com/bitcoin/bitcoin/issues/3 | Encrypt wallet · Issue #3 · bitcoin/bitcoin · GitHub
<dergoegge> interesting that we've never seen these problems on oss-fuzz (or maybe we have?)
<dergoegge> MacroFake
Nekorand has quit [Quit: Leaving]
dberkelmans has joined #bitcoin-core-dev
test_ has quit [Read error: Connection reset by peer]
test_ has joined #bitcoin-core-dev
Guyver2 has joined #bitcoin-core-dev
Guyver2 has left #bitcoin-core-dev [#bitcoin-core-dev]
dberkelmans has quit [Quit: Client closed]
<dergoegge> yea so looks like all of our targets that spin up threads on initialization don't work with the deferred fork server mode
jon_atack has joined #bitcoin-core-dev
jonatack has quit [Read error: Connection reset by peer]
bugs_ has joined #bitcoin-core-dev
Talkless has joined #bitcoin-core-dev
<cfields> sipa: ok, I give up, can you explain MallocUsage() ?
<cfields> context: I'm tying myself in knots trying to get a grasp on https://github.com/bitcoin/bitcoin/pull/28385#discussion_r1323354371
<cfields> the accounting seems off, but it's not clear to me what it should be either.
<sipa> cfields: oh i know it's off; i left a comment on some PR a while ago where i re-benchmarked it all
<sipa> i probably should have opened an issue instead
<sipa> the current MallocUsage was for some old glibc, and it seems incorrect now
<sipa> i wish i remembered which PR that was
airswing has joined #bitcoin-core-dev
benwestgate has quit [Quit: Leaving.]
bugs_ has quit [Quit: Leaving]
berndj has quit [Server closed connection]
berndj has joined #bitcoin-core-dev
gfdhgf has joined #bitcoin-core-dev
flooded has joined #bitcoin-core-dev
test_ has quit [Ping timeout: 255 seconds]
<hebasto> cfields: sipa: maybe #18086 and #26614 ?
<gribble> https://github.com/bitcoin/bitcoin/issues/18086 | Accurately account for mempool index memory by sipa · Pull Request #18086 · bitcoin/bitcoin · GitHub
<gribble> https://github.com/bitcoin/bitcoin/issues/26614 | Accurately account for mempool index memory by hebasto · Pull Request #26614 · bitcoin/bitcoin · GitHub
<sipa> hebasto: no, but that provided me with the right pointers!
<sipa> cfields: ^
<cfields> sipa: mmm. ok, I have some reading/catching up to do. But that seems quite naive for containers, especially here where we only ever write to this unordered_map after doing a full reserve:
<sipa> cfields: ehh, what do containers have to do with MallocUsage?
<cfields> Seems the numbers would be pretty inflated compared to a relatively smart single malloc
<sipa> MallocUsage just computes how much memory an allocation of N bytes uses in heap space.
PaperSword has joined #bitcoin-core-dev
<cfields> My understanding is that that's accounting for malloc's slight over-allocations. But I would think that reserve() would prevent the over-allocation-per-node to some extent.
<sipa> that link is not loading for me on mobile
<sipa> can you copy the relevant line?
<cfields> It's adding std::list to memusage.h:
<cfields> static inline size_t DynamicUsage(const std::list<X>& l)
<cfields> {
<cfields> return MallocUsage(sizeof(list_node<X>)) * l.size();
<sipa> that sounds right
<sipa> where is the over-allocation?
bugs_ has joined #bitcoin-core-dev
<sipa> std::list has one malloc per element in the list, and each element is a node with an X, and pointers backward/forward
<sipa> std::list also has no reserve()
<cfields> *sigh*
<cfields> nevermind
<cfields> Yes, that last thing heh.
<cfields> The reserve got stuck in my head. But obviously that's for the unordered_map in DisconnectedBlockTransactions, not the list.
<sipa> Ah.
<cfields> Ok, but I guess the question still stands. Because we do reserve on unordered_maps elsewhere.
<cfields> And I guess it screws up the accounting. But if it's intended to be worst case that's fine.
Talkless has quit [Quit: Konversation terminated!]
<sipa> i think the implemented code is correct besides (a) MallocUsage is outdated and (b) the exact memory layout of unordered_map data structures is ultimately guesswork as it depends on the stl
<sipa> but ignoring those two points, an unordered_map consists of a single allocated hash table, plus one allocated object per entry in the map
<sipa> the reserve only affects the size of the hash table, not the elements in iy
<sipa> *it
<sipa> the first part is the allocations for the entries in the map
<sipa> thr second part is for the hash table
<cfields> ok, that all makes sense. And vector makes sense in that regard as well.
<cfields> sipa: thanks very much for the help. I got myself good and confused :)
<sipa> cfields: yw
<hebasto> accounting allocators were able to handle most (all?) containers presicely
<hebasto> *precisely
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Remote host closed the connection]
gfdhgf has quit [Quit: Leaving]
brunoerg has joined #bitcoin-core-dev
brunoerg has quit [Remote host closed the connection]
ajonas has quit [Server closed connection]
ajonas has joined #bitcoin-core-dev
jnewbery has quit [Server closed connection]
jnewbery has joined #bitcoin-core-dev
pablomartin has joined #bitcoin-core-dev
benwestgate has joined #bitcoin-core-dev
lbia has quit [Ping timeout: 246 seconds]
preimage has quit [Quit: WeeChat 4.0.4]
benwestgate has quit [Ping timeout: 245 seconds]
vysn has quit [Remote host closed the connection]
rahl has quit [Server closed connection]
rahl has joined #bitcoin-core-dev
AaronvanW has quit [Remote host closed the connection]
Evel-Knievel has quit [Ping timeout: 255 seconds]
Evel-Knievel has joined #bitcoin-core-dev
bugs_ has quit [Quit: Leaving]
benwestgate has joined #bitcoin-core-dev
<PaperSword> Is there method in CScript that will print the op codes in the same way bitcoin-cli decodescript does?
<PaperSword> or do I have to just run ls
<PaperSword> sorry *or do I have to just iterate over the script with GetOp and print the results as I iterate through?
<sipa> PaperSword: i think you can figure out the answer for yourself, by looking at the implementation of decodescript
<sipa> the answer is no, but obviously decodescript must be doing this conversion to human-readable form in some way, and you can probably invoke and/or reuse that code
Jackielove4u has quit [Quit: Connection closed for inactivity]
AaronvanW has joined #bitcoin-core-dev
<lightlike> it's a really nice side-effect of migrating to GH actions that win/mac CI now run when pushing sth to my local repo, before opening a PR.
AaronvanW has quit [Ping timeout: 255 seconds]
Guest27 has joined #bitcoin-core-dev
Guest27 has quit [Client Quit]