Documentation ¶
Overview ¶
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
Index ¶
- type Committer
- type Engine
- func (engine *Engine) Accepts(parentID thor.Bytes32) (bool, error)
- func (engine *Engine) CommitBlock(header *block.Header, isPacking bool) error
- func (engine *Engine) Finalized() thor.Bytes32
- func (engine *Engine) Justified() (thor.Bytes32, error)
- func (engine *Engine) Select(header *block.Header) (bool, error)
- func (engine *Engine) ShouldVote(parentID thor.Bytes32) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine tracks all votes of blocks, computes the finalized checkpoint. Not thread-safe!
func (*Engine) Accepts ¶
Accepts checks if the given block is on the same branch of finalized checkpoint.
func (*Engine) CommitBlock ¶
CommitBlock commits bft state to storage.