U-Network / UNetwork

U Network Public Blockchain
https://u.network/
Apache License 2.0
188 stars 22 forks source link

If we should re-design saving block flow #21

Open doraemon0 opened 6 years ago

doraemon0 commented 6 years ago

After verification, all kinds of transations are processed when block saving. file: core/store/ChainStore/ChainStore.go function:func (bd ChainStore) persist(b Block) error {} This function do a lot of work. If more transation types joined, the code will be hard to maintain. If we should re-design it.