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

Commit 302c69c

Browse files
committed
Remove chainhash code
1 parent 6c4d0a9 commit 302c69c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/utils.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ func (n *OpenBazaarNode) BuildTransactionRecords(contract *pb.RicardianContract,
4848
return paymentRecords, nil, err
4949
}
5050
tx.Timestamp = ts
51-
ch, err := chainhash.NewHashFromStr(strings.TrimPrefix(tx.Txid, "0x"))
52-
if err != nil {
53-
return paymentRecords, nil, err
54-
}
55-
confirmations, height, err := wal.GetConfirmations(ch.String())
51+
52+
confirmations, height, err := wal.GetConfirmations(tx.Txid)
5653
if err != nil {
5754
return paymentRecords, nil, err
5855
}

0 commit comments

Comments
 (0)