mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-14 13:30:11 +00:00
18 lines
375 B
Go
18 lines
375 B
Go
package externalapi
|
|
|
|
// BlockInfo contains various information about a specific block
|
|
type BlockInfo struct {
|
|
Exists bool
|
|
BlockStatus BlockStatus
|
|
BlueScore uint64
|
|
}
|
|
|
|
// Clone returns a clone of BlockInfo
|
|
func (bi *BlockInfo) Clone() *BlockInfo {
|
|
return &BlockInfo{
|
|
Exists: bi.Exists,
|
|
BlockStatus: bi.BlockStatus.Clone(),
|
|
BlueScore: bi.BlueScore,
|
|
}
|
|
}
|