From c9edf024229002d22d6cced995737d8ed7fef996 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 1 Nov 2024 07:51:42 -0700 Subject: [PATCH] settings: inline tpool logic --- host/settings/update.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/host/settings/update.go b/host/settings/update.go index 533fb053..923ce7d7 100644 --- a/host/settings/update.go +++ b/host/settings/update.go @@ -113,9 +113,7 @@ func (m *ConfigManager) ProcessActions(index types.ChainIndex) error { for _, txn := range m.chain.PoolTransactions() { var ha chain.HostAnnouncement for _, arb := range txn.ArbitraryData { - if !ha.FromArbitraryData(arb) { - continue - } else if ha.PublicKey == hostPub { + if ha.FromArbitraryData(arb) && ha.PublicKey == hostPub { return nil } }