diff --git a/multiepoch-getVersion.go b/multiepoch-getVersion.go index ec81839d..d70ae554 100644 --- a/multiepoch-getVersion.go +++ b/multiepoch-getVersion.go @@ -24,6 +24,11 @@ func (ser *MultiEpoch) tryEnrichGetVersion(body []byte) ([]byte, error) { faithfulVersion := ser.GetFaithfulVersionInfo() decodedResult["faithful"] = faithfulVersion + solanaVersion := ser.GetSolanaVersionInfo() + for k,v := range solanaVersion { + decodedResult[k] = v + } + // re-encode the result: encodedResult, err := json.Marshal(decodedResult) if err != nil { @@ -39,6 +44,14 @@ func (ser *MultiEpoch) tryEnrichGetVersion(body []byte) ([]byte, error) { return encodedResponse, nil } +// This function should return the solana version we are compatible with +func (ser *MultiEpoch) GetSolanaVersionInfo() map[string]any { + solanaVersion := make(map[string]any) + solanaVersion["feature-set"] = 1879391783 + solanaVersion["solana-core"] = "1.16.7" + return solanaVersion +} + func (ser *MultiEpoch) GetFaithfulVersionInfo() map[string]any { faithfulVersion := make(map[string]any) faithfulVersion["version"] = GitTag