Transfer: remove ability to transfer with detached short payment ids

This commit is contained in:
selsta 2018-12-27 01:18:19 +01:00
parent 48a267f631
commit 3c0f269c64
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -313,7 +313,7 @@ Rectangle {
LineEditMulti {
id: paymentIdLine
fontBold: true
placeholderText: qsTr("16 or 64 hexadecimal characters") + translationManager.emptyString
placeholderText: qsTr("64 hexadecimal characters") + translationManager.emptyString
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
addressValidation: false
@ -401,7 +401,7 @@ Rectangle {
var amount_ok = amount.length > 0
var address_ok = walletManager.addressValid(address, nettype)
var payment_id_ok = payment_id.length == 0 || walletManager.paymentIdValid(payment_id)
var payment_id_ok = payment_id.length == 0 || (payment_id.length == 64 && walletManager.paymentIdValid(payment_id))
var ipid = walletManager.paymentIdFromAddress(address, nettype)
if (ipid.length > 0 && payment_id.length > 0)
payment_id_ok = false