From 2d1d76767c7aa3e35df826b73e654eec0327d687 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 22 Jan 2026 15:58:38 +0100 Subject: [PATCH] keep only verify --- models/peer/peer.go | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/models/peer/peer.go b/models/peer/peer.go index b214500..147efc2 100644 --- a/models/peer/peer.go +++ b/models/peer/peer.go @@ -63,17 +63,16 @@ func IsMySelf(peerID string) (bool, string) { type Peer struct { utils.AbstractObject - Verify bool `json:"verify" bson:"verify"` - PartnershipPending *PeerRelation `json:"partnership_pending" bson:"partnership_pending"` - PeerID string `json:"peer_id" bson:"peer_id" validate:"required"` - Url string `json:"url" bson:"url" validate:"required"` // Url is the URL of the peer (base64url) - NATSUrl string `json:"nats_url" bson:"nats_url" validate:"required"` - WalletAddress string `json:"wallet_address" bson:"wallet_address" validate:"required"` // WalletAddress is the wallet address of the peer - PublicKey string `json:"public_key" bson:"public_key" validate:"required"` // PublicKey is the public key of the peer - State PeerState `json:"state" bson:"state" default:"0"` - Relation PeerRelation `json:"relation" bson:"state" default:"0"` - ServicesState map[string]int `json:"services_state,omitempty" bson:"services_state,omitempty"` - FailedExecution []PeerExecution `json:"failed_execution" bson:"failed_execution"` // FailedExecution is the list of failed executions, to be retried + Verify bool `json:"verify" bson:"verify"` + PeerID string `json:"peer_id" bson:"peer_id" validate:"required"` + Url string `json:"url" bson:"url" validate:"required"` // Url is the URL of the peer (base64url) + NATSUrl string `json:"nats_url" bson:"nats_url" validate:"required"` + WalletAddress string `json:"wallet_address" bson:"wallet_address" validate:"required"` // WalletAddress is the wallet address of the peer + PublicKey string `json:"public_key" bson:"public_key" validate:"required"` // PublicKey is the public key of the peer + State PeerState `json:"state" bson:"state" default:"0"` + Relation PeerRelation `json:"relation" bson:"state" default:"0"` + ServicesState map[string]int `json:"services_state,omitempty" bson:"services_state,omitempty"` + FailedExecution []PeerExecution `json:"failed_execution" bson:"failed_execution"` // FailedExecution is the list of failed executions, to be retried } func (ao *Peer) VerifyAuth(callName string, request *tools.APIRequest) bool {