func (m *CommitEntryMsg) ComputeVMIndex(state interfaces.IState) { m.VMIndex = state.ComputeVMIndex(constants.EC_CHAINID) }
func (m *FactoidTransaction) ComputeVMIndex(state interfaces.IState) { m.VMIndex = state.ComputeVMIndex(constants.FACTOID_CHAINID) }
// Returns true if this is a message for this server to execute as // a leader. func (m *AddServerMsg) ComputeVMIndex(state interfaces.IState) { m.VMIndex = state.ComputeVMIndex(constants.ADMIN_CHAINID) }
// Returns true if this is a message for this server to execute as // a leader. func (m *RevealEntryMsg) ComputeVMIndex(state interfaces.IState) { m.VMIndex = state.ComputeVMIndex(m.Entry.GetChainID().Bytes()) }