add check for machine.reissue == true

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2023-07-19 16:21:44 +02:00
parent fbe1a475a7
commit a6814a0594
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -11,6 +11,10 @@ import (
func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMachine) (*types.MsgAttestMachineResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
if msg.Machine.Reissue {
k.Logger(ctx).Info("TODO Implement handle on reissue == true")
}
k.StoreMachine(ctx, *msg.Machine)
k.StoreMachineIndex(ctx, *msg.Machine)