{"type":"rich","version":"1.0","author_name":"npub1xddusuj8cyeqaqalq0zklafvdgr26pt32t0tvquw5mmwwwm3dehsqlkyw0","author_url":"https://nostr.ae/npub1xddusuj8cyeqaqalq0zklafvdgr26pt32t0tvquw5mmwwwm3dehsqlkyw0","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2017-05-08\n📝 Original message:Sergio,\n\nI'm not sure what the data you present has to do with the discount.  A 75%\ndiscount prevents witness spam precisely because it is 75%, nothing more.\nThe current usage simply gives a guideline on how much capacity is gained\nthrough a particular discount.  With the data you show, it would imply that\nthose blocks, with SegWit used where possible, would result in blocks of\n~1.8MB.\n\n\n\nOn Mon, May 8, 2017 at 5:42 PM, Sergio Demian Lerner via bitcoin-dev \u003c\nbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\n\u003e I have processed 1000 blocks starting from Block #461653.\n\u003e\n\u003e I computed several metrics, including the supposed size of witness data\n\u003e and non-witness data (onchain), assuming all P2SH inputs/outputs are\n\u003e converted to P2PWSH and all P2PKH inputs/outputs are converted to P2WPKH.\n\u003e\n\u003e This takes into account that other types of transactions will not be\n\u003e modified by Segwit (e.g. OP_RETURN outputs, or P2PK). This analysis doesn't\n\u003e take into account that LN transactions may affect the current state,\n\u003e  increasing the segwit/nosegwit ratio.\n\u003e\n\u003e Among a lot of information, I've got the following real world results...\n\u003e\n\u003e acMainChainSpace =352608924\n\u003e acSegwitSpace =599400403\n\u003e Ratio segwit/nosegwit=1.6999\n\u003e\n\u003e This implies that the 75% that discount is not the best option to prevent\n\u003e witness spam in a block of 4 MB, as stated in https://segwit.org/why-a-\n\u003e discount-factor-of-4-why-not-2-or-8-bbcebe91721e.\n\u003e\n\u003e The non-witness data weight factor should not be 4 but 2.35. The closest\n\u003e integer value is 2, which leads to a 50% witness discount.\n\u003e\n\u003e The Bitcoinj source code is available for anyone to review. I encourage\n\u003e anyone to re-compute this with another utility to cross-check. Maybe\n\u003e Antoine Le Calvez (p2sh.info) would like to double-check.\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e\n\u003e _______________________________________________\n\u003e bitcoin-dev mailing list\n\u003e bitcoin-dev at lists.linuxfoundation.org\n\u003e https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev\n\u003e\n\u003e\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170508/eda3ff72/attachment.html\u003e"}
