Skip to content

Commit

Permalink
stellar#5221: return null txmeta in api tx resource model when SKIP_T…
Browse files Browse the repository at this point in the history
…XMETA
  • Loading branch information
sreuland committed Mar 4, 2024
1 parent 03968f5 commit a45dca2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions services/horizon/internal/resourceadapter/main.go
@@ -0,0 +1,16 @@
package resourceadapter

type ResourceAdapter struct {
SkipTxmeta bool
}

var resourceAdapterInstance ResourceAdapter

// provide a singleton reference to resource adapter runtime state
func GetResourceAdapter() ResourceAdapter {
return resourceAdapterInstance
}

func SetResourceAdapter(instance ResourceAdapter) {
resourceAdapterInstance = instance
}

0 comments on commit a45dca2

Please sign in to comment.