Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 83df4b4

Browse files
committed
Updates
1 parent df2cb99 commit 83df4b4

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

cmd/start.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,10 @@ func (x *Start) Execute(args []string) error {
583583
subscriber := ipfs.NewPubsubSubscriber(context.Background(), nd.PeerHost, nd.Routing, nd.Repo.Datastore(), nd.PubSub)
584584
ps := ipfs.Pubsub{Publisher: publisher, Subscriber: subscriber}
585585

586-
var rootHash string
587-
if cachedIPNSRecord != nil {
588-
rootHash = string(cachedIPNSRecord.Value)
589-
}
586+
var rootHash string
587+
if cachedIPNSRecord != nil {
588+
rootHash = string(cachedIPNSRecord.Value)
589+
}
590590

591591
wm := obnet.NewWebRelayManager(webRelays, identity.PeerID)
592592

@@ -602,7 +602,7 @@ func (x *Start) Execute(args []string) error {
602602
OfflineMessageFailoverTimeout: 30 * time.Second,
603603
Pubsub: ps,
604604
PushNodes: pushNodes,
605-
WebRelayManager: wm,
605+
WebRelayManager: wm,
606606
RegressionTestEnable: x.Regtest,
607607
RepoPath: repoPath,
608608
RootHash: rootHash,

core/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (n *OpenBazaarNode) SendOfflineMessage(p peer.ID, k *libp2p.PubKey, m *pb.M
8181
defer cancel()
8282
if k == nil {
8383
var pubKey libp2p.PubKey
84-
keyval, err := n.IpfsNode.Repo.Datastore().Get(datastore.NewKey(KeyCachePrefix + p.Pretty()))
84+
keyval, err := n.IpfsNode.Repo.Datastore().Get(datastore.NewKey("/pubkey/" + p.Pretty()))
8585
if err != nil {
8686
pubKey, err = routing.GetPublicKey(n.IpfsNode.Routing, ctx, p)
8787
if err != nil {

mobile/node.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import (
2626
ipfslogging "gx/ipfs/QmbkT7eMTyXfpeyB3ZMxxcxg7XH8t6uXp49jqzz4HB7BGF/go-log/writer"
2727
"gx/ipfs/Qmc85NSvmSG4Frn9Vb2cBc1rMyULH6D3TNVEfCzSKoUpip/go-multiaddr-net"
2828

29+
_ "net/http/pprof"
30+
2931
"github.com/OpenBazaar/openbazaar-go/api"
3032
"github.com/OpenBazaar/openbazaar-go/core"
3133
"github.com/OpenBazaar/openbazaar-go/ipfs"
@@ -51,7 +53,6 @@ import (
5153
"github.com/natefinch/lumberjack"
5254
"github.com/op/go-logging"
5355
"github.com/tyler-smith/go-bip39"
54-
_ "net/http/pprof"
5556
)
5657

5758
var log = logging.MustGetLogger("mobile")
@@ -290,7 +291,7 @@ func NewNodeWithConfig(config *NodeConfig, password string, mnemonic string) (*N
290291
Multiwallet: mw,
291292
OfflineMessageFailoverTimeout: 5 * time.Second,
292293
PushNodes: pushNodes,
293-
WebRelayManager: wm,
294+
WebRelayManager: wm,
294295
RepoPath: config.RepoPath,
295296
UserAgent: core.USERAGENT,
296297
IPNSQuorumSize: uint(ipnsExtraConfig.DHTQuorumSize),

0 commit comments

Comments
 (0)