Wpis z mikrobloga

Co do wielkości bloku #grin. Wydaje mi się że to co jest istotne to wielkość kerneli, bo one tylko finalnie zostają w blockchain.
Z tego co rozumiem jest kilka rodzajów kerneli.Obecnie chyba są przechowywane w ten sam sposób co marnuje miejsce. Dlatego właśnie wdrażana jest standaryzacja wielkości kernela w zależności od rodzaju.

Each transaction kernel variant may have associated data. For example height locked kernels include an associated lock height and non-coinbase kernels have an associated fee. Each kernel variant serializes to a fixed size in bytes but this size may be different for each kernel variants. This allows kernels to be serialized efficiently and provides flexibility to introduce new kernel variants that have additional associated data in the future.

A plain kernel is 105 bytes compared to 113 bytes for a height locked kernel. Omitting the lock height from plain kernels saves approximately 7% in kernel storage costs.

https://github.com/antiochp/grin-rfcs/blob/variable_size_kernels/text/0000-variable-size-kernels.md

#bitcoin #kryptowaluty
  • 5
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach