Skip to content

Commit

Permalink
Merge pull request #588 from lochjin/dev1.2
Browse files Browse the repository at this point in the history
panic AssertImmutability
  • Loading branch information
dindinw authored Dec 20, 2023
2 parents fbd32b9 + bbf2b84 commit c3454f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (b *BlockChain) maybeAcceptBlock(block *types.SerializedBlock, flags Behavi
if !b.DB().HasBlock(block.Hash()) {
err := block.AssertImmutability()
if err != nil {
return nil, err
panic(err.Error())
}
err = dbMaybeStoreBlock(b.DB(), block)
if err != nil {
Expand Down

0 comments on commit c3454f9

Please sign in to comment.