Files
zeekay 7cf87b230b node-unified is the node
The module already called itself github.com/luxfi/node while containing no node
in Go: cmd/luxd was twenty-one lines that printed the size of a few types, and
the Go column of the matrix measured a VM plugin. A repo that fetches the thing
it claims to be has not replaced it, so the Go sources move in — 1515 files,
the daemon and everything under it — and the build reaches outside this module
for nothing.

Rust and C++ sit beside it unchanged and are still measured against it by the
differential. That is the point of one repo: the reference implementation and
the two ports are the same checkout, so parity is a thing you can run rather
than a thing you assert.

Verified: builds, and the closure carries no lux-private — checked at build time
rather than believed. The daemon starts twelve chains on a local network
(P X C Q Z A B G K M F, plus D through its plugin) and reports healthy.
2026-09-07 16:15:25 -07:00

140 lines
3.9 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/vms/platformvm/block (interfaces: Block)
//
// Generated by this command:
//
// mockgen -package=block -destination=mock_block.go . Block
//
// Package block is a generated GoMock package.
package block
import (
reflect "reflect"
ids "github.com/luxfi/ids"
txs "github.com/luxfi/node/vms/platformvm/txs"
runtime "github.com/luxfi/runtime"
gomock "go.uber.org/mock/gomock"
)
// MockBlock is a mock of Block interface.
type MockBlock struct {
ctrl *gomock.Controller
recorder *MockBlockMockRecorder
isgomock struct{}
}
// MockBlockMockRecorder is the mock recorder for MockBlock.
type MockBlockMockRecorder struct {
mock *MockBlock
}
// NewMockBlock creates a new mock instance.
func NewMockBlock(ctrl *gomock.Controller) *MockBlock {
mock := &MockBlock{ctrl: ctrl}
mock.recorder = &MockBlockMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBlock) EXPECT() *MockBlockMockRecorder {
return m.recorder
}
// Bytes mocks base method.
func (m *MockBlock) Bytes() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *MockBlockMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockBlock)(nil).Bytes))
}
// DecisionTxs mocks base method.
func (m *MockBlock) DecisionTxs() []*txs.Tx {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DecisionTxs")
ret0, _ := ret[0].([]*txs.Tx)
return ret0
}
// DecisionTxs indicates an expected call of DecisionTxs.
func (mr *MockBlockMockRecorder) DecisionTxs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecisionTxs", reflect.TypeOf((*MockBlock)(nil).DecisionTxs))
}
// Height mocks base method.
func (m *MockBlock) Height() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Height")
ret0, _ := ret[0].(uint64)
return ret0
}
// Height indicates an expected call of Height.
func (mr *MockBlockMockRecorder) Height() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBlock)(nil).Height))
}
// ID mocks base method.
func (m *MockBlock) ID() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ID")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// ID indicates an expected call of ID.
func (mr *MockBlockMockRecorder) ID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockBlock)(nil).ID))
}
// InitRuntime mocks base method.
func (m *MockBlock) InitRuntime(rt *runtime.Runtime) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitRuntime", rt)
}
// InitRuntime indicates an expected call of InitRuntime.
func (mr *MockBlockMockRecorder) InitRuntime(rt any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitRuntime", reflect.TypeOf((*MockBlock)(nil).InitRuntime), rt)
}
// Parent mocks base method.
func (m *MockBlock) Parent() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Parent")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// Parent indicates an expected call of Parent.
func (mr *MockBlockMockRecorder) Parent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parent", reflect.TypeOf((*MockBlock)(nil).Parent))
}
// Visit mocks base method.
func (m *MockBlock) Visit(visitor Visitor) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Visit", visitor)
ret0, _ := ret[0].(error)
return ret0
}
// Visit indicates an expected call of Visit.
func (mr *MockBlockMockRecorder) Visit(visitor any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*MockBlock)(nil).Visit), visitor)
}