<p></p>
<p><b>@sqrrm</b> commented on this pull request.</p>

<p>It hurts my soul somewhat with that thread parsing to figure out context. I think we should try to think a bit more before merging something like that.</p><hr>

<p>In <a href="https://github.com/bisq-network/bisq/pull/5065#discussion_r556906476">core/src/main/java/bisq/core/api/CoreContext.java</a>:</p>
<pre style='color:#555'>> +
+import lombok.extern.slf4j.Slf4j;
+
+import static java.lang.Thread.currentThread;
+
+@Singleton
+@Slf4j
+class CoreContext {
+
+    @Inject
+    public CoreContext() {
+    }
+
+    public boolean isApiUser() {
+        String threadName = currentThread().getName();
+        return threadName.equals("BisqDaemonMain") || threadName.contains("grpc");
</pre>
<p>I find this ugly. There must be some easier and not quite as ugly way to do this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/5065#pullrequestreview-567708569">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTO6O7GINFHOVZJWODSZYM75ANCNFSM4V2VWVBQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNXEEZUK4G5AJ6CXUODSZYM75A5CNFSM4V2VWVB2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEHLIXGI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/5065#pullrequestreview-567708569",
"url": "https://github.com/bisq-network/bisq/pull/5065#pullrequestreview-567708569",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>