-// Code generated by protoc-gen-go. DO NOT EDIT.
-// source: storage.proto
-
-/*
-Package storage is a generated protocol buffer package.
-
-It is generated from these files:
- storage.proto
-
-It has these top-level messages:
- Snapshot
- Mainchain
-*/
-package storage
-
-import proto "github.com/golang/protobuf/proto"
-import fmt "fmt"
-import math "math"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the proto package it is being compiled against.
-// A compilation error at this line likely means your copy of the
-// proto package needs to be updated.
-const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
-// Snapshot represents a snapshot of the blockchain, including the state
-// tree and issuance memory.
-type Snapshot struct {
- // Nodes contains every node within the state tree, including interior nodes.
- // The nodes are ordered according to a pre-order traversal.
- Nodes []*Snapshot_StateTreeNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
- // Nonces contains the record of recent nonces for ensuring
- // uniqueness of issuances.
- Nonces []*Snapshot_Nonce `protobuf:"bytes,2,rep,name=nonces" json:"nonces,omitempty"`
-}
-
-func (m *Snapshot) Reset() { *m = Snapshot{} }
-func (m *Snapshot) String() string { return proto.CompactTextString(m) }
-func (*Snapshot) ProtoMessage() {}
-func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
-
-func (m *Snapshot) GetNodes() []*Snapshot_StateTreeNode {
- if m != nil {
- return m.Nodes
- }
- return nil
-}
-
-func (m *Snapshot) GetNonces() []*Snapshot_Nonce {
- if m != nil {
- return m.Nonces
- }
- return nil
-}
-
-type Snapshot_Nonce struct {
- Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
- ExpiryMs uint64 `protobuf:"varint,2,opt,name=expiry_ms,json=expiryMs" json:"expiry_ms,omitempty"`
-}
-
-func (m *Snapshot_Nonce) Reset() { *m = Snapshot_Nonce{} }
-func (m *Snapshot_Nonce) String() string { return proto.CompactTextString(m) }
-func (*Snapshot_Nonce) ProtoMessage() {}
-func (*Snapshot_Nonce) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
-
-func (m *Snapshot_Nonce) GetHash() []byte {
- if m != nil {
- return m.Hash
- }
- return nil
-}
-
-func (m *Snapshot_Nonce) GetExpiryMs() uint64 {
- if m != nil {
- return m.ExpiryMs
- }
- return 0
-}
-
-type Snapshot_StateTreeNode struct {
- Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
-}
-
-func (m *Snapshot_StateTreeNode) Reset() { *m = Snapshot_StateTreeNode{} }
-func (m *Snapshot_StateTreeNode) String() string { return proto.CompactTextString(m) }
-func (*Snapshot_StateTreeNode) ProtoMessage() {}
-func (*Snapshot_StateTreeNode) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
-
-func (m *Snapshot_StateTreeNode) GetKey() []byte {
- if m != nil {
- return m.Key
- }
- return nil
-}
-
-// Mainchain represents a mainchain of the blockchain
-type Mainchain struct {
- Hashs []*Mainchain_Hash `protobuf:"bytes,1,rep,name=hashs" json:"hashs,omitempty"`
-}
-
-func (m *Mainchain) Reset() { *m = Mainchain{} }
-func (m *Mainchain) String() string { return proto.CompactTextString(m) }
-func (*Mainchain) ProtoMessage() {}
-func (*Mainchain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
-
-func (m *Mainchain) GetHashs() []*Mainchain_Hash {
- if m != nil {
- return m.Hashs
- }
- return nil
-}
-
-type Mainchain_Hash struct {
- Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
-}
-
-func (m *Mainchain_Hash) Reset() { *m = Mainchain_Hash{} }
-func (m *Mainchain_Hash) String() string { return proto.CompactTextString(m) }
-func (*Mainchain_Hash) ProtoMessage() {}
-func (*Mainchain_Hash) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
-
-func (m *Mainchain_Hash) GetKey() []byte {
- if m != nil {
- return m.Key
- }
- return nil
-}
-
-func init() {
- proto.RegisterType((*Snapshot)(nil), "chain.core.txdb.internal.storage.Snapshot")
- proto.RegisterType((*Snapshot_Nonce)(nil), "chain.core.txdb.internal.storage.Snapshot.Nonce")
- proto.RegisterType((*Snapshot_StateTreeNode)(nil), "chain.core.txdb.internal.storage.Snapshot.StateTreeNode")
- proto.RegisterType((*Mainchain)(nil), "chain.core.txdb.internal.storage.Mainchain")
- proto.RegisterType((*Mainchain_Hash)(nil), "chain.core.txdb.internal.storage.Mainchain.Hash")
-}
-
-func init() { proto.RegisterFile("storage.proto", fileDescriptor0) }
-
-var fileDescriptor0 = []byte{
- // 252 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x31, 0x4f, 0xc3, 0x30,
- 0x10, 0x85, 0x95, 0x36, 0x29, 0xcd, 0x41, 0x25, 0xe4, 0x29, 0x0a, 0x4b, 0xe8, 0x94, 0xe9, 0x84,
- 0x60, 0xe9, 0xcc, 0x80, 0xba, 0x34, 0x83, 0xcb, 0xc4, 0x82, 0xdc, 0xe4, 0x84, 0x23, 0xa8, 0x1d,
- 0xd9, 0x1e, 0xda, 0x91, 0x7f, 0x8e, 0xec, 0xb8, 0x48, 0x88, 0x01, 0xba, 0x9d, 0x4f, 0xfe, 0xbe,
- 0xf7, 0x64, 0xc3, 0xc2, 0x3a, 0x6d, 0xc4, 0x1b, 0xe1, 0x60, 0xb4, 0xd3, 0xac, 0x6a, 0xa5, 0xe8,
- 0x15, 0xb6, 0xda, 0x10, 0xba, 0x43, 0xb7, 0xc3, 0x5e, 0x39, 0x32, 0x4a, 0x7c, 0x60, 0xbc, 0xb7,
- 0xfc, 0x9c, 0xc0, 0x7c, 0xab, 0xc4, 0x60, 0xa5, 0x76, 0xac, 0x81, 0x4c, 0xe9, 0x8e, 0x6c, 0x91,
- 0x54, 0xd3, 0xfa, 0xf2, 0x7e, 0x85, 0x7f, 0xe1, 0x78, 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