Skip to content

Commit bc3bd36

Browse files
committed
rpc: style: Improve BuriedForkDescPushBack signature
1 parent f999139 commit bc3bd36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,21 +1240,21 @@ static RPCHelpMan verifychain()
12401240
};
12411241
}
12421242

1243-
static void BuriedForkDescPushBack(UniValue& softforks, const std::string &name, int height, int active_tip_nheight) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
1243+
static void BuriedForkDescPushBack(UniValue& softforks, const std::string &name, int softfork_height, int tip_height) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
12441244
{
12451245
// For buried deployments.
12461246
// A buried deployment is one where the height of the activation has been hardcoded into
12471247
// the client implementation long after the consensus change has activated. See BIP 90.
12481248
// Buried deployments with activation height value of
12491249
// std::numeric_limits<int>::max() are disabled and thus hidden.
1250-
if (height == std::numeric_limits<int>::max()) return;
1250+
if (softfork_height == std::numeric_limits<int>::max()) return;
12511251

12521252
UniValue rv(UniValue::VOBJ);
12531253
rv.pushKV("type", "buried");
12541254
// getblockchaininfo reports the softfork as active from when the chain height is
12551255
// one below the activation height
1256-
rv.pushKV("active", active_tip_nheight + 1 >= height);
1257-
rv.pushKV("height", height);
1256+
rv.pushKV("active", tip_height + 1 >= softfork_height);
1257+
rv.pushKV("height", softfork_height);
12581258
softforks.pushKV(name, rv);
12591259
}
12601260

0 commit comments

Comments
 (0)