plugins

package
v0.0.0-...-d704c37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChainPlugin

type BlockChainPlugin interface {
	CustomChainInitMethod()
	CustomNewBlockEventMethod(block *models.Block)
	CustomTxValidationCheck(tx []byte) (bool, string)
	CustomTransactionDeliverLog(tx []byte, result string) string
}

func GetConfigPlugin

func GetConfigPlugin() BlockChainPlugin

type DefaultBlockChainPlugin

type DefaultBlockChainPlugin struct {
}

func (DefaultBlockChainPlugin) CustomChainInitMethod

func (d DefaultBlockChainPlugin) CustomChainInitMethod()

func (DefaultBlockChainPlugin) CustomNewBlockEventMethod

func (d DefaultBlockChainPlugin) CustomNewBlockEventMethod(block *models.Block)

func (DefaultBlockChainPlugin) CustomTransactionDeliverLog

func (d DefaultBlockChainPlugin) CustomTransactionDeliverLog(tx []byte, result string) string

func (DefaultBlockChainPlugin) CustomTxValidationCheck

func (d DefaultBlockChainPlugin) CustomTxValidationCheck(tx []byte) (bool, string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL