MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetTarget

Function GetTarget

src/rpc/util.cpp:1411–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1409}
1410
1411uint256 GetTarget(const CBlockIndex& blockindex, const uint256 pow_limit)
1412{
1413 arith_uint256 target{*CHECK_NONFATAL(DeriveTarget(blockindex.nBits, pow_limit))};
1414 return ArithToUint256(target);
1415}
1416
1417std::vector<RPCResult> ElideGroup(std::vector<RPCResult> fields, std::string summary)
1418{

Callers 4

getmininginfoFunction · 0.85
blockheaderToJSONFunction · 0.85
getblockchaininfoFunction · 0.85
getchainstatesFunction · 0.85

Calls 2

DeriveTargetFunction · 0.85
ArithToUint256Function · 0.85

Tested by

no test coverage detected