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

Commit 2fdf5de

Browse files
committed
remove commented code
1 parent c761b23 commit 2fdf5de

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

core/inbound_message_scanner.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"time"
55

66
"github.com/op/go-logging"
7-
//libp2p "gx/ipfs/QmTW4SdgBWq9GjsBsHeUx8WuGxzhgzAf88UMH2w62PC8yK/go-libp2p-crypto"
87
"gx/ipfs/QmYVXrKrKHDC9FobgmcmshCDyWwdrfwfanNQN4oxJ9Fk3h/go-libp2p-peer"
98

109
"github.com/OpenBazaar/openbazaar-go/net"
@@ -33,16 +32,6 @@ type inboundMessageScanner struct {
3332
}
3433

3534
func peerIDExtractor(data []byte) (*peer.ID, error) {
36-
// pubkey, err := libp2p.UnmarshalPublicKey(data)
37-
// if err != nil {
38-
// log.Errorf("err extracting peerID: %v", err.Error())
39-
// return nil, err
40-
// }
41-
// i, err := peer.IDFromPublicKey(pubkey)
42-
// if err != nil {
43-
// log.Errorf("err extracting peerID: %v", err.Error())
44-
// return nil, err
45-
// }
4635
i := peer.ID(data)
4736
return &i, nil
4837
}

core/spend.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ func (n *OpenBazaarNode) Spend(args *SpendRequest) (*SpendResponse, error) {
101101
feeLevel = wallet.NORMAL
102102
}
103103

104-
log.Info("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
105-
log.Info(feeLevel, " ", args.OrderID, " ", args.SpendAll)
106-
107104
txid, err := wal.Spend(*amt, addr, feeLevel, args.OrderID, args.SpendAll)
108105
if err != nil {
109106
switch {

openbazaar-qa

-541 KB
Binary file not shown.

qa/eth_cancel_direct_offline.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,8 @@ def run_test(self):
143143
if r.status_code != 200:
144144
raise TestFailure("EthCancelDirectOfflineTest - FAIL: Couldn't load order from Bob")
145145
resp = json.loads(r.text)
146-
print("resp for bob after order fetch : ")
147-
print(resp)
148146
if resp["state"] != "CANCELED":
149147
raise TestFailure("EthCancelDirectOfflineTest - FAIL: Bob failed to save as canceled")
150-
##if "refundAddressTransaction" not in resp or resp["refundAddressTransaction"] == {}:
151-
## raise TestFailure("EthCancelDirectOfflineTest - FAIL: Bob failed to detect outgoing payment")
152148

153149
# startup alice again
154150
self.start_node(alice)
@@ -160,8 +156,6 @@ def run_test(self):
160156
if r.status_code != 200:
161157
raise TestFailure("EthCancelDirectOfflineTest - FAIL: Couldn't load order from Alice %s", r.status_code)
162158
resp = json.loads(r.text)
163-
print("resp for alice after order fetch : ")
164-
print(resp)
165159
if resp["state"] != "CANCELED":
166160
raise TestFailure("EthCancelDirectOfflineTest - FAIL: Alice failed to detect order cancellation")
167161

@@ -171,12 +165,6 @@ def run_test(self):
171165
if r.status_code == 200:
172166
resp = json.loads(r.text)
173167
confirmed = int(resp["confirmed"])
174-
print("confirmed : ", confirmed)
175-
print("bob bal : ", bob_balance)
176-
print("pymnt amt : ", int(payment_amount["amount"]))
177-
#unconfirmed = int(resp["unconfirmed"])
178-
##if confirmed <= bob_balance - int(payment_amount["amount"]):
179-
## raise TestFailure("EthCancelDirectOfflineTest - FAIL: Bob failed to receive the multisig payout")
180168
else:
181169
raise TestFailure("EthCancelDirectOfflineTest - FAIL: Failed to query Bob's balance")
182170

0 commit comments

Comments
 (0)