event

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TopicNewBlock = uint16(0x0101)
View Source
const TopicNewTransaction = uint16(0x0201)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event []byte

func CreateBlockEvent

func CreateBlockEvent(blockHash hash.Hash, height uint32) Event

CreateBlockEvent creates an event when the new block is committed. The block event structure is like : <topic_id><block_hash><height><sequence_number>

func CreateNewTransactionEvent

func CreateNewTransactionEvent(txHash tx.ID, height uint32) Event

CreateBlockEvent creates an event when the new block is committed. The block event structure is like : <topic_id><tx_hash><height><sequence_number>

Jump to

Keyboard shortcuts

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