Browse Source

Fixed issue where computePow() was being called even when using a fee.

q-apps
CalDescent 1 year ago
parent
commit
270bc1c9f9
  1. 3
      qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js

3
qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js

@ -647,7 +647,6 @@ class PublishData extends LitElement {
this.errorMessage = '' this.errorMessage = ''
this.successMessage = '' this.successMessage = ''
let nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
let response = false let response = false
if (fee) { if (fee) {
@ -657,6 +656,8 @@ class PublishData extends LitElement {
arbitraryBytesForSigningBase58: convertedBytesBase58 arbitraryBytesForSigningBase58: convertedBytesBase58
}) })
} else { } else {
const nonce = window.parent.computePow(hashPtr, workBufferPtr, workBufferLength, difficulty)
response = await parentEpml.request('sign_arbitrary', { response = await parentEpml.request('sign_arbitrary', {
nonce: this.selectedAddress.nonce, nonce: this.selectedAddress.nonce,
arbitraryBytesBase58: transactionBytesBase58, arbitraryBytesBase58: transactionBytesBase58,

Loading…
Cancel
Save