Pages:
Author

Topic: [NVC][P2Pool] Public node + source code! - page 2. (Read 4528 times)

sr. member
Activity: 476
Merit: 250
Pushed the code to github.
sr. member
Activity: 290
Merit: 250
very nice, thanks for your hard work baloo_kiev  Cheesy
sr. member
Activity: 476
Merit: 250
Testing

"address" : "4TzKhcFbBLeD7hrMc5uRoMSRQWefjkfd51",
"pubkey" : "03a807497d1e3eeb3ed915c3d2eb6c8a2f87a581a96333c788b14bb0de0ab5d2cc",

Congrats! Your first share http://78.27.191.182:8347/static/share.html#00000001914cc68014719e256e72788a44a72072527981b8239ea284416eebac

Now you are in payout list but with 0 payout, you need one more share for it to be non-zero.
sr. member
Activity: 476
Merit: 250
Testing

"address" : "4TzKhcFbBLeD7hrMc5uRoMSRQWefjkfd51",
"pubkey" : "03a807497d1e3eeb3ed915c3d2eb6c8a2f87a581a96333c788b14bb0de0ab5d2cc",

Congrats! Your first share http://78.27.191.182:8347/static/share.html#00000001914cc68014719e256e72788a44a72072527981b8239ea284416eebac
sr. member
Activity: 290
Merit: 250
Testing

"address" : "4TzKhcFbBLeD7hrMc5uRoMSRQWefjkfd51",
"pubkey" : "03a807497d1e3eeb3ed915c3d2eb6c8a2f87a581a96333c788b14bb0de0ab5d2cc",
sr. member
Activity: 476
Merit: 250
Summary. As you may know, current version of NVC p2pool (adapted for NVC by the coin's developer Balthazar, https://github.com/CryptoManiac/p2pool) does not support mining on a public node to custom address. I post a simple patch which allows mining on a public node, which can be tested on my zero-fee host.

Technical background. What is known as address (that string of symblols) is encoded hash of ECDSA public key. Address can be derived from corresponding public key but not vice versa. Unlike other coins, in NVC (and PPC I believe), generation transaction is forced to send coins to full public keys. So mining to a given address is just impossible. However, one can mine to specific public key!

To launch a public node get the code from https://github.com/baloo-kiev/p2pool/tree/nvc:
Code:
$ git clone -b nvc https://github.com/baloo-kiev/p2pool.git

To mine on a public node. Get a new pubkey from your NVC client with 'getnewpubkey' command in debug console or by RPC. Validate it vith 'validatepubkey' command to find out address associated with it.
It looks like this:
Code:
$ ./novacoind getnewpubkey
0283f63d8e2988b76cbab6b69c81471db70598a16748ce08091abbcc50b254a353
$ ./novacoind validatepubkey 0283f63d8e2988b76cbab6b69c81471db70598a16748ce08091abbcc50b254a353
{
    "isvalid" : true,
    "address" : "4FPVq9hX5HEE4SdmWF3g5DLo2xBCrJ5xuv",
    "ismine" : true,
    "iscompressed" : true,
    "isscript" : false,
    "pubkey" : "0283f63d8e2988b76cbab6b69c81471db70598a16748ce08091abbcc50b254a353",
    "iscompressed" : true,
    "account" : ""
}

Use it as your username when connecting to the node.

You can test it on my zero-fee node at http://78.27.191.182:8347/

Happy mining!

UPDATE Code updated, please update your nodes! To avoid generation of invalid blocks, miners now mine to the node's default address until it has minimal payout (0.01 NVC). With current network hashrate this is equivalent to minimal fee of 50 kH/s distributed across all node's miners. You are free to set any custom fee percentage for your node (including zero), but this minimal fee will apply anyway.

UPDATE 12/06 Fixed miner's pubkey validation.

UPDATE 13/06

UPDATE 05/07
IMPORTANT

Everyone who downloaded Windows binaries before this update must clear their data/novacoin directory. Accidentally, it contains a cached public key, which will be used as your node's default mining address if you don't delete it! Download link fixed.
Pages:
Jump to: