neo icon indicating copy to clipboard operation
neo copied to clipboard

Reduce blockchain size removing some verification scripts

Open shargon opened this issue 5 years ago • 4 comments

Summary or problem description

We can reduce the blockchain size removing some Blocks.VerificationScript , when the verification script it's not present, it will be taken from the storage, so we can use this feature for reduce the blocks size. Also we can improve wallets in order to check if the verification script it's already stored.

Do you have any solution you want to propose? #1963

Neo Version

  • Neo 3

shargon avatar Sep 24 '20 14:09 shargon

Side note: out of 700 bytes of an empty preview3 testnet block 253 is a verification script. So for an empty block that's 36% of its size.

roman-khimov avatar Sep 24 '20 15:09 roman-khimov

it was improved consensus messages too in #1963 , ~but they require a manual deploy of the verification script~

shargon avatar Sep 24 '20 16:09 shargon

Side note: out of 700 bytes of an empty preview3 testnet block 253 is a verification script. So for an empty block that's 36% of its size.

This looks quite related @roman-khimov : https://github.com/neo-project/neo/issues/921

igormcoelho avatar Nov 21 '20 01:11 igormcoelho

Kinda, but it's very problematic to me in that with this enabled you can't differentiate between dead network (as in CNs unable to produce a block) and network waiting for transactions. So it's important to have the network ticking even with empty blocks.

Also, it directly affects GAS distribution.

roman-khimov avatar Nov 21 '20 07:11 roman-khimov