Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ GetBlockNum
Method
GetBlockNum
consensus/vbft/msg_types.go:105–107 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
103
}
104
105
func
(msg *blockProposalMsg) GetBlockNum() uint32 {
106
return
msg.Block.Block.Header.Height
107
}
108
109
func
(msg *blockProposalMsg) Serialize() ([]byte, error) {
110
return
msg.Block.Serialize(), nil
Callers
1
TestOnBlockSealed
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestOnBlockSealed
Function · 0.76