Bitcoin Forum
May 23, 2017, 01:31:16 AM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 ... 380 »
  Print  
Author Topic: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"  (Read 882579 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 08, 2014, 05:28:23 PM
 #881

this address has lots of POS blocks, i would have thought the client would combine the clams since they are staking in less than 24 hrs

The client is open source. I changed my copy to stop it combining outputs when they stake. The default behaviour is to combine all the outputs at the address that is staking into a single large output (up to 1000 CLAMs), thereby destroying the age of all those outputs for no benefit.

That may have made sense when the reward for staking was proportional to the amount being staked, but now that staking rewards are independent of the amount being staked it makes no sense at all the combine your outputs.

Edit: if you want the same behaviour without modifying your client, you can put each of your outputs at a different address. Combining only happens to outputs which share the same address.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
1495503076
Hero Member
*
Offline Offline

Posts: 1495503076

View Profile Personal Message (Offline)

Ignore
1495503076
Reply with quote  #2

1495503076
Report to moderator
1495503076
Hero Member
*
Offline Offline

Posts: 1495503076

View Profile Personal Message (Offline)

Ignore
1495503076
Reply with quote  #2

1495503076
Report to moderator
1495503076
Hero Member
*
Offline Offline

Posts: 1495503076

View Profile Personal Message (Offline)

Ignore
1495503076
Reply with quote  #2

1495503076
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1495503076
Hero Member
*
Offline Offline

Posts: 1495503076

View Profile Personal Message (Offline)

Ignore
1495503076
Reply with quote  #2

1495503076
Report to moderator
paulc010
Member
**
Offline Offline

Activity: 87


View Profile
August 08, 2014, 05:32:14 PM
 #882

Edit: if you want the same behaviour without modifying your client, you can put each of your outputs at a different address. Combining only happens to outputs which share the same address.

Which is what I've done, although it begs the question - is there a limit to the number of addresses per wallet?
dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 08, 2014, 05:44:40 PM
 #883

Which is what I've done, although it begs the question - is there a limit to the number of addresses per wallet?

The wallet gets slower the more addresses you have, because it has to scan all incoming blocks and transactions against its list of addresses to see if any of them affect any of the addresses it owns. You probably won't notice that being a problem until you have thousands of addresses.

One thing I have noticed is that splitting your CLAMs into lots of small outputs puts quite a load on your CPU (whether they're at the same address or not doesn't make a difference here) since each output gets checked every second to see whether it is able to stake a block in that second. At a certain point it starts taking more than a second to check each output for stakability...

I currently have over a thousand separate outputs being checked each second and it's beginning to use all available CPU doing the checking.

That surprises me, since each 'check' is an sha256 (I think) hash. My CPU should be capable of doing a thousand hashes per second with no trouble I would have thought. Maybe hashing isn't the slowest bit, and there's some bottleneck in the client that could be improved upon.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 08, 2014, 07:56:09 PM
 #884

I don't think I ever posted this:

http://pastie.org/9456438

It's a small Python script that takes any number of BTC, LTC, DOGE, and CLAM addresses and gives links to the corresponding blockchain explorer pages for the equivalent BTC, LTC, DOGE, and CLAM addresses.

When there was a giant influx of newly dug CLAMs about a week ago, I ran this script on a bunch of the CLAM addresses that were staking, and discovered that the new CLAMs were being dug from DOGE addresses.

Here's an example of it in use:

$ ./clam.py 18KSgPcNRPi9K4bp91Vb3pVNygPon4y5Pw x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w

   BTC: http://blockchain.info/address/18KSgPcNRPi9K4bp91Vb3pVNygPon4y5Pw
  DOGE: http://dogechain.info/address/DCTYDeZ1iocRr4nQsbV9baeyrp878jRzaG
   LTC: http://block-explorer.com/address/LSYPwbvCW3xCZsHyK9UtKqZ9Btm5wrJXxa
  CLAM: http://khashier.com:2750/address/xFd5aGSqh7CBMShgVV8FUznACnh3DALPss


   BTC: http://blockchain.info/address/128PnUZvozqpLmM54pTioy7Giivj44ketX
  DOGE: http://dogechain.info/address/D6GVKjWa7Qk6smXfoQTHMjGsbrf2Nvx5Po
   LTC: http://block-explorer.com/address/LLMM3gsktf5sba3EExT25zB2vwJ17S9JV2
  CLAM: http://khashier.com:2750/address/x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w


It uses https://github.com/jgarzik/python-bitcoinlib.git to do the heavy lifting, so you'll need to fetch that using git, and update the path to it in the script itself.

Edit: I forgot to say why this is useful... If you only just heard about CLAMs, and are worried about sharing your Bitcoin wallet with the CLAM client, you can use this script to convert your BTC addresses to CLAM addresses and look up the balance on the CLAM address without needed to give anyone your private keys at all. Bear in mind that your wallet probably has a bunch of "change" addresses in it which it carefully hides from view, and those change addresses may have CLAMs on them too, so you probably have more CLAMs than you think...

Edit2: the two addresses I gave in the example aren't great. The first is a BTC address that wasn't funded for the initial CLAM distribution, and the second is a CLAM address that I created in the CLAM client. But you get the idea!

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
paulc010
Member
**
Offline Offline

Activity: 87


View Profile
August 08, 2014, 09:53:07 PM
 #885

Here's a weird one. I have an address in my wallet that has aged nicely but that's not staking, well not since this:

http://khashier.com:2750/tx/d0c9d9695110200d714a70b65a1ec42f4281988835cf0035d0119243134ec6f3

It shows as "Not yet redeemed"...??!

Any ideas?

EDIT: I ran the client with -salvagewallet but all that seems to have done is mess up the addresses (many more appearing as change even though they were sent to multiple individual addresses) and removed the labels :/

Sorted out in my head by dooglus in IRC. All normal Cheesy

Going back to chillin' with my CLAMS....
ari14
Newbie
*
Offline Offline

Activity: 11


View Profile
August 08, 2014, 10:26:46 PM
 #886

If I have the address A with 2 nodes, one with 5 CLAM and other with 3 CLAM; if I select the node of 3 CLAM and send it to another address, the age of node of 5 CLAM will be reseted ?

Thanks.

Addresses almost never matter. It's all about the individual outputs. Your 3 and your 5 are separate things with their own ages.

The client will probably merge them into a single output when either of them stakes, so you might want to keep them in different addresses. That will stop them being merged.

Thanks !
dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 09, 2014, 12:59:10 AM
 #887

Here's a weird one. I have an address in my wallet that has aged nicely but that's not staking, well not since this:

http://khashier.com:2750/tx/d0c9d9695110200d714a70b65a1ec42f4281988835cf0035d0119243134ec6f3

It shows as "Not yet redeemed"...??!

Any ideas?

Sorted out in my head by dooglus in IRC. All normal Cheesy

Here's the IRC log, in case anyone else is interested in how we sorted it out:

01:42 < dooglus> paul: http://khashier.com:2750/address/xL1vCQ2Xbwg5mz7tvte4hXcMfBKKfgQr4D
01:42 < dooglus> you see it's been staking regularly
01:42 < dooglus> every 4 days or so
01:42 < dooglus> it's due...
01:43 < dooglus> 'not yet redeemed' just means the current output hasn't staked yet
01:43 < dooglus> (or otherwise been spent)
01:43 < paulc010> Yes it was. Maybe it's my ignorance of how these things work but I added new coins in 5 coin piles and they've staked before those.
01:44 < dooglus> it's random
01:44 < paulc010> Ah - right that makes sense. I went to check on others but the explorer was down
01:45 < paulc010> See I'm thinking 5 coins at 3k confirms would stake after 3.4 coins at almost 8k confirms
01:45 < dooglus> see this one:
01:45 < dooglus> http://khashier.com:2750/tx/36012e5359b1834e20a45d6dec3e1aff81d9da76c96b6860dc24640b564e9534#i0
01:45 < paulc010> But two of them staked today
01:45 < dooglus> 130 different 5 CLAM outputs
01:45 < dooglus> some staked, some didn't (yet)
01:46 < dooglus> (looking at the 'redeemed at input' column of the list of outputs)
01:46 < paulc010> (that should be 4.3 not 3.4 of course)
01:46 < dooglus> every second, each output has a chance of staking, proportional to its age and its size
01:46 < paulc010> Yup - I see it now. Just didn't have a clue what that meant
01:47 < paulc010> Hence the CPU load you mentioned in the thread
01:48 < dooglus> the 'not yet redeemed' turns into a link to the transaction in which they staked (or were spent) once they stake (or are spent)
01:48 < paulc010> Got it
01:48 < dooglus> so click the link on output 13 - you see the 5 staking into two 2.55's
01:48 < dooglus> (nether of which has since yet staked again)
01:49 < dooglus> if you trace http://khashier.com:2750/tx/b74eb0568ed7727c3da8c40eee8083eed615ddc7ed2bbe5a29872965a9f919fc you'll see it split over and over as it stakes
01:49 < paulc010> OK
01:49 < dooglus> halving each time - until I finally remembered it when it was mature and split it into those 5's
01:50 < dooglus> oh, I got output 2 right away, but not output 1
01:50 < paulc010> I was about to ask why it split into 5s lol
01:51 < paulc010> Normal behaviour would be for it to halve each staking, yes?
01:51 < paulc010> Ah, looking at the other one it's halving

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
istvandv
Sr. Member
****
Offline Offline

Activity: 339


View Profile
August 09, 2014, 03:20:00 AM
 #888

thanks for sharing the IRC logs, i was not online to see that, very informative

and thanks for all the contribution, dooglus, i keep learning day by day  Grin

almightyruler
Legendary
*
Offline Offline

Activity: 1246


View Profile
August 09, 2014, 07:14:49 AM
 #889

I use the daemon rather than the -qt client, so I believe I'm missing out on coin control functionality. I just inadvertently destroyed half of my weight by trying to split one of my unspent outputs into 4 pieces (was hoping it would split the output with the least confirms, but instead it gobbled up one of the oldest in the very first transaction.)

I thought that perhaps using multiple accounts and 'sendfrom' may solve this problem, but stitching together a transaction would probably ignore accounts and just use all available outputs, correct?

If so, I guess creating raw transactions are the only solution... but the potential for mistakes - such as forgetting the change address and giving the remnant balance as a fee to the next person who mines a block - seems high with this one.
dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 09, 2014, 07:16:30 AM
 #890

If so, I guess creating raw transactions are the only solution... but the potential for mistakes - such as forgetting the change address and giving the remnant balance as a fee to the next person who mines a block - seems high with this one.

That's what I do:

cc sendrawtransaction $(cc signrawtransaction $(cc createrawtransaction '[{"txid":"5c4a0eee3cce1c82b460df0b527570f00ce5f02f5378d88c8ec56cae0ee713a9","vout":1},{"txid":"5c4a0eee3cce1c82b460df0b527570f00ce5f02f5378d88c8ec56cae0ee713a9","vout":2}]' '{"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":5,"x9S2gMQQ5iKrP9SwRJ6PF9Q3wqDxRegc2w":2.13990000}') | grep hex | cut -d'"' -f4)

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
almightyruler
Legendary
*
Offline Offline

Activity: 1246


View Profile
August 09, 2014, 07:21:19 AM
 #891

The client is open source. I changed my copy to stop it combining outputs when they stake. The default behaviour is to combine all the outputs at the address that is staking into a single large output (up to 1000 CLAMs), thereby destroying the age of all those outputs for no benefit.

That may have made sense when the reward for staking was proportional to the amount being staked, but now that staking rewards are independent of the amount being staked it makes no sense at all the combine your outputs.

Any plans to offer this change for a future version? I'm familiar with *coind source in general, but I'm not yet comfortable with the inner workings of creating transactions (as evidenced by my above failure.)

edit: even a change in algorithm which prefers newer outputs when creating a transaction would probably help the network, in the long run.
dayandnight
Full Member
***
Offline Offline

Activity: 140


View Profile
August 09, 2014, 07:25:40 AM
 #892

The concept of proof of chain and proof of pearl is intresting.will notice!
istvandv
Sr. Member
****
Offline Offline

Activity: 339


View Profile
August 09, 2014, 11:12:49 AM
 #893

The client is open source. I changed my copy to stop it combining outputs when they stake. The default behaviour is to combine all the outputs at the address that is staking into a single large output (up to 1000 CLAMs), thereby destroying the age of all those outputs for no benefit.

That may have made sense when the reward for staking was proportional to the amount being staked, but now that staking rewards are independent of the amount being staked it makes no sense at all the combine your outputs.

Any plans to offer this change for a future version? I'm familiar with *coind source in general, but I'm not yet comfortable with the inner workings of creating transactions (as evidenced by my above failure.)

edit: even a change in algorithm which prefers newer outputs when creating a transaction would probably help the network, in the long run.

if i have my info right, devs are updating wallet to improve further the algorithm for auto combining and splitting the coins to maximize staking efficiency as well as having the option to manually control how coins will split/combine

dooglus
Legendary
*
Offline Offline

Activity: 2156



View Profile
August 09, 2014, 11:58:56 PM
 #894

Any plans to offer this change for a future version? I'm familiar with *coind source in general, but I'm not yet comfortable with the inner workings of creating transactions (as evidenced by my above failure.)

Oh, it was pretty trivial.

Edit src/wallet.cpp and change:

int64_t nStakeCombineThreshold = 1000 * COIN;

to

int64_t nStakeCombineThreshold = 0 * COIN;

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Karn
Sr. Member
****
Offline Offline

Activity: 434

"The mass of men lead lives of quiet desperation."


View Profile
August 10, 2014, 02:56:15 AM
 #895

ok so make more addys in my wallet and send X number of coins to each for best staking? I only have 15 so any thing that gives me a slightly higher chance of a lotto block would be worth doing.

“But it's a poor fellow who can't take his pleasure without asking other people's permission.” ― Hermann Hesse, Steppenwolf
creativecuriosity
Full Member
***
Offline Offline

Activity: 182

DGB.Get-By.com Admin


View Profile WWW
August 10, 2014, 03:14:31 AM
 #896

Just a notice to everyone!

Expect the kHashier.com multi-pool to go offline for a moment later this evening, possibly quite soon.

x11 is being added.

It is expected to come back up (and stay up) quite quickly - but we all know how updates go.

Karn
Sr. Member
****
Offline Offline

Activity: 434

"The mass of men lead lives of quiet desperation."


View Profile
August 10, 2014, 03:24:34 AM
 #897

Just a notice to everyone!

Expect the kHashier.com multi-pool to go offline for a moment later this evening, possibly quite soon.

x11 is being added.

It is expected to come back up (and stay up) quite quickly - but we all know how updates go.

very nice now I can put my miners on Clams Grin

“But it's a poor fellow who can't take his pleasure without asking other people's permission.” ― Hermann Hesse, Steppenwolf
seedtrue
Legendary
*
Offline Offline

Activity: 957



View Profile
August 10, 2014, 04:15:17 AM
 #898

Guys, I am a little worried that if we do not get listed on more exchanges, Clams will follow the same fate as Huntercoin. While they are completely different in basically every aspect, the one thing in common is they both are only listed on poloniex (Huntercoin is on more exchanges now, but only after the price completely bottomed out). We should petition more exchanges(Bittrex, Mintpal, C-cex, Cryptsy) and get them to list Clams.
istvandv
Sr. Member
****
Offline Offline

Activity: 339


View Profile
August 10, 2014, 04:17:48 AM
 #899

Any plans to offer this change for a future version? I'm familiar with *coind source in general, but I'm not yet comfortable with the inner workings of creating transactions (as evidenced by my above failure.)

Oh, it was pretty trivial.

Edit src/wallet.cpp and change:

int64_t nStakeCombineThreshold = 1000 * COIN;

to

int64_t nStakeCombineThreshold = 0 * COIN;


thanks for sharing this dooglus, if i ever i hit a big lotto block im sure to use this, as for now, my amount of clams is still manageble with having multiple addresses approach

IXC2XIC
Full Member
***
Offline Offline

Activity: 126


View Profile
August 10, 2014, 04:27:33 AM
 #900




Clams?

Proof of Pearl?

 Cheesy Cheesy Cheesy

Worth it just for the laugh.

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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 ... 380 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!