Skip to content

Commit

Permalink
market: Fix preimage log.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and chappjc committed Aug 3, 2021
1 parent e0a64a7 commit bc60036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/market/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -1570,9 +1570,10 @@ func (m *Market) handlePreimageResp(msg *msgjson.Message, reqData *piData) {
piCommit := pi.Commit()
if reqData.ord.Commitment() != piCommit {
sendPI(nil)
oc := reqData.ord.Commitment()
m.respondError(msg.ID, reqData.ord.User(), msgjson.PreimageCommitmentMismatch,
fmt.Sprintf("preimage hash %x does not match order commitment %x",
piCommit, reqData.ord.Commitment()))
piCommit[:], oc[:]))
return
}

Expand Down

0 comments on commit bc60036

Please sign in to comment.