gitee.com/lh-her-team/common@v1.5.1/msgbus/topic_const.go (about) 1 package msgbus 2 3 //go:generate stringer -type=Topic 4 type Topic int 5 6 const ( 7 Invalid Topic = iota 8 ProposedBlock 9 VerifyBlock 10 VerifyResult 11 CommitBlock 12 ProposeState 13 TxPoolSignal 14 BlockInfo 15 ContractEventInfo 16 17 // For Net Service 18 SendConsensusMsg 19 RecvConsensusMsg 20 SendSyncBlockMsg 21 RecvSyncBlockMsg 22 SendTxPoolMsg 23 RecvTxPoolMsg 24 25 BuildProposal 26 27 // The following are contractual events topics 28 // ChainConfig BlockVerifier Blockchain net cert_ac pk_ac pwk_ac 29 ChainConfig 30 // net cert_ac 31 CertManageCertsDelete 32 CertManageCertsFreeze 33 CertManageCertsUnfreeze 34 CertManageCertsRevoke 35 CertManageCertsAliasUpdate 36 CertManageCertsAliasDelete 37 // net pk_ac 38 PubkeyManageAdd 39 PubkeyManageDelete 40 41 // For Consistent Engine 42 SendConsistentMsg 43 RecvConsistentMsg 44 45 // For new transactions signal for hotstuff 46 ProposeBlock 47 48 HotStuffEpochConf 49 50 // solve random tx 51 RwSetVerifyFailTxs 52 )