Open ronnno opened 6 years ago
Proposal:
Agree. To recap, you propose:
Am I correct? Also, about dropping contract state, however, i think if we want to drop a contract as part of a transaction we would have to iterate all contract keys and clear the merkle tree one by one. there is no way to quickly drop a set of contract keys from the merkle tree unless we build contract merkle trees in hierarchy. Can I assume we don't need to isolate contract merkle trees for now?
Is it worthwhile to let the VM output a Merkle tree diff (including the merkle root) as well as state diff in the process of preparing a new block?
pros:
cons:
Optimization: