z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
291 stars 437 forks source link

how to add comment to the transaction in z-nomp #305

Closed zzgang closed 6 years ago

zzgang commented 6 years ago

i want to add a comment to the transaction,etc domain name.

interbiznw commented 6 years ago

it is done in the node module "node-stratum-pool" Not in z-nomp

zzgang commented 6 years ago

i just want to add my pool web site domain name to the transaction. can you tell me the details?

zzgang commented 6 years ago

in bitcoinjs-lib-zcash?

MCrypto commented 6 years ago

i think its in "transactions.js" under node_modules/stratum-pool/lib on line 60:

tx.addInput(new Buffer('0000000000000000000000000000000000000000000000000000000000000000', 'hex'), 4294967295, 4294967295, new Buffer.concat([serializedBlockHeight, Buffer('5a2d4e4f4d50212068747470733a2f2f6769746875622e636f6d2f6a6f7368756179616275742f7a2d6e6f6d70', 'hex')]) //Z-NOMP! https://github.com/joshuayabut/z-nomp );

what you want is to change the hex part to what you want it to say:

Buffer('5a2d4e4f4d50212068747470733a2f2f6769746875622e636f6d2f6a6f7368756179616275742f7a2d6e6f6d70', 'hex')])

i tried this before ... but it never worked for me :)))

zzgang commented 6 years ago

yes, it does not work by default!

zzgang commented 6 years ago

anybody show me the code details?