Matt Corallo [ARCHIVE] on Nostr: 📅 Original date posted:2021-09-10 📝 Original message:On 9/10/21 06:05, Michael ...
📅 Original date posted:2021-09-10
📝 Original message:On 9/10/21 06:05, Michael Folkson wrote:
>> I see zero reason whatsoever to not simply reorg ~every block, or as often as is practical. If users opt in to wanting to test with reorgs, they should be able to test with reorgs, not wait a day to test with reorgs.
>
> One of the goals of the default Signet was to make the default Signet
> resemble mainnet as much as possible. (You can do whatever you want on
> a custom signet you set up yourself including manufacturing a re-org
> every block if you wish.) Hence I'm a bit wary of making the behavior
> on the default Signet deviate significantly from what you might
> experience on mainnet. Given re-orgs don't occur that often on mainnet
> I can see the argument for making them more regular (every 8 hours
> seems reasonable to me) on the default Signet but every block seems
> excessive. It makes the default Signet into an environment for purely
> testing whether your application can withstand various flavors of edge
> case re-orgs. You may want to test whether your application can
> withstand normal mainnet behavior (no re-orgs for long periods of
> time) first before you concern yourself with re-orgs.
Huh? Why would the goal be to match mainnet? The goal, as I understand it, is to allow software to
use SigNet without modification *to make testing simpler* - keep the header format the same to let
SPV clients function without (significant) modification, etc. The point of the whole thing is to
make testing as easy as possible, why would we do otherwise.
Further, because one goal here is to enable clients to opt in or out of the reorg chain at will
(presumably by just changing one config flag in bitcoin.conf), why would we worry about making it
"similar to mainnet". If users want an experience "similar to mainnet", they can simply turn off
reorgs and they'll see a consistent chain moving forward which never reorgs, similar to the
practical experience of mainnet.
Once you've opted into reorgs, you almost certainly are looking to *test* reorgs - you just
restarted Bitcoin Core with the reorg flag set, waiting around for a reorg after doing that seems
like the experience of testnet3 today, and the whole reason why we wanted signet to begin with -
things happen sporadically and inconsistently, making developers wait around forever. Please lets
not replicate the "gotta wait for blocks before I can go to lunch" experience of testnet today on
signet, I'm tired of eating lunch late.
>> Why bother with a version bit? This seems substantially more complicated than the original proposal that surfaced many times before signet launched to just have a different reorg signing key. Thus, users who wish to follow reorgs can use a 1-of-2 (or higher multisig) and users who wish to not follow reorgs would use a 1-of-1 (or higher multisig), simply marking the reorg blocks as invalid without touching any header bits that non-full clients will ever see.
>
> If I understand this correctly this is introducing a need for users to
> sign blocks when currently with the default Signet the user does not
> need to concern themselves with signing blocks. That is entirely left
> to the network block signers of the default Signet (who were AJ and
> Kalle last time I checked). Again I don't think this additional
> complexity is needed on the default Signet when you can set up your
> own custom Signet if you want to test edge case scenarios that deviate
> significantly from what you are likely to experience on mainnet. A
> flag set via a configuration argument (the AJ, 0xB10C proposal) with
> no-reorgs (or 8 hour re-orgs) as the default seems to me like it would
> introduce no additional complexity to the casual (or alpha stage)
> tester experience though of course it introduces implementation
> complexity.
>
> To move the default Signet in the direction of resembling mainnet even
> closer would be to randomly generate batches of transactions to fill
> up blocks and create a fee market. It would be great to be able to
> test features like RBF and Lightning unhappy paths (justice
> transactions, perhaps even pinning attacks etc) on the default Signet
> in future.
I believe my suggestion was not correctly understood. I'm not suggesting *users* sign blocks or
otherwise do anything manually here, only that the existing block producers each generate a new key,
and we then only sign reorgs with *those* keys. Users will be able to set a flag to indicate "I want
to accept sigs from either sets of keys, and see reorgs" or "I only want sigs from the non-reorg
keys, and will consider the reorg keys-signed blocks invalid"
Matt
Published at
2023-06-07 22:58:52Event JSON
{
"id": "11fe3b305b5cd34c0350016499160f9bfc7e7494e8bc981efea62f523f65c293",
"pubkey": "cd753aa8fbc112e14ffe9fe09d3630f0eff76ca68e376e004b8e77b687adddba",
"created_at": 1686178732,
"kind": 1,
"tags": [
[
"e",
"82e0f12d7f35467c29cd59e777250289c4cb4554dc58ceaaad44bec4613bd98c",
"",
"root"
],
[
"e",
"44c918eff1003888e7e4077dc4d5e046e9ab421d85fe84a3eaf4ff5de6ee358a",
"",
"reply"
],
[
"p",
"7c4981f0d3c5eec97631de273b25b6435f0f33e0fa6cce270ddd3f3b8797d26a"
]
],
"content": "📅 Original date posted:2021-09-10\n📝 Original message:On 9/10/21 06:05, Michael Folkson wrote:\n\u003e\u003e I see zero reason whatsoever to not simply reorg ~every block, or as often as is practical. If users opt in to wanting to test with reorgs, they should be able to test with reorgs, not wait a day to test with reorgs.\n\u003e \n\u003e One of the goals of the default Signet was to make the default Signet\n\u003e resemble mainnet as much as possible. (You can do whatever you want on\n\u003e a custom signet you set up yourself including manufacturing a re-org\n\u003e every block if you wish.) Hence I'm a bit wary of making the behavior\n\u003e on the default Signet deviate significantly from what you might\n\u003e experience on mainnet. Given re-orgs don't occur that often on mainnet\n\u003e I can see the argument for making them more regular (every 8 hours\n\u003e seems reasonable to me) on the default Signet but every block seems\n\u003e excessive. It makes the default Signet into an environment for purely\n\u003e testing whether your application can withstand various flavors of edge\n\u003e case re-orgs. You may want to test whether your application can\n\u003e withstand normal mainnet behavior (no re-orgs for long periods of\n\u003e time) first before you concern yourself with re-orgs.\n\nHuh? Why would the goal be to match mainnet? The goal, as I understand it, is to allow software to \nuse SigNet without modification *to make testing simpler* - keep the header format the same to let \nSPV clients function without (significant) modification, etc. The point of the whole thing is to \nmake testing as easy as possible, why would we do otherwise.\n\nFurther, because one goal here is to enable clients to opt in or out of the reorg chain at will \n(presumably by just changing one config flag in bitcoin.conf), why would we worry about making it \n\"similar to mainnet\". If users want an experience \"similar to mainnet\", they can simply turn off \nreorgs and they'll see a consistent chain moving forward which never reorgs, similar to the \npractical experience of mainnet.\n\nOnce you've opted into reorgs, you almost certainly are looking to *test* reorgs - you just \nrestarted Bitcoin Core with the reorg flag set, waiting around for a reorg after doing that seems \nlike the experience of testnet3 today, and the whole reason why we wanted signet to begin with - \nthings happen sporadically and inconsistently, making developers wait around forever. Please lets \nnot replicate the \"gotta wait for blocks before I can go to lunch\" experience of testnet today on \nsignet, I'm tired of eating lunch late.\n\n\u003e\u003e Why bother with a version bit? This seems substantially more complicated than the original proposal that surfaced many times before signet launched to just have a different reorg signing key. Thus, users who wish to follow reorgs can use a 1-of-2 (or higher multisig) and users who wish to not follow reorgs would use a 1-of-1 (or higher multisig), simply marking the reorg blocks as invalid without touching any header bits that non-full clients will ever see.\n\u003e \n\u003e If I understand this correctly this is introducing a need for users to\n\u003e sign blocks when currently with the default Signet the user does not\n\u003e need to concern themselves with signing blocks. That is entirely left\n\u003e to the network block signers of the default Signet (who were AJ and\n\u003e Kalle last time I checked). Again I don't think this additional\n\u003e complexity is needed on the default Signet when you can set up your\n\u003e own custom Signet if you want to test edge case scenarios that deviate\n\u003e significantly from what you are likely to experience on mainnet. A\n\u003e flag set via a configuration argument (the AJ, 0xB10C proposal) with\n\u003e no-reorgs (or 8 hour re-orgs) as the default seems to me like it would\n\u003e introduce no additional complexity to the casual (or alpha stage)\n\u003e tester experience though of course it introduces implementation\n\u003e complexity.\n\u003e \n\u003e To move the default Signet in the direction of resembling mainnet even\n\u003e closer would be to randomly generate batches of transactions to fill\n\u003e up blocks and create a fee market. It would be great to be able to\n\u003e test features like RBF and Lightning unhappy paths (justice\n\u003e transactions, perhaps even pinning attacks etc) on the default Signet\n\u003e in future.\n\nI believe my suggestion was not correctly understood. I'm not suggesting *users* sign blocks or \notherwise do anything manually here, only that the existing block producers each generate a new key, \nand we then only sign reorgs with *those* keys. Users will be able to set a flag to indicate \"I want \nto accept sigs from either sets of keys, and see reorgs\" or \"I only want sigs from the non-reorg \nkeys, and will consider the reorg keys-signed blocks invalid\"\n\nMatt",
"sig": "15364c6125911f81cb32585b7eb0b636802746543c1e53db30deaf52162c285b7c89f702e8f8164d58620433ada6a1c8f0dcf6d27d6c5541424dd19cb797bb36"
}