Skip to content

seemingly useless line in DisconnectBlock at Validation.cpp #3166

@sadra-barikbin

Description

@sadra-barikbin

spentIndex.push_back(std::make_pair(CSpentIndexKey(input.prevout.hash, input.prevout.n), CSpentIndexValue()));

Hi
It seems this line is useless.The code is making a vector of spentIndex but does not call pblocktree->UpdateSpentIndex like it calls pblocktree->EraseAddressIndex for address index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions