Documentation ¶
Overview ¶
Package ascc implements handlers for our newly created system chaincode (ascc: archiving system chaincode) of archiving features.
Functions ¶
The following feature are currently implemented.
VerifyBlockfile
Monitoring threads ¶
This package also starts 2 Go routine to monitor local disk usage for archiver feature and archiving (discarding) feature.
Index ¶
- Constants
- type ArchiveSysCC
- func (s *ArchiveSysCC) Chaincode() shim.Chaincode
- func (s *ArchiveSysCC) Enabled() bool
- func (s *ArchiveSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (s *ArchiveSysCC) InitArgs() [][]byte
- func (s *ArchiveSysCC) InvokableCC2CC() bool
- func (s *ArchiveSysCC) InvokableExternal() bool
- func (s *ArchiveSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (s *ArchiveSysCC) Name() string
- func (s *ArchiveSysCC) Path() string
Constants ¶
View Source
const (
VerifyBlockfile string = "VerifyBlockfile"
)
These are function names from Invoke first parameter
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveSysCC ¶
type ArchiveSysCC struct { }
func New ¶
func New(metricsProvider metrics.Provider) *ArchiveSysCC
New returns an implementation of the chaincode interface
func (*ArchiveSysCC) Chaincode ¶
func (s *ArchiveSysCC) Chaincode() shim.Chaincode
func (*ArchiveSysCC) Enabled ¶
func (s *ArchiveSysCC) Enabled() bool
func (*ArchiveSysCC) Init ¶
func (s *ArchiveSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init implements the chaincode shim interface
func (*ArchiveSysCC) InitArgs ¶
func (s *ArchiveSysCC) InitArgs() [][]byte
func (*ArchiveSysCC) InvokableCC2CC ¶
func (s *ArchiveSysCC) InvokableCC2CC() bool
func (*ArchiveSysCC) InvokableExternal ¶
func (s *ArchiveSysCC) InvokableExternal() bool
func (*ArchiveSysCC) Invoke ¶
func (s *ArchiveSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
Invoke implements the chaincode shim interface
func (*ArchiveSysCC) Name ¶
func (s *ArchiveSysCC) Name() string
func (*ArchiveSysCC) Path ¶
func (s *ArchiveSysCC) Path() string
Click to show internal directories.
Click to hide internal directories.