contradiction

package
v0.0.0-...-77dcbbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package contradiction package provides functions to determin contradiction between 2 block headers as defined in LIP-0014.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreDistinctHeadersContradicting

func AreDistinctHeadersContradicting(b1, b2 BFTPartialBlockHeader) bool

Types

type BFTBlockHeader

type BFTBlockHeader interface {
	BFTPartialBlockHeader
	ID() []byte
}

func NewBFTBlockHeader

func NewBFTBlockHeader(header blockchain.SealedBlockHeader) BFTBlockHeader

type BFTPartialBlockHeader

type BFTPartialBlockHeader interface {
	Height() uint32
	GeneratorAddress() []byte
	MaxHeightGenerated() uint32
	MaxHeightPrevoted() uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳