Skip to content

masternodeConfig.getCount() always returns the number over 0 #1854

@egonson

Description

@egonson

dash/src/init.cpp

Line 1897 in e596762

if((fMasterNode || masternodeConfig.getCount() > -1) && fTxIndex == false) {

When I run dashd with no masternode, i got the error: "Enabling Masternode support requires turning on transaction indexing"

masternodeConfig.getCount() always returns 0 at initial time. so the if condition result is true.

I think masternodeConfig.getCount() returns vector's size() so the conditional expression must be masternodeConfig.getCount() > 0 not -1

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