MCPcopy 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
45func (blk *Block) getBlockNum() uint32 {
46 return blk.Block.Header.Height
47}
48
49func (blk *Block) getPrevBlockHash() common.Uint256 {
50 return blk.Block.Header.PrevBlockHash

Callers 15

TestBlock_getBlockNumFunction · 0.95
constructEndorseMsgFunction · 0.80
constructCommitMsgFunction · 0.80
constructProposalMsgMethod · 0.80
constructEndorseMsgMethod · 0.80
constructCommitMsgMethod · 0.80
onConsensusMsgMethod · 0.80
actionLoopMethod · 0.80
fastForwardBlockMethod · 0.80
sealBlockMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestBlock_getBlockNumFunction · 0.76
constructEndorseMsgFunction · 0.64
constructCommitMsgFunction · 0.64