Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ getBlockNum
Method
getBlockNum
consensus/vbft/types.go:45–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
}
44
45
func
(blk *Block) getBlockNum() uint32 {
46
return
blk.Block.Header.Height
47
}
48
49
func
(blk *Block) getPrevBlockHash() common.Uint256 {
50
return
blk.Block.Header.PrevBlockHash
Callers
15
TestBlock_getBlockNum
Function · 0.95
constructEndorseMsg
Function · 0.80
constructCommitMsg
Function · 0.80
constructProposalMsg
Method · 0.80
constructEndorseMsg
Method · 0.80
constructCommitMsg
Method · 0.80
getHighestRankProposal
Method · 0.80
getParticipantSelectionSeed
Function · 0.80
onConsensusMsg
Method · 0.80
actionLoop
Method · 0.80
fastForwardBlock
Method · 0.80
sealBlock
Method · 0.80
Calls
no outgoing calls
Tested by
3
TestBlock_getBlockNum
Function · 0.76
constructEndorseMsg
Function · 0.64
constructCommitMsg
Function · 0.64