Pieter Wuille [ARCHIVE] on Nostr: 📅 Original date posted:2013-03-12 📝 Original message:On Tue, Mar 12, 2013 at ...
📅 Original date posted:2013-03-12
📝 Original message:On Tue, Mar 12, 2013 at 11:13:09AM +0100, Michael Gronager wrote:
> Yes, 0.7 (yes 0.7!) was not sufficiently tested it had an undocumented and unknown criteria for block rejection, hence the upgrade went wrong.
We're using "0.7" as a short moniker for all clients, but this was a limitation that all
BDB-based bitcoins ever had. The bug is simply a limit in the number of lock objects
that was reached.
It's ironic that 0.8 was supposed to solve all problems we had due to BDB (except the
wallet...), but now it seems it's still coming back to haunt us. I really hated telling
miners to go back to 0.7, given all efforts to make 0.8 signficantly more tolerable...
> More space in the block is needed indeed, but the real problem you are describing is actually not missing space in the block, but proper handling of mem-pool transactions. They should be pruned on two criteria:
>
> 1. if they gets to old >24hr
> 2. if the client is running out of space, then the oldest should probably be pruned
>
> clients are anyway keeping, and re-relaying, their own transactions and hence it would mean only little, and only little for clients. Dropping free / old transaction is a much a better behavior than dying... Even a scheme where the client dropped all or random mempool txes would be a tolerable way of handling things (dropping all is similar to a restart, except for no user intervention).
Right now, mempools are relatively small in memory usage, but with small block sizes,
it indeed risks going up. In 0.8, conflicting (=double spending) transactions in the
chain cause clearing the mempool of conflicts, so at least the mempool is bounded by
the size of the UTXO subset being spent. Dropping transactions from the memory pool
when they run out of space seems a correct solution. I'm less convinced about a
deterministic time-based rule, as that creates a double spending incentive at that
time, and a counter incentive to spam the network with your risking-to-be-cleared
transaction as well.
Regarding the block space, we've seen the pct% of one single block chain space consumer
grow simultaneously with the introduction of larger blocks, so I'm not actually convinced
there is right now a big need for larger blocks (note: right now). The competition for
block chain space is mostly an issue for client software which doesn't deal correctly
with non-confirming transactions, and misleading users. It's mostly a usability problem
now, but increasing block sizes isn't guaranteed to fix that; it may just make more
space for spam.
However, the presence of this bug, and the fact that a full solution is available (0.8),
probably helps achieving consensus fixing it (=a hardfork) is needed, and we should take
advantage of that. But please, let's not rush things...
--
Piter
Published at
2023-06-07 11:37:09Event JSON
{
"id": "0a333d3a78cef406077fa78566b662d6af4b9ce3f5881776a3a694b3a5394329",
"pubkey": "5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6",
"created_at": 1686137829,
"kind": 1,
"tags": [
[
"e",
"bf6db92ac74ed2040908c22a007eaccc4dacca3e534709bcb8876ea849933631",
"",
"root"
],
[
"e",
"1bf0f31457f8fd6b9ee49659fa31ef2d4d26435056a794175454b3a39fc76b9b",
"",
"reply"
],
[
"p",
"58f160e0dbc661605704b190e36f5199f881c861e53763c7057e6bc0c13e6950"
]
],
"content": "📅 Original date posted:2013-03-12\n📝 Original message:On Tue, Mar 12, 2013 at 11:13:09AM +0100, Michael Gronager wrote:\n\u003e Yes, 0.7 (yes 0.7!) was not sufficiently tested it had an undocumented and unknown criteria for block rejection, hence the upgrade went wrong.\n\nWe're using \"0.7\" as a short moniker for all clients, but this was a limitation that all\nBDB-based bitcoins ever had. The bug is simply a limit in the number of lock objects\nthat was reached.\n\nIt's ironic that 0.8 was supposed to solve all problems we had due to BDB (except the\nwallet...), but now it seems it's still coming back to haunt us. I really hated telling\nminers to go back to 0.7, given all efforts to make 0.8 signficantly more tolerable...\n\n\u003e More space in the block is needed indeed, but the real problem you are describing is actually not missing space in the block, but proper handling of mem-pool transactions. They should be pruned on two criteria:\n\u003e \n\u003e 1. if they gets to old \u003e24hr\n\u003e 2. if the client is running out of space, then the oldest should probably be pruned \n\u003e \n\u003e clients are anyway keeping, and re-relaying, their own transactions and hence it would mean only little, and only little for clients. Dropping free / old transaction is a much a better behavior than dying... Even a scheme where the client dropped all or random mempool txes would be a tolerable way of handling things (dropping all is similar to a restart, except for no user intervention).\n\nRight now, mempools are relatively small in memory usage, but with small block sizes,\nit indeed risks going up. In 0.8, conflicting (=double spending) transactions in the\nchain cause clearing the mempool of conflicts, so at least the mempool is bounded by\nthe size of the UTXO subset being spent. Dropping transactions from the memory pool\nwhen they run out of space seems a correct solution. I'm less convinced about a\ndeterministic time-based rule, as that creates a double spending incentive at that\ntime, and a counter incentive to spam the network with your risking-to-be-cleared\ntransaction as well.\n\nRegarding the block space, we've seen the pct% of one single block chain space consumer\ngrow simultaneously with the introduction of larger blocks, so I'm not actually convinced\nthere is right now a big need for larger blocks (note: right now). The competition for\nblock chain space is mostly an issue for client software which doesn't deal correctly\nwith non-confirming transactions, and misleading users. It's mostly a usability problem\nnow, but increasing block sizes isn't guaranteed to fix that; it may just make more\nspace for spam.\n\nHowever, the presence of this bug, and the fact that a full solution is available (0.8),\nprobably helps achieving consensus fixing it (=a hardfork) is needed, and we should take\nadvantage of that. But please, let's not rush things...\n\n-- \nPiter",
"sig": "3841834443877495ae7f60beeed84631a0ae72332d0df8dc9f9db0aff0fff813f780522ac5ca8d24bf82a354008829046597e95f5f9b845db822b8a42c414f71"
}