Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ GetPrevious
Method
GetPrevious
src/kernel/bitcoinkernel_wrapper.h:924–929 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
922
}
923
924
std::optional<BlockTreeEntry> GetPrevious() const
925
{
926
auto entry{btck_block_tree_entry_get_previous(get())};
927
if (!entry) return std::nullopt;
928
return entry;
929
}
930
931
int32_t GetHeight() const
932
{
Callers
3
chainman_reindex_test
Function · 0.80
chainman_mainnet_validation_test
Function · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
Calls
2
btck_block_tree_entry_get_previous
Function · 0.85
get
Function · 0.85
Tested by
3
chainman_reindex_test
Function · 0.64
chainman_mainnet_validation_test
Function · 0.64
BOOST_AUTO_TEST_CASE
Function · 0.64