Documentation ¶
Index ¶
- type BlockChainPlugin
- type DefaultBlockChainPlugin
- func (d DefaultBlockChainPlugin) CustomChainInitMethod()
- func (d DefaultBlockChainPlugin) CustomNewBlockEventMethod(block *models.Block)
- func (d DefaultBlockChainPlugin) CustomTransactionDeliverLog(tx []byte, result string) string
- func (d DefaultBlockChainPlugin) CustomTxValidationCheck(tx []byte) (bool, string)
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)
Click to show internal directories.
Click to hide internal directories.