mirror of
https://github.com/luxfi/proto.git
synced 2026-10-30 15:21:09 +00:00
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.
28 lines
667 B
Go
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
|
|
}
|