Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
When Narwhal needs to support epoch updates, data structures for Committee and WorkerCache can get updated dynamically. So SharedCommittee and SharedWorkerCache were created to support this use case.
Now Narwhal is recreated on epoch changes. The SharedCommittee and SharedWorkerCache wrappers are no longer needed, because the underlying Committee and WorkerCache structs never change throughput the lifetime of each Narwhal instance. Input arguments and struct members of the wrapper types can be replaced with storing the base types Committee and WorkerCache value.
When Narwhal needs to support epoch updates, data structures for
Committee
andWorkerCache
can get updated dynamically. SoSharedCommittee
andSharedWorkerCache
were created to support this use case.Now Narwhal is recreated on epoch changes. The
SharedCommittee
andSharedWorkerCache
wrappers are no longer needed, because the underlyingCommittee
andWorkerCache
structs never change throughput the lifetime of each Narwhal instance. Input arguments and struct members of the wrapper types can be replaced with storing the base typesCommittee
andWorkerCache
value.