From c58bf6687a78f5978dcd2cf634d33544deb689c0 Mon Sep 17 00:00:00 2001 From: Yaroslav Svitlytskyi Date: Fri, 14 Mar 2025 22:06:16 +0100 Subject: [PATCH] feature: added info to the endpoint if split mode is enabled --- code/go/0chain.net/blobbercore/handler/handler_common.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/go/0chain.net/blobbercore/handler/handler_common.go b/code/go/0chain.net/blobbercore/handler/handler_common.go index e37e9d41d..afc7fbc22 100644 --- a/code/go/0chain.net/blobbercore/handler/handler_common.go +++ b/code/go/0chain.net/blobbercore/handler/handler_common.go @@ -116,6 +116,7 @@ type BlobberInfo struct { ChainId string `json:"chain_id"` BlobberId string `json:"blobber_id"` BlobberPublicKey string `json:"public_key"` + IsSplit bool `json:"is_split"` BuildTag string `json:"build_tag"` Stats interface{} `json:"stats"` } @@ -127,6 +128,7 @@ func GetBlobberInfoJson() BlobberInfo { ChainId: mc.ID, BlobberId: node.Self.ID, BlobberPublicKey: node.Self.PublicKey, + IsSplit: node.Self.GetWallet().IsSplit, BuildTag: build.BuildTag, }