Skip to content

transaction db not the same #110

@xuxiaohu

Description

@xuxiaohu

change DropEventNotFinalizedData(blockNum int, finalized bool)
to DropEventNotFinalizedData(txn *dao.GormDB, blockNum int, finalized bool)
and
change query := d.db.Where("block_num = ?", blockNum).Delete(model.ChainEvent{BlockNum: blockNum})
to query := txn.Where("block_num = ?", blockNum).Delete(model.ChainEvent{BlockNum: blockNum})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions