Documentation ¶
Index ¶
- Variables
- func CheckAddTxn(s *setting.Setting, newest bool, b *bolt.Bucket, ...) error
- func Get(newest bool, n int) []tx.Hash
- func GetAllAccepted() []tx.Hash
- func GetAllNewest() []tx.Hash
- func Init(s *setting.Setting) error
- func Load(s *setting.Setting) error
- func Size(newest bool) int
- type Leaves
- func (*Leaves) Descriptor() ([]byte, []int)
- func (this *Leaves) Equal(that interface{}) bool
- func (m *Leaves) Marshal() (dAtA []byte, err error)
- func (m *Leaves) MarshalTo(dAtA []byte) (int, error)
- func (*Leaves) ProtoMessage()
- func (m *Leaves) Reset()
- func (m *Leaves) Size() (n int)
- func (m *Leaves) String() string
- func (m *Leaves) Unmarshal(dAtA []byte) error
- func (m *Leaves) XXX_DiscardUnknown()
- func (m *Leaves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Leaves) XXX_Merge(src proto.Message)
- func (m *Leaves) XXX_Size() int
- func (m *Leaves) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLeaves = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLeaves = fmt.Errorf("proto: integer overflow") )
Functions ¶
func CheckAddTxn ¶
func CheckAddTxn(s *setting.Setting, newest bool, b *bolt.Bucket, resolvedtxs ...*tx.Transaction) error
CheckAddTxn checks trs and leaves if these are leaves and add them.
func GetAllAccepted ¶
GetAllAccepted gets all accepted leaves after sorting.
func GetAllNewest ¶
GetAllNewest gets all newest leaves after sorting.
Types ¶
type Leaves ¶
type Leaves struct { Newest []github_com_AidosKuneen_aklib_tx.Hash `protobuf:"bytes,1,rep,name=newest,proto3,casttype=github.com/AidosKuneen/aklib/tx.Hash" json:"newest,omitempty"` Accepted []github_com_AidosKuneen_aklib_tx.Hash `protobuf:"bytes,2,rep,name=accepted,proto3,casttype=github.com/AidosKuneen/aklib/tx.Hash" json:"accepted,omitempty"` }
func NewPopulatedLeaves ¶
func (*Leaves) Descriptor ¶
func (*Leaves) ProtoMessage ¶
func (*Leaves) ProtoMessage()
func (*Leaves) XXX_DiscardUnknown ¶
func (m *Leaves) XXX_DiscardUnknown()
func (*Leaves) XXX_Marshal ¶
func (*Leaves) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.