/
events.go
41 lines (31 loc) · 1.27 KB
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package core
const (
// EventNewBlock represents an event about a new block
// that was successfully added to the main chain
EventNewBlock = "event.newBlock"
// EventProcessBlock represents an event about
// a block that was relayed by a peer.
EventProcessBlock = "event.relayedBlock"
// EventNewTransaction represents an event about a new
// transaction that was received
EventNewTransaction = "event.newTx"
// EventTransactionReceived indicates that a transaction
// has been received.
EventTransactionReceived = "event.txReceived"
// EventTransactionPooled indicates that a transaction
// has been added to the transaction pool
EventTransactionPooled = "event.txPooled"
// EventTransactionInvalid indicates that a transaction
// has been declared invalid
EventTransactionInvalid = "event.txInvalid"
// EventOrphanBlock represents an event about an orphan block.
EventOrphanBlock = "event.orphanBlock"
// EventFoundBlock represents an event about a
// block that has just been mined by the client
EventFoundBlock = "event.foundBlock"
// EventPeerChainInfo indicates an event about a peer's chain info
EventPeerChainInfo = "event.newPeerChainInfo"
// EventBlockProcessed describes an event about
// a processed block
EventBlockProcessed = "event.blockProcessed"
)