achow101 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 @ 16:00 UTC | Meeting topics http://gnusha.org/bitcoin-core-dev/proposedmeetingtopics.txt
jarthur_ has joined #bitcoin-core-dev
jarthur_ has quit [Client Quit]
jonatack has quit [Read error: Connection reset by peer]
kevkevin has joined #bitcoin-core-dev
jonatack has joined #bitcoin-core-dev
jarthur has quit [Ping timeout: 260 seconds]
kevkevin has quit [Ping timeout: 252 seconds]
Cory58 has quit [Quit: Client closed]
Cory58 has joined #bitcoin-core-dev
kevkevin has joined #bitcoin-core-dev
kevkevin has quit [Ping timeout: 260 seconds]
kevkevin has joined #bitcoin-core-dev
zeropoint has quit [Quit: leaving]
eval-exec has joined #bitcoin-core-dev
pyth has joined #bitcoin-core-dev
rishkwal has joined #bitcoin-core-dev
pyth has quit [Remote host closed the connection]
PaperSword has quit [Remote host closed the connection]
rishkwal has quit [Quit: Client closed]
arejula27 has joined #bitcoin-core-dev
Guest82 has joined #bitcoin-core-dev
arejula27 has quit [Client Quit]
arejula27 has joined #bitcoin-core-dev
infernix has quit [Read error: Connection reset by peer]
Guest82 has quit [Quit: Client closed]
kevkevin has quit [Ping timeout: 265 seconds]
arejula27 has quit [Ping timeout: 268 seconds]
PaperSword has joined #bitcoin-core-dev
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #bitcoin-core-dev
kevkevin has joined #bitcoin-core-dev
jonatack has quit [Ping timeout: 246 seconds]
kevkevin has quit [Ping timeout: 276 seconds]
PaperSword has quit [Quit: PaperSword]
jackielove4u has quit [Ping timeout: 272 seconds]
jackielove4u has joined #bitcoin-core-dev
jonatack has joined #bitcoin-core-dev
<kanzure> darosior: probably was not subscribed. your link is bitcoinminingdev which is not bitcoindev.
PaperSword has joined #bitcoin-core-dev
kevkevin has joined #bitcoin-core-dev
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
<_aj_> darosior: bitcoin-wallet-process, bitcoin-gui-process, etc? it's multi *-process!
eval-exec has quit [Remote host closed the connection]
Earnestly has quit [Ping timeout: 252 seconds]
eval-exec has joined #bitcoin-core-dev
cmirror has quit [Remote host closed the connection]
cmirror has joined #bitcoin-core-dev
PaperSword has quit [Quit: PaperSword]
eval-exec has quit [Remote host closed the connection]
eval-exec has joined #bitcoin-core-dev
greypw1495085 has quit [Remote host closed the connection]
greypw1495085 has joined #bitcoin-core-dev
mcey_ has joined #bitcoin-core-dev
mcey has quit [Ping timeout: 268 seconds]
eval-exec has quit [Remote host closed the connection]
SpellChecker has quit [Remote host closed the connection]
SpellChecker has joined #bitcoin-core-dev
cobra_zc has joined #bitcoin-core-dev
cobra_zc has quit [Client Quit]
emcy__ has joined #bitcoin-core-dev
mcey_ has quit [Ping timeout: 252 seconds]
arejula27 has joined #bitcoin-core-dev
<Sjors[m]> darosior: at the moment there is no wallet binary if were to enable multiprocess. That won't happen until #19460.
<corebot> https://github.com/bitcoin/bitcoin/issues/19460 | multiprocess: Add bitcoin-wallet -ipcconnect option by ryanofsky · Pull Request #19460 · bitcoin/bitcoin · GitHub
S3RK has joined #bitcoin-core-dev
<Sjors[m]> Or maybe already in #10102
<corebot> https://github.com/bitcoin/bitcoin/issues/10102 | Multiprocess bitcoin by ryanofsky · Pull Request #10102 · bitcoin/bitcoin · GitHub
<Sjors[m]> In any case #31802 only adds bitcoin-node and bitcoin-gui.
<corebot> https://github.com/bitcoin/bitcoin/issues/31802 | Add bitcoin-{node,gui} to release binaries for IPC by Sjors · Pull Request #31802 · bitcoin/bitcoin · GitHub
arejula27 has quit [Ping timeout: 268 seconds]
<Sjors[m]> Though if we want to rename the utility eventually, it's always better to do it early.
S3RK_ has quit [Ping timeout: 276 seconds]
vasild_ is now known as vasild
arejula27 has joined #bitcoin-core-dev
<vasild> jarolrod: Excellent!
PaperSword has joined #bitcoin-core-dev
<vasild> ajonas: b10c: Thanks for https://adamjonas.com/bitcoin/coredev/retro/coredev-2024-retro/! "Interested in Learning More About ... Network layer optimizations +6". What's that? Lets discuss this, here or in #bitcoin-core-network-layer-optimizations or elsewhere...
<vasild> (#bitcoin-core-network-layer-optimizations IRC channel, not hashtag ;)
Guyver2 has joined #bitcoin-core-dev
arejula27 has quit [Ping timeout: 252 seconds]
jonatack has quit [Ping timeout: 252 seconds]
mudsip has joined #bitcoin-core-dev
pyth has joined #bitcoin-core-dev
purpleKarrot has joined #bitcoin-core-dev
jonatack has joined #bitcoin-core-dev
infernix has joined #bitcoin-core-dev
mudsip has quit []
instagibbs5 has joined #bitcoin-core-dev
instagibbs has quit [Ping timeout: 248 seconds]
instagibbs5 is now known as instagibbs
jonatack has quit [Ping timeout: 244 seconds]
arejula27 has joined #bitcoin-core-dev
arejula27 has quit [Ping timeout: 268 seconds]
jonatack has joined #bitcoin-core-dev
arejula27 has joined #bitcoin-core-dev
greypw1495085 has quit [Quit: Connection reset by beer]
greypw1495085 has joined #bitcoin-core-dev
<bitcoin-git> [qa-assets] maflcko pushed 2 commits to main: https://github.com/bitcoin-core/qa-assets/compare/131d343df8db...733f70b21be2
<bitcoin-git> qa-assets/main 107f002 Murch: Add Murch’s inputs February 2025 merged without sanitizers
<bitcoin-git> qa-assets/main 733f70b maflcko: Merge pull request #218 from murchandamus/2025-02-murch-inputs-no-san
<bitcoin-git> [qa-assets] maflcko merged pull request #218: Add Murch’s inputs February 2025 merged without sanitizers (main...2025-02-murch-inputs-no-san) https://github.com/bitcoin-core/qa-assets/pull/218
<bitcoin-git> [bitcoin] fanquake pushed 2 commits to master: https://github.com/bitcoin/bitcoin/compare/f93d6cb0caa9...2f98d1e06ed2
<bitcoin-git> bitcoin/master faca7ac MarcoFalke: ci: Bump fuzz task timeout
<bitcoin-git> bitcoin/master 2f98d1e merge-script: Merge bitcoin/bitcoin#31814: ci: Bump fuzz task timeout
<bitcoin-git> [bitcoin] fanquake merged pull request #31814: ci: Bump fuzz task timeout (master...2502-ci-fuzz) https://github.com/bitcoin/bitcoin/pull/31814
arejula27 has quit [Ping timeout: 268 seconds]
arejula27 has joined #bitcoin-core-dev
Earnestly has joined #bitcoin-core-dev
Guest2 has joined #bitcoin-core-dev
jonatack has quit [Ping timeout: 244 seconds]
Guest2 has quit [Client Quit]
Earnestly has quit [Ping timeout: 252 seconds]
Earnestly has joined #bitcoin-core-dev
arejula27 has quit [Ping timeout: 268 seconds]
<bitcoin-git> [bitcoin] fanquake pushed 2 commits to master: https://github.com/bitcoin/bitcoin/compare/2f98d1e06ed2...81eb6cc2c609
<bitcoin-git> bitcoin/master 407062f Hennadii Stepanov: depends: Avoid using the `-ffile-prefix-map` compiler option
<bitcoin-git> bitcoin/master 81eb6cc merge-script: Merge bitcoin/bitcoin#31800: depends: Avoid using the `-ffile-prefix-map` ...
<bitcoin-git> [bitcoin] fanquake merged pull request #31800: depends: Avoid using the `-ffile-prefix-map` compiler option (master...250205-prefix-map) https://github.com/bitcoin/bitcoin/pull/31800
vasild has quit [Remote host closed the connection]
vasild has joined #bitcoin-core-dev
jonatack has joined #bitcoin-core-dev
arejula27 has joined #bitcoin-core-dev
ghost43 has quit [Remote host closed the connection]
ghost43 has joined #bitcoin-core-dev
agentcasey_ has joined #bitcoin-core-dev
agentcasey has quit [Ping timeout: 244 seconds]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
arejula27 has quit [Ping timeout: 252 seconds]
arejula27 has joined #bitcoin-core-dev
<bitcoin-git> [bitcoin] ryanofsky opened pull request #31815: multiprocess: Lock CapnpProtocol::m_loop with mutex (master...pr/macrace) https://github.com/bitcoin/bitcoin/pull/31815
jespada has joined #bitcoin-core-dev
jespada has quit [Client Quit]
jespada has joined #bitcoin-core-dev
pyth has quit [Ping timeout: 260 seconds]
pyth has joined #bitcoin-core-dev
pyth has quit [Ping timeout: 252 seconds]
pyth has joined #bitcoin-core-dev
arejula27 has quit [Ping timeout: 268 seconds]
infernix has quit [Read error: Connection reset by peer]
arejula27 has joined #bitcoin-core-dev
infernix has joined #bitcoin-core-dev
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #bitcoin-core-dev
bitdex has quit [Quit: = ""]
arejula27 has quit [Ping timeout: 244 seconds]
Artea has quit [Quit: ZNC 1.9.1 - https://znc.in]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
eval-exec has joined #bitcoin-core-dev
eval-exec has quit [Remote host closed the connection]
Artea has joined #bitcoin-core-dev
jonatack has quit [Ping timeout: 244 seconds]
jonatack has joined #bitcoin-core-dev
qxs has quit [Quit: leaving]
arejula27 has joined #bitcoin-core-dev
twistedline has quit [Ping timeout: 260 seconds]
twistedline has joined #bitcoin-core-dev
arejula27 has quit [Remote host closed the connection]
jonatack has quit [Remote host closed the connection]
jonatack has joined #bitcoin-core-dev
twistedline has quit [Ping timeout: 252 seconds]
twistedline has joined #bitcoin-core-dev
qxs has joined #bitcoin-core-dev
twistedline has quit []
twistedline has joined #bitcoin-core-dev
jonatack has quit [Remote host closed the connection]
<glozow> sipa: instagibbs: (c) is m_total_announcements, and indeed (d) is not introduced yet in #31810
<corebot> https://github.com/bitcoin/bitcoin/issues/31810 | TxOrphanage: account for size of orphans and count announcements by glozow · Pull Request #31810 · bitcoin/bitcoin · GitHub
jonatack has joined #bitcoin-core-dev
twistedline has quit [Client Quit]
<sipa> glozow: oh, right, indeed!
<glozow> sipa: you're correct that each peer will have a vector of items corresponding to each announcement, so that's how we'll track the count per peer
<glozow> however that refactoring doesn't really make sense to do before we change the trimming loop
<sipa> glozow: got it
<sipa> glozow: do we have a bound on the sizes of m_work_set within each peer's structure?
<glozow> no, we don't
<glozow> I think we could consider flushing it more proactively
<glozow> because you could theoretically have a ton of nullptrs in there
<glozow> Er sorry, they aren't pointers. I mean wtxids corresponding to transactions that don't exist
<glozow> Perhaps when a workset grows large (e.g. to 100), we delete the items that don't exist before appending more
<glozow> btw, here is my draft branch for the next PR https://github.com/glozow/bitcoin/tree/2025-01-orphanage-peer-dos
<sipa> keeping m_work_set.size() - m_announcements_per_peer.size() bounded may be enough
<sipa> hmm, but we may need to think about the maximum amount of work a single incoming announcement may have on trimming the m_work_set's down.
<sipa> if you can quickly find the ones whose wtxid is gone, that's not a problem, but if you need to loop for that, perhaps it is
<glozow> you'd iterate through work set and query m_orphans which is a map
<glozow> mm, wonder if we should make it an unordered_map
johnny9dev584508 has joined #bitcoin-core-dev
<sipa> right, but if you have N elements in work_set, and N-1 of those are in m_orphans, and it's too big, you may need N-1 iterations to find the one that's missing, which is O(N log N)
jonatack has quit [Ping timeout: 244 seconds]
<sipa> eh, O(N), sorry, it's unoredered
jonatack has joined #bitcoin-core-dev
<sipa> still, a single incoming announcement may trigger up to max_announcements evictions, if each of those needs an O(N)-cost trimming of m_work_sets, that may be a problem, though i'm not sure if there actually is a scenario with such a cost
<sipa> i guess you'd do the announcement evictions first, and then trim the m_work_sets
<glozow> I might be misunderstanding, but I'd envision that we trim work sets in AddChildrenToWorkSet, not when we LimitOrphans
thoragh has quit [Ping timeout: 260 seconds]
<sipa> Ah, yes, that is sufficient.
<sipa> My thinking was that in order to bound memory usage, we need to limit how much bigger the work set can be than the number of announcements of a peer (because the latter is already bounded and thus accounted for, and adding a constant term on top of that suffices), so that if announcements are removed, that may mean reducing m_work_set too... but there is really need reason why it cannot be delayed
<sipa> until the next time something is added to the work set.
bugs_ has joined #bitcoin-core-dev
jespada has quit [Ping timeout: 248 seconds]
jespada has joined #bitcoin-core-dev
eugenesiegel has joined #bitcoin-core-dev
<glozow> Yeah, workset can't grow with AddTx which is nice. Another problem though is workset can have duplicates... so this thing can get pretty big
<sipa> oooh
<sipa> that may be an issue
<glozow> Yeah...
<glozow> While we're at it, maybe we think about size of the outpoints map too
<glozow> (memusage + tax is starting to look better huh)
twistedline has joined #bitcoin-core-dev
<bitcoin-git> [bitcoin] fanquake opened pull request #31818: guix: remove test-security/symbol-check scripts (master...remove_test_sec_scripts) https://github.com/bitcoin/bitcoin/pull/31818
Earnestly has quit [Ping timeout: 252 seconds]
Earnestly has joined #bitcoin-core-dev
<bitcoin-git> [bitcoin] fanquake opened pull request #31819: doc: swap CPPFLAGS for APPEND_CPPFLAGS (master...no_more_cppflags) https://github.com/bitcoin/bitcoin/pull/31819
<bitcoin-git> [bitcoin] fanquake opened pull request #31820: build: consistently use `CLIENT_NAME` in libbitcoinkernel.pc.in (master...reuse_client_name) https://github.com/bitcoin/bitcoin/pull/31820
Guest64 has joined #bitcoin-core-dev
Guest64 has quit [Client Quit]
<bitcoin-git> [bitcoin] glozow pushed 2 commits to master: https://github.com/bitcoin/bitcoin/compare/81eb6cc2c609...fb0ada982a73
<bitcoin-git> bitcoin/master 2706c5b Greg Sanders: test: test_inv_block, use mocktime instead of waiting
<bitcoin-git> bitcoin/master fb0ada9 glozow: Merge bitcoin/bitcoin#31811: test: test_inv_block, use mocktime instead of...
<bitcoin-git> [bitcoin] glozow merged pull request #31811: test: test_inv_block, use mocktime instead of waiting (master...2025-02-tx_dl_mocktime) https://github.com/bitcoin/bitcoin/pull/31811
jonatack has quit [Ping timeout: 244 seconds]
zeropoint has joined #bitcoin-core-dev
pyth has quit [Ping timeout: 268 seconds]
pyth has joined #bitcoin-core-dev
pyth has quit [Ping timeout: 252 seconds]
<bitcoin-git> [bitcoin] dedyshkaPexto opened pull request #31822: fixing-link-Update dependencies.md (master...fixing-error) https://github.com/bitcoin/bitcoin/pull/31822
<sipa> glozow: it would be nice if we could have a formula of thr form memusage <= A + B*tx_weight
<sipa> so then the reservation csn be set to A*num_tx + B*sum_weights, for num_tx/sum_weight of the largest concurrently being relayed orohan set we want to resolve
<glozow> as in, we define the memory usage metric to be A + B*weight?
<bitcoin-git> [bitcoin] theuni closed pull request #31715: build: CMake security checks workarounds (master...cmake-security-checks-workarounds) https://github.com/bitcoin/bitcoin/pull/31715
brunoerg has quit [Remote host closed the connection]
brunoerg has joined #bitcoin-core-dev
<sipa> glozow: right, rather than use real measured memory usage, use A+weight*B as approximation for it, which is simple enough to be tied to real use cases (which will be about num_tx, weight, num_inputs, ...) as those are not related to real memory usage
<instagibbs> "tied to real use cases"?
<glozow> instagibbs: it's still easy to explain what the orphanage limit is
<instagibbs> ah :)
brunoerg has quit [Ping timeout: 265 seconds]
<sipa> well, "one maximally-sized ancestor set will resolve" e.g.
<instagibbs> i.e., given a fixed A/B, we set the per peer reservation to a value that would protect 24 orphans at 404/24 kWU?
<instagibbs> each*
<glozow> hold on I'm not really understanding how we solve for A and B
<glozow> or is this formula supposed to encompass both of the dos scores?
jespada has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest32 has joined #bitcoin-core-dev
Guest32 has quit [Client Quit]
<sipa> glozow: just memory usage
<bitcoin-git> [bitcoin] Christewart opened pull request #31823: tests: Add witness commitment if we have a witness transaction in `FullBlockTest.update_block()` (master...2025-02-07-featureblockpy-witnesscommitment) https://github.com/bitcoin/bitcoin/pull/31823
<sipa> my thinking is: we try to find a "simple" formula for computing an approximate/upper bound on actual memory usage for a transaction (maybe it involves more parameters than just num_tx and weight, it could also use num_inputs, num_output, ...)
<sipa> because if the formula is just DynamicMemoryUsage(tx), then it's unclear how high to set the reservation for each peer to make a particular use case like "a maximal ancestor set will resolve"
<instagibbs> if you add in num_inputs term, f.e., you'd have to make sure the maximal number inputs are allowed for the "maximal ancestor set". Might be easier to overestimate and say degenerately they're proportional to weight
jarthur has joined #bitcoin-core-dev
<sipa> yeah
<sipa> right
eugenesiegel has quit [Quit: Client closed]
eugenesiegel has joined #bitcoin-core-dev
Earnestly has quit [Ping timeout: 252 seconds]
Earnestly has joined #bitcoin-core-dev
Guyver2 has left #bitcoin-core-dev [Closing Window]
tapscript has joined #bitcoin-core-dev
leo__ has joined #bitcoin-core-dev
leo__ has quit [Client Quit]
leo11101 has joined #bitcoin-core-dev
mudsip has joined #bitcoin-core-dev
mudsip has quit [Client Quit]
leo11101 has quit [Client Quit]
tapscript has quit [Quit: Client closed]
PaperSword has quit [Quit: PaperSword]
<Sjors[m]> #31384 RTM?
<corebot> https://github.com/bitcoin/bitcoin/issues/31384 | mining: bugfix: Fix duplicate coinbase tx weight reservation by ismaelsadeeq · Pull Request #31384 · bitcoin/bitcoin · GitHub
ghost43_ has joined #bitcoin-core-dev
PaperSword has joined #bitcoin-core-dev
PaperSword has quit [Client Quit]
ghost43 has quit [Remote host closed the connection]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
Talkless has joined #bitcoin-core-dev
BlueMatt has quit [Quit: Quit]
BlueMatt has joined #bitcoin-core-dev
Talkless has quit [Quit: Konversation terminated!]
hodlinator has quit [Read error: Connection reset by peer]
bugs_ has quit [Quit: Leaving]
hodlinator has joined #bitcoin-core-dev
hodlinator has quit [Quit: ZNC 1.8.2 - https://znc.in]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #bitcoin-core-dev
purpleKarrot has quit [Quit: purpleKarrot]