doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 30, 2011, 11:59:59 PM |
|
Don't think I really have to ask but I will. I take it you fixed the makefiles so it actually builds on the supported OS's and the binaries it produces are named properly?
Makefiles are changed to produce the correct binary name and use of 'bitcoin' in the app itself has changed to 'devcoin'. I modified the other OS makefiles but haven't been able to test them. Let me know if OS X fails and I'll fix. I'll test Windows later today.
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 01:46:28 AM |
|
Thanks SAC, looking at it now. I've added the ability to register with a devcoin address to the mmpool now. See here for details. I'm thinking of automatically setting existing users devcoin address to their bitcoin address since they are compatible. Then users can mine devcoins without re-registering and import their private key if they want to claim them.
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 01:52:42 AM |
|
Ok it did fail on OSX with the undefined symbols like it did on the i0 so I think you know that fix already and it built the daemon fine on my Ubuntu 11.04 64bit box.
These link errors are due to devcoind requiring libcurl - something none of the other alt chains use. You'll need to build libcurl ( http://curl.haxx.se/libcurl/) and and change the 'LIBS' line in the makefile.osx to: LIBS= -dead_strip \ $(DEPSDIR)/lib/libdb_cxx-4.8.a \ $(DEPSDIR)/lib/libboost_system.a \ $(DEPSDIR)/lib/libboost_filesystem.a \ $(DEPSDIR)/lib/libboost_program_options.a \ $(DEPSDIR)/lib/libboost_thread.a \ $(DEPSDIR)/lib/libssl.a \ $(DEPSDIR)/lib/libcrypto.a \ $(DEPSDIR)/lib/libcurl.a
Note that libcurl.a addition at the end. Let me know if this works ok and I'll push a fix to the repository with this.
|
|
|
|
cablepair
|
|
December 31, 2011, 02:38:50 AM |
|
and just so everyone knows pool.devcoin.org is ready for merged mining switch and will be collecting the pool portion of the bounty woo-hah!
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 03:03:34 AM |
|
Interesting so all you would need to do is import your BTC private key into your devcoin wallet and you would be good to go. Sounds like an idea actually how hard is that to do anyways, import the key that is?
The latest bitcoin source includes a patch to import and export private keys. I'll cherry-pick that patch into my devcoin repository to make it easier. So it shouldn't be too difficult. I'll do some testing.
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 04:11:39 AM |
|
Ok thanks any clue on the error(s) above?
Build libcurl without ldap support. There's a configure option for it. Otherwise it's a pain - you have to build ldap libraries and link to them.
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 04:48:03 AM |
|
Indeed don't need more BS on the system than is already there now it just gave me 32 bit app on its run through on the 64bit it gave me this below for some stupid reason both builds use the --disable-ldap --disable-ldaps for the configure options so don't know why it would error on 64bit usually once I have the 32 it is good to go all the way to a universal app at the end.
Isn't cURL fun! You need to either build libidn for 64 bit, or configure curl using "--without-libidn".
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 06:17:33 AM |
|
...I think you missed a couple of your Bitcoin to Devcoin replacements as I still see Your Bitcoin Address: in the GUI and Bitcoin at the top in the app the name displays properly in the top of the screen in the unified menus that OSX uses and in the dock when hovering over it.
Yes, I probably have - I erred on the side of caution in the renaming. I'll do a GUI build and fix it up at some point.
|
|
|
|
Kumala
|
|
December 31, 2011, 06:24:43 AM |
|
What is the current hashrate of the entire devcoin network?
How do you caclulate the hashrate of the network? Is it "only" a matter of checking the timestamps of the most recent blocks and together with the current difficult rate calculate the hasrate? If that's all there is to it, I could possibly add some infos into the exchange, as I have all the daemons running, I have access to all the info provided by getinfo.
|
Hacked Account! Don't send any money.
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 06:51:53 AM |
|
How do you caclulate the hashrate of the network? Is it "only" a matter of checking the timestamps of the most recent blocks and together with the current difficult rate calculate the hasrate?
I believe that's how it's done, yes.
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 11:34:16 AM |
|
When a miner solves a block, 50,000 devcoins are created. Of these, 5,000 goes to the miner. Where do the other 45,000 go? My understanding is they go to 'developers' as a donation. How is this distributed? Do miners create the transactions to send the coins to them as part of minting the block? Or do the coins go to an address and an administrator periodically sends them out?
|
|
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
December 31, 2011, 01:50:25 PM |
|
I see. It seems to cycle through addresses from the receiver.csv file each block.
|
|
|
|
markm
Legendary
Offline
Activity: 3010
Merit: 1121
|
|
December 31, 2011, 02:43:30 PM |
|
Yes, curl goes and gets the receiver file, and the first few transactions in the block, or maybe somehow extra outputs in the coinbase transaction, send the 45000 out to addresses found in the receivers file. I think it maybe even allows multiple addresses on a line in the receivers file and divvies the 45000 between them maybe. Can't really recall now its been a while since we got that part done.
-MarkM-
|
|
|
|
Unthinkingbit (OP)
|
|
December 31, 2011, 11:50:53 PM |
|
I see. It seems to cycle through addresses from the receiver.csv file each block.
Indeed, it cycles through the addresses. I added an explanation to the devcoin article: http://devtome.org/wiki/index.php?title=Devcoin#Disbursing_the_Shareand pasted it below. The generation share is 90% of the block, which is 90% * 50,000 devcoins = 45,000 devcoins. It is disbursed to the devcoin addresses in the receiver file, in round robin order. In each generation round, for a given block height, the index of the line of addresses is the block height above the start of the round, modulo the number of addresses. The code snippet for that follows below. vector<string> getCoinAddressStrings(const string& dataDirectory, const string& fileName, int height, int step) { .. int remainder = height - step * (height / step); int modulo = remainder % (int)coinLists.size(); vector<string> originalList = coinLists[modulo]; for (vector<string>::iterator tokenIterator = originalList.begin(); tokenIterator != originalList.end(); tokenIterator++) { if (*tokenIterator != string("=")) oldToken = tokenIterator->substr(); coinList.push_back(oldToken); } return coinList; } Then in CreateBlock, the share per address is calculated by dividing the generation share by the number of coin addresses in the line of addresses. A subtransaction to create share per address coin value is then added for each coin address to the generation transaction. The transactions from generation can be seen by looking at a devcoin block explorer: http://devcoinblockexplorer.info:2750/chain/Devcoinor http://explorer.devcoin.org
|
|
|
|
Unthinkingbit (OP)
|
|
January 01, 2012, 05:46:12 AM |
|
And I custom built a client where I ..."modified"... the ratios. Although my client accepted the block, the other clients on network rejected and orphaned my block. When other clients validate the block, they are checking that the proper rewards were sent before accepting the block - else they reject it.
Indeed the devcoin nodes must enforce the correct generation transaction or else for a given amount of resources a dishonest miner could make ten times as many coins as an honest miner. I added the following to the devcoin article: "The validation code in ConnectBlock checks that the generation transaction creates the required coin value for each coin address. If a block does not create the correct amount for the correct receivers, the node rejects it and so the block is orphaned." Also, I saw one thing in the earlier code that I wanted to mention....When you loop through the shares, you are using an INT variable declaration (in several places).....You might want to use INT64 just in case some exploit comes along.
From what I remember, the int32 variables come from either the block height, or constants inside the program or the number of lines in the receiver. Where could an exploit target a standard int32? If there vulnerabilities, what should be changed?
|
|
|
|
Kumala
|
|
January 01, 2012, 09:08:02 AM |
|
Just to make sure I understand correct and that I dont accidentally download a wrong source, the new Devcoin source (officially released?) which also supports merged mining is stored in Github with the name: old-devcoind BTW, do I need to upgrade my wallet even if I do not want to use it for mining purposes but purely a wallet?
|
Hacked Account! Don't send any money.
|
|
|
doublec
Legendary
Offline
Activity: 1078
Merit: 1005
|
|
January 01, 2012, 10:00:01 AM |
|
Just to make sure I understand correct and that I dont accidentally download a wrong source, the new Devcoin source (officially released?) which also supports merged mining is stored in Github with the name: old-devcoind
This is my understanding, yes.
|
|
|
|
Kumala
|
|
January 02, 2012, 07:26:41 AM |
|
Anyone else have the same problem: I can receive DVCs but all by sends remain with 0 confirmations and they dont show up in the blockchain either. No errors show when I do the transfer. They just sit there with 0 confirmations.
|
Hacked Account! Don't send any money.
|
|
|
Unthinkingbit (OP)
|
|
January 02, 2012, 08:59:50 AM |
|
Anyone else have the same problem: I can receive DVCs but all by sends remain with 0 confirmations and they dont show up in the blockchain either. No errors show when I do the transfer. They just sit there with 0 confirmations.
I don't know for sure what the problem is, but it could be that because of the new spam proofing code you have to add a higher sending fee, there are no more free transactions.
|
|
|
|
|