Bitcoin Forum
April 25, 2024, 05:18:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21] 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 ... 176 »
  Print  
Author Topic: Devcoin  (Read 412869 times)
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 30, 2011, 11:59:59 PM
 #401

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.
1714065499
Hero Member
*
Offline Offline

Posts: 1714065499

View Profile Personal Message (Offline)

Ignore
1714065499
Reply with quote  #2

1714065499
Report to moderator
1714065499
Hero Member
*
Offline Offline

Posts: 1714065499

View Profile Personal Message (Offline)

Ignore
1714065499
Reply with quote  #2

1714065499
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714065499
Hero Member
*
Offline Offline

Posts: 1714065499

View Profile Personal Message (Offline)

Ignore
1714065499
Reply with quote  #2

1714065499
Report to moderator
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 01:46:28 AM
 #402

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 01:52:42 AM
 #403

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:

Code:
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
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
December 31, 2011, 02:38:50 AM
 #404

Devcoin Download Links
Download

Devcoin Source:
https://github.com/knotwork/old-devcoind

Devcoind 32 Bit Linux Binary (i686)
http://pool.devcoin.org/files/daemons/devcoind

Devcoind 64 Bit Linux Binary (x86_64)
http://btcnetwork.com/files/daemons/devcoind

This information can also be found by clicking the 'Download' tab at
http://www.devcoin.org

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 03:03:34 AM
 #405

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 04:11:39 AM
 #406

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 04:48:03 AM
 #407

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 06:17:33 AM
 #408

...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
Hero Member
*****
Offline Offline

Activity: 525
Merit: 500



View Profile
December 31, 2011, 06:24:43 AM
 #409

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 06:51:53 AM
 #410

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 Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 11:34:16 AM
 #411

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?
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
December 31, 2011, 01:27:06 PM
 #412

check http://explorer.devcoin.org - for an example of how the transactions are made, 45000 go to a set address
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 31, 2011, 01:50:25 PM
 #413

check http://explorer.devcoin.org - for an example of how the transactions are made, 45000 go to a set address
I see. It seems to cycle through addresses from the receiver.csv file each block.
markm
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
December 31, 2011, 02:43:30 PM
 #414

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-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
Unthinkingbit (OP)
Hero Member
*****
Offline Offline

Activity: 935
Merit: 1015



View Profile
December 31, 2011, 11:50:53 PM
 #415

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_Share

and 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/Devcoin

or

http://explorer.devcoin.org

Unthinkingbit (OP)
Hero Member
*****
Offline Offline

Activity: 935
Merit: 1015



View Profile
January 01, 2012, 05:46:12 AM
 #416

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."

Quote
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
Hero Member
*****
Offline Offline

Activity: 525
Merit: 500



View Profile
January 01, 2012, 09:08:02 AM
 #417

Devcoin Download Links
Download

Devcoin Source:
https://github.com/knotwork/old-devcoind

Devcoind 32 Bit Linux Binary (i686)
http://pool.devcoin.org/files/daemons/devcoind

Devcoind 64 Bit Linux Binary (x86_64)
http://btcnetwork.com/files/daemons/devcoind

This information can also be found by clicking the 'Download' tab at
http://www.devcoin.org

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 Offline

Activity: 1078
Merit: 1005


View Profile
January 01, 2012, 10:00:01 AM
 #418

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
Hero Member
*****
Offline Offline

Activity: 525
Merit: 500



View Profile
January 02, 2012, 07:26:41 AM
 #419

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)
Hero Member
*****
Offline Offline

Activity: 935
Merit: 1015



View Profile
January 02, 2012, 08:59:50 AM
 #420

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.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21] 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 ... 176 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!