diff --git a/ledger/archival_test.go b/ledger/archival_test.go index dd803b7ba2..b730bb14f2 100644 --- a/ledger/archival_test.go +++ b/ledger/archival_test.go @@ -656,8 +656,8 @@ func TestArchivalCreatables(t *testing.T) { func makeSignedTxnInBlock(tx transactions.Transaction) transactions.SignedTxnInBlock { return transactions.SignedTxnInBlock{ SignedTxnWithAD: transactions.SignedTxn{ - Txn: tx, - }.WithAD(), + Txn: tx, + }.WithAD(), HasGenesisID: true, } } diff --git a/network/p2p/dht/dht.go b/network/p2p/dht/dht.go index c43b71b2da..12fbb398ec 100644 --- a/network/p2p/dht/dht.go +++ b/network/p2p/dht/dht.go @@ -58,7 +58,7 @@ func dhtMode(cfg config.Local) dht.ModeOpt { return dht.ModeClient case "": // Default behavior: nodes with listen addresses should be discoverable - if cfg.IsGossipServer() { + if cfg.IsListenServer() { return dht.ModeServer } return dht.ModeClient