-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use virtual size instead of raw size #43
Comments
Good catch, this is definitely a segwit support issue. I think the answer is to record both the real size and the virtual size since they are both useful quantities. Both should be able to fit in the current data format without any major changes. I'll slot this for the next major release. |
Great. I'm happy to review/test once you have something. |
This is now resolved in BlockSci v0.4 |
Thanks @hkalodner (for reference, I believe this is the change: 7b78aba#diff-8eea305b6ac0a8dacd8fea0778fd383fR63) |
Since segwit was activated at block 494,784, the limiting resource on block space is 'weight', which is defined in BIP 141 as:
For fee market analysis, the relevant metric is transaction weight (Base transaction size * 3 + Total transaction size), which can be normalized to virtual size (Transaction weight / 4). This is because miners will order transactions by fee/virtual byte to maximize the fee yield from a block.
For transactions without any segwit inputs, virtual size is the same as size.
BlockSci should therefore store the tx virtual size instead of tx size. Virtual size is exposed in the
getrawtransaction
andgetblock
(with verbosity=2) RPC methods asvsize
.The text was updated successfully, but these errors were encountered: