Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit ada6ee8

Browse files
fix init issue
1 parent 085be1e commit ada6ee8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/vm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (vm *VM) Initialize(
128128
log.Error("could not determine if have last accepted")
129129
return err
130130
}
131-
if has {
131+
if has { //nolint:nestif
132132
blkID, err := chain.GetLastAccepted(vm.db)
133133
if err != nil {
134134
log.Error("could not get last accepted", "err", err)
@@ -143,7 +143,6 @@ func (vm *VM) Initialize(
143143

144144
vm.preferred, vm.lastAccepted = blkID, blk
145145
log.Info("initialized quarkvm from last accepted", "block", blkID)
146-
return nil
147146
} else {
148147
genesisBlk, err := chain.ParseBlock(
149148
genesisBytes,

0 commit comments

Comments
 (0)