Files
zeekay f480e48e39 run on the native fleet
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the
GitHub-hosted workflows it replaces. Lands here because this is where the repo
is written — git.hanzo.ai is upstream and github.com is its push mirror, so the
same change made on github.com never reaches the runner fleet.
2026-08-20 20:20:25 -07:00

28 lines
667 B
Go

// Copyright (C) 2019-2026, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package block
import (
"time"
"github.com/luxfi/ids"
"github.com/luxfi/proto/x/txs"
)
// Block defines the common stateless interface for all blocks. There is no
// codec: a block is a self-describing native-ZAP buffer whose bytes are
// authoritative (ID = hash(bytes)); see Parser.ParseBlock.
type Block interface {
ID() ids.ID
Parent() ids.ID
Height() uint64
// Timestamp that this block was created at
Timestamp() time.Time
MerkleRoot() ids.ID
Bytes() []byte
// Txs returns the transactions contained in the block
Txs() []*txs.Tx
}