diff --git a/app/models/block.rb b/app/models/block.rb index 394507622..2cfddbebc 100644 --- a/app/models/block.rb +++ b/app/models/block.rb @@ -285,6 +285,7 @@ def invalid! uncle_blocks.delete_all # delete_address_txs_cache ckb_transactions.delete_all + CellOutput.where(block_id: id).delete_all ForkedBlock.create(attributes) destroy end