mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-26 15:35:46 +00:00
removed machine attestation thread (to comply with testing-race conditions becoming apparent on the CI)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
013a3112a7
commit
ff2305a89f
@ -44,16 +44,13 @@ func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMach
|
||||
scheme := params.AssetRegistryScheme
|
||||
domain := params.AssetRegistryDomain
|
||||
path := params.AssetRegistryPath
|
||||
util.TerminationWaitGroup.Add(1)
|
||||
go func() {
|
||||
defer util.TerminationWaitGroup.Done()
|
||||
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
|
||||
if localErr != nil {
|
||||
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
|
||||
} else {
|
||||
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
|
||||
}
|
||||
}()
|
||||
|
||||
} else {
|
||||
util.GetAppLogger().Info(ctx, "Not block proposer: skipping Machine NFT issuance")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user