mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
Merge pull request #1189 from nspcc-dev/remove-stale-storeblock-comment
core: remove stale storeBlock comment, fix #365
This commit is contained in:
commit
1af2c69644
1 changed files with 3 additions and 4 deletions
|
@ -550,10 +550,9 @@ func (bc *Blockchain) processHeader(h *block.Header, batch storage.Batch, header
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: storeBlock needs some more love, its implemented as in the original
|
// storeBlock performs chain update using the block given, it executes all
|
||||||
// project. This for the sake of development speed and understanding of what
|
// transactions with all appropriate side-effects and updates Blockchain state.
|
||||||
// is happening here, quite allot as you can see :). If things are wired together
|
// This is the only way to change Blockchain state.
|
||||||
// and all tests are in place, we can make a more optimized and cleaner implementation.
|
|
||||||
func (bc *Blockchain) storeBlock(block *block.Block) error {
|
func (bc *Blockchain) storeBlock(block *block.Block) error {
|
||||||
cache := dao.NewCached(bc.dao)
|
cache := dao.NewCached(bc.dao)
|
||||||
appExecResults := make([]*state.AppExecResult, 0, 1+len(block.Transactions))
|
appExecResults := make([]*state.AppExecResult, 0, 1+len(block.Transactions))
|
||||||
|
|
Loading…
Reference in a new issue