kaspanet / kaspad

Kaspad was the reference full node Kaspa implementation written in Go (golang), now rewritten in Rust: https://github.com/kaspanet/rusty-kaspa
ISC License
461 stars 233 forks source link

Convert massPerScriptPubKeyByte to massPerUTXOEntry #1796

Open svarogg opened 3 years ago

svarogg commented 3 years ago

Currently we only charge per ScriptPubKeyByte + ScriptPubKeyVersion, while the social cost also includes the output amount and DAA score.

So:

  1. Rename everywhere massPerScriptPubKeyByte to massPerUTXOEntry and any related names as well.
  2. Count all fields that are stored inside the UTXOSet and currently are uncounted.
someone235 commented 3 years ago

This should take 0.5 days