baloo_kiev (OP)
|
|
June 09, 2013, 12:49:45 AM Last edit: July 05, 2013, 06:24:02 PM by baloo_kiev |
|
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: $ 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: $ ./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/06UPDATE 05/07 IMPORTANTEveryone 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.
|
|
|
|
|
|
|
According to NIST and ECRYPT II, the cryptographic algorithms used in
Bitcoin are expected to be strong until at least 2030. (After that, it
will not be too difficult to transition to different algorithms.)
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
Mogumodz
|
|
June 09, 2013, 01:19:05 AM |
|
Testing
"address" : "4TzKhcFbBLeD7hrMc5uRoMSRQWefjkfd51", "pubkey" : "03a807497d1e3eeb3ed915c3d2eb6c8a2f87a581a96333c788b14bb0de0ab5d2cc",
|
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 01:32:38 AM |
|
Now you are in payout list but with 0 payout, you need one more share for it to be non-zero.
|
|
|
|
Mogumodz
|
|
June 09, 2013, 01:55:28 AM |
|
very nice, thanks for your hard work baloo_kiev
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 10:51:51 AM |
|
Pushed the code to github.
|
|
|
|
Balthazar
Legendary
Offline
Activity: 3108
Merit: 1358
|
|
June 09, 2013, 11:20:41 AM |
|
Pushed the code to github.
Could you create a pull request?
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 11:34:28 AM |
|
Pushed the code to github.
Could you create a pull request? Done. There's a complete mess in commit chain (a total of 13), because I ported it to Bitbar and then back to NVC. What about zero node fee, I heard it can cause invalid blocks?
|
|
|
|
Balthazar
Legendary
Offline
Activity: 3108
Merit: 1358
|
|
June 09, 2013, 11:36:36 AM |
|
What about zero node fee, I heard it can cause invalid blocks?
It's correct.
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 11:39:44 AM |
|
What about zero node fee, I heard it can cause invalid blocks?
It's correct. Could you please explain briefly why is that? I'm quite familliar with NVC code.
|
|
|
|
Balthazar
Legendary
Offline
Activity: 3108
Merit: 1358
|
|
June 09, 2013, 11:43:42 AM |
|
What about zero node fee, I heard it can cause invalid blocks?
It's correct. Could you please explain briefly why is that? I'm quite familliar with NVC code. It's because of protocol limitations. Coinbase outputs should contain at least one owned by node, which created the block. We have a plan to remove this limitation in 0.4.3+, because it has no sense anymore.
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 08:43:27 PM |
|
Node hosters, please see OP for update!
|
|
|
|
Mogumodz
|
|
June 09, 2013, 08:57:22 PM |
|
Node hosters, please see OP for update!
Thanks, updating now.
|
|
|
|
12gaFacelift
|
|
June 09, 2013, 09:05:12 PM |
|
just to know if there will be a .exe
|
|
|
|
baloo_kiev (OP)
|
|
June 09, 2013, 09:09:00 PM |
|
just to know if there will be a .exe
Unfortunately, I don't know how to make them. If I needed to run it under Windows, I would probably do it in VirtualBox running Linux There are build instructions in the readme file and I've heard that they work.
|
|
|
|
Balthazar
Legendary
Offline
Activity: 3108
Merit: 1358
|
|
June 09, 2013, 09:09:55 PM |
|
I'll make it tomorrow.
|
|
|
|
|
fsb4000
Legendary
Offline
Activity: 1400
Merit: 1000
|
|
June 10, 2013, 02:18:19 PM |
|
|
|
|
|
baloo_kiev (OP)
|
|
June 12, 2013, 12:45:39 AM |
|
Updated, one more fix.
|
|
|
|
fsb4000
Legendary
Offline
Activity: 1400
Merit: 1000
|
|
June 12, 2013, 05:15:34 PM Last edit: July 05, 2013, 06:15:47 PM by fsb4000 |
|
|
|
|
|
|