Questions tagged [block-weight]

25 questions
21
votes
2 answers

Is there a difference between bytes and virtual bytes (vbytes)?

In an Optech newsletter, size is referred to using vbytes. Is there a difference between vbytes and bytes? If so, what is the difference?
9
votes
2 answers

What is block weight and how is it different from block size?

While reading about BIP141, I have encountered the following options: Block creation options: -blockmaxweight= Set maximum BIP141 block weight (default: 3000000) -blockmaxsize= Set maximum block size in bytes (default: 750000) What is a…
Sig Touri
  • 457
  • 1
  • 5
  • 7
8
votes
2 answers

How does SegWit reduce transaction size, when the signature is simply moved to another part of the transaction?

This video explains that the signature is moved out of the input section and moved to the new one called the witness. From what I can tell, the witness signature is still contained in this transaction - how would a simple reordering of information…
6
votes
1 answer

Why does BIP141 define both virtual transaction size and weight?

Why does BIP 141 (segwit) define both virtual transaction size and weight? Weight seems to be just four times virtual transaction size (or vice versa, depending on what you define first). Why are both needed?
6
votes
6 answers

Can blocks remain capped to 1MB forever?

This is perhaps more of an economics question than a bitcoin question, but I'm wondering if it would be viable to leave the block size capped at 1MB for all time and simply let a series of rules govern which transactions get included into a mined…
5
votes
1 answer

Why does the Segwit developer guide recommend to estimate fees on basis of vsize instead of weight?

The Segwit Wallet Development Guide has a small section on fee estimation: Transaction Fee Estimation Instead of transaction size, a new metric is defined, called “virtual size” (vsize) vsize of a transaction equals to 3 times of the size with…
Murch
  • 71,155
  • 33
  • 180
  • 600
4
votes
2 answers

On chain cost of Segwit version 1 versus version 0

How do total blockchain cost for Segwit version 0 compare to version 1 which is being proposed? I'm specifically interested in a single user transactions – both paying to public key (or pk hash) and script (mostly asking about scripts without…
4
votes
1 answer

What is the current maximum Bitcoin block size in MB?

BIP141 specifies the following: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#block-size Block size Blocks are currently limited to 1,000,000 bytes (1MB) total size. We change this restriction as follows: Block weight is defined as…
Willtech
  • 3,186
  • 2
  • 13
  • 42
3
votes
1 answer

what is measured in units of sat/kw?

Whilst learning about bitcoin & lightning fees I have encountered the abbreviation sat/kw a few times, most recently here: Why can’t lightning tx’s be signed with sighash single to allow for fee updates? Is it a ratio of satoshis per kilowatt?
thermalCat
  • 33
  • 4
3
votes
2 answers

How much does the weight of 2-of-3 multisignature inputs differ between P2SH and P2SH-P2WSH?

I'm trying to calculate the weight of a 2-of-3 multisignature P2SH-P2WSH input. I found the related question Predict multi signature transaction size, which I've calculated with m=2, n=3 here: pubkeySize=33 sigSize=72 SizeOfRedeemScript =…
3
votes
1 answer

Do sigops count towards the block weight in SegWit?

I was just rereading the SegWit benefits page and noticed that the section Moving towards a single combined block limit contains an example in which sigops count towards the blockweight. Did this become part of the final version of SegWit? If not,…
Murch
  • 71,155
  • 33
  • 180
  • 600
3
votes
1 answer

After Segwit Activation, what is the largest block size possible?

The code says MAX_BLOCK_SERIALIZED_SIZE = 4000000, but that is actually not a actually consensus rule as stated here: https://github.com/bitcoin/bitcoin/issues/10289 The actual consensus rule is based on MAX_BLOCK_WEIGHT, which is also 4000000. It's…
Jimmy Song
  • 7,709
  • 16
  • 35
3
votes
3 answers

Does the transaction fee depend on the transferred amount?

Do transaction fees depend on the amount of bitcoin sent? On what factors do fees depends?
Arjun Reddy
  • 335
  • 1
  • 7
3
votes
1 answer

Is it possible for the `size` and `vsize` to be the same for a valid segwit (bech32) transaction?

I'm aware that for non-segwit transactions, vsize is always the same as size. But is it possible for a valid transaction to include size=vsize when involving segwit inputs/outputs? This particular query is motivated by a need to debug an 'invalid…
satirn
  • 308
  • 1
  • 10
2
votes
2 answers

What happens if "transaction size" is larger than "maximum block size"?

Assuming a transaction size is T Bytes, while maximum block size is B Bytes, such that T>B. What happens for this transaction? It will be divided into two smaller parts and will be stored in two separate blocks? Or it will not be confirmed at all?…
Questioner
  • 1,151
  • 8
  • 22
1
2