Author

Topic: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin" - page 458. (Read 1151252 times)

hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
Thank you for the well written explanation......i didn't see anything about unstaked coins

Any pile of coin that's available as an input to a transaction is "unstaked" - it's either too young or it's currently "staking" (trying to solve a block). The chance of those piles "staking" is based on the number of coins and the "age" (i.e. time, number of confirms etc.) which combine to give the "weight". In that coin control screen you can see how the coins are split up (number of inputs per address) and the number of confirmations. This gives you an insight into their weight. Every pile of coins can potentially stake, although it has been pointed out that if less than (or equal to?) 0.1 coins it effectively has 0 chance.

As Superclam says, when you send coins you might "break up" a partially used input and the "age" for that input (chance it will earn a reward) resets. This is not good and should be avoided, as it will mean that these coins will take that much longer to stake.

What's unique about CLAMs over traditional POS is that while logic might suggest that you should have all your coins in one pile (number of coins adds weight) that doesn't work out so well in practice because the reward is fixed(*). While your larger pile of coins has a better chance of solving a block than a smaller one (at the same age), a set of smaller blocks will all eventually stake anyway, potentially giving you a higher return (multiple rewards rather than just one). How you split up your coins to maximise returns is up to you to decide.

"Staked" coins don't appear as available as inputs in the coin control window - their total is displayed on the main screen as "Stake" and are unavailable to spend for 510 confirms.

(*) Although the standard reward is fixed (0.1 CLAM) there is a chance of a (much) higher payout should you be lucky and hit a lotto block (up to 1,000 CLAM). Each time you solve a block there's the potential to "win" one of these, so it's another reason why multiple smaller piles of staking coins is much better than a single larger one.

Hope the above helps!


OK thank you once again

Just so I've got it right...... I just leave wallet running with a positive balance......eventually next to Stake it will change from 0.00 clams to positive number clams, and should remain active until clams balance changes
member
Activity: 92
Merit: 10
Thank you for the well written explanation......i didn't see anything about unstaked coins

Any pile of coin that's available as an input to a transaction is "unstaked" - it's either too young or it's currently "staking" (trying to solve a block). The chance of those piles "staking" is based on the number of coins and the "age" (i.e. time, number of confirms etc.) which combine to give the "weight". In that coin control screen you can see how the coins are split up (number of inputs per address) and the number of confirmations. This gives you an insight into their weight. Every pile of coins can potentially stake, although it has been pointed out that if less than (or equal to?) 0.1 coins it effectively has 0 chance.

As Superclam says, when you send coins you might "break up" a partially used input and the "age" for that input (chance it will earn a reward) resets. This is not good and should be avoided, as it will mean that these coins will take that much longer to stake.

What's unique about CLAMs over traditional POS is that while logic might suggest that you should have all your coins in one pile (number of coins adds weight) that doesn't work out so well in practice because the reward is fixed(*). While your larger pile of coins has a better chance of solving a block than a smaller one (at the same age), a set of smaller blocks will all eventually stake anyway, potentially giving you a higher return (multiple rewards rather than just one). How you split up your coins to maximise returns is up to you to decide.

"Staked" coins don't appear as available as inputs in the coin control window - their total is displayed on the main screen as "Stake" and are unavailable to spend for 510 confirms.

(*) Although the standard reward is fixed (0.1 CLAM) there is a chance of a (much) higher payout should you be lucky and hit a lotto block (up to 1,000 CLAM). Each time you solve a block there's the potential to "win" one of these, so it's another reason why multiple smaller piles of staking coins is much better than a single larger one.

Hope the above helps!
hero member
Activity: 784
Merit: 1002
CLAM Developer
Be careful to use 'coin-control'   no idea about that at all
Under Settings->Options->Display(tab) you can turn on coin control.
Once this is on, when you go to the "Send Coins" screen there's a button at the top marked "Inputs...". Clicking this opens a new window that lets you manually select the coin inputs to use in a transaction, otherwise it's done automatically (which could adversely affect your staking). It also lets you see your unstaked piles of coins in detail.
Thank you for the well written explanation......i didn't see anything about unstaked coins

As previously stated (thank you):

Coin control is a feature that can be turned on in the settings (settings -> options -> display).

It allows you to choose which output (pile) you send from.
This is important, as when you send a part of an output (pile) of coins, the entire pile loses any stored 'age' or weight.
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?

 Be careful to use 'coin-control'   no idea about that at all


Under Settings->Options->Display(tab) you can turn on coin control.

Once this is on, when you go to the "Send Coins" screen there's a button at the top marked "Inputs...". Clicking this opens a new window that lets you manually select the coin inputs to use in a transaction, otherwise it's done automatically (which could adversely affect your staking). It also lets you see your unstaked piles of coins in detail.

Thank you for the well written explanation......i didn't see anything about unstaked coins
member
Activity: 92
Merit: 10

 Be careful to use 'coin-control'   no idea about that at all


Under Settings->Options->Display(tab) you can turn on coin control.

Once this is on, when you go to the "Send Coins" screen there's a button at the top marked "Inputs...". Clicking this opens a new window that lets you manually select the coin inputs to use in a transaction, otherwise it's done automatically (which could adversely affect your staking). It also lets you see your unstaked piles of coins in detail.
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?

...

3. Be careful to use 'coin-control'.  It can be turned on in the settings.  Or else sending a small amount of coins could reset the age on a larger pile.

...

^ Might be pertinent here, considering the multiple outputs the '20' CLAMS appears to be split into.

 Be careful to use 'coin-control'   no idea about that at all
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?

help > debug > console > listunspent

What does that show?

Your 'weight' looks wrong - too low.


18:02:08

listunspent


18:02:08

[
{
"txid" : "27f8d1c386e153e94181a586270b94f567af8ad9a0782f79d1ca0656017e52e1",
"vout" : 0,
"address" : "x9JGJyHaHFUp4EmRn2LzVEXrrZCRTx5w2U",
"scriptPubKey" : "76a9140ae61b9de64bbcdc51c56667d4304492c2cac9d288ac",
"amount" : 11.42162296,
"confirmations" : 3851
},
{
"txid" : "803f0967eedb14bd39c8afaa116405a93c892454349ba5cf9095e7a56a4c0317",
"vout" : 0,
"address" : "xQ6iDjss2wvbYwaJ7fhcGJFbUwD61GrtCK",
"account" : "dogejon",
"scriptPubKey" : "76a914ad40a1aab6024fff2dbcb60631f2576123fbb39e88ac",
"amount" : 9.21081148,
"confirmations" : 3859
}
]
hero member
Activity: 784
Merit: 1002
CLAM Developer
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?

...

3. Be careful to use 'coin-control'.  It can be turned on in the settings.  Or else sending a small amount of coins could reset the age on a larger pile.

...

^ Might be pertinent here, considering the multiple outputs the '20' CLAMS appears to be split into.
full member
Activity: 227
Merit: 100
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?

help > debug > console > listunspent

What does that show?

Your 'weight' looks wrong - too low.


[
{
"txid" : "4d5d45c7b3d575076a2a1446584d1ba1e25d696be01f787436cd750cf299e33f",
"vout" : 1,
"address" : "xCcU9AdyheZjG8jtV99MfHzv6Fm5t1hrsf",
"scriptPubKey" : "210311ca668d61be81fcf0fd9caa6767904fd7b91739c1ad1f7c886f12f2ae7abb23ac",
"amount" : 8.99500000,
"confirmations" : 3026
},
{
"txid" : "5a081ca523afbedcd6b9d6c85ee2a13681285a96f57622f39d367ac310e28031",
"vout" : 1,
"address" : "xP89XQ78Kx3NhctY9mHgc9t4kKSgooWeak",
"scriptPubKey" : "21023199d5c2ba730dda0c03c3aa720456dc498849c1cf26f7e2ef0f04b8606b8657ac",
"amount" : 5.10545574,
"confirmations" : 2078
},
{
"txid" : "6af7c7de2b3e7a2052cf48e80b3795bd677f218495c2768a2dba31c1ed42928d",
"vout" : 1,
"address" : "xST4HRa4Z5hEHUKv6SkamtEXyxLSRMpst8",
"scriptPubKey" : "2102c865890393db82b8d03072c7937648c04143edcf361b8e89c7e525f143e88b80ac",
"amount" : 6.60421825,
"confirmations" : 7230
}
]
my
"weight" : 37,
Why at 40 clam weights over 500
I can transfer all Clam in a new purse
legendary
Activity: 2940
Merit: 1333
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?

help > debug > console > listunspent

What does that show?

Your 'weight' looks wrong - too low.
legendary
Activity: 2268
Merit: 1092
1) 15:34:33

getstakinginfo


15:34:33

{
"enabled" : true,
"staking" : true,
"errors" : "",
"currentblocksize" : 1000,
"currentblocktx" : 0,
"pooledtx" : 0,
"difficulty" : 0.00027244,
"search-interval" : 1,
"weight" : 31,
"netstakeweight" : 34687,
"expectedtime" : 36948
}

This looks a bit odd, especially the low weight, and corresponding expectedtime. I've got about 40 clams and have staked several times, most recently a couple of days ago. Here's what mine looks like:

Code:
{
    "enabled" : true,
    "staking" : true,
    "errors" : "",
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "pooledtx" : 0,
    "difficulty" : 0.00040276,
    "search-interval" : 1,
    "weight" : 568,
    "netstakeweight" : 38287,
    "expectedtime" : 337
}
hero member
Activity: 784
Merit: 1002
CLAM Developer
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?
Both good questions.
1. Go to Help -> Debug Window -> Console, then type "getstakinginfo".  What does it say?
2. Hover the up-pointing arrow at the bottom right corner of the CLAMClient.  Is it green? Does it say Staking?
3. Be careful to use 'coin-control'.  It can be turned on in the settings.  Or else sending a small amount of coins could reset the age on a larger pile.
4. Is the chain in sync? What does it say for "getblockcount"? Do you have peers?
1) 15:34:33
getstakinginfo
15:34:33
{
"enabled" : true,
"staking" : true,
"errors" : "",
"currentblocksize" : 1000,
"currentblocktx" : 0,
"pooledtx" : 0,
"difficulty" : 0.00027244,
"search-interval" : 1,
"weight" : 31,
"netstakeweight" : 34687,
"expectedtime" : 36948
}
2) green & staking
3) says in sync 60098 blocks   15  peers
getblockcount =
15:39:13
getblockcount
15:39:13
60101

Looks to be in order to me.
Give it a bit of time; I would expect it is just a matter of giving it time to stake in the new harder difficulty Smiley
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?

Both good questions.

1. Go to Help -> Debug Window -> Console, then type "getstakinginfo".  What does it say?

2. Hover the up-pointing arrow at the bottom right corner of the CLAMClient.  Is it green? Does it say Staking?

3. Be careful to use 'coin-control'.  It can be turned on in the settings.  Or else sending a small amount of coins could reset the age on a larger pile.

4. Is the chain in sync? What does it say for "getblockcount"? Do you have peers?


1) 15:34:33

getstakinginfo


15:34:33

{
"enabled" : true,
"staking" : true,
"errors" : "",
"currentblocksize" : 1000,
"currentblocktx" : 0,
"pooledtx" : 0,
"difficulty" : 0.00027244,
"search-interval" : 1,
"weight" : 31,
"netstakeweight" : 34687,
"expectedtime" : 36948
}

2) green & staking

3) says in sync 60098 blocks   15  peers

getblockcount =
15:39:13

getblockcount


15:39:13

60101

sr. member
Activity: 402
Merit: 250
Proof-Of-Chain, Proof-Of-Pearl,proof of XXX.... Grin
hero member
Activity: 784
Merit: 1002
CLAM Developer
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?

Both good questions.

1. Go to Help -> Debug Window -> Console, then type "getstakinginfo".  What does it say?

2. Hover the up-pointing arrow at the bottom right corner of the CLAMClient.  Is it green? Does it say Staking?

3. Be careful to use 'coin-control'.  It can be turned on in the settings.  Or else sending a small amount of coins could reset the age on a larger pile.

4. Is the chain in sync? What does it say for "getblockcount"? Do you have peers?
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?

Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?

my wallet is unlocked.  I can't see/ don't know where is "for staking only" checkbox. 15 peers   clam version v1.4.2.1
member
Activity: 79
Merit: 10
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?

Do you have your wallet unlocked? Make sure the "For staking only" checkbox is checked. Other than that, how many peers do you see when you hover your cursor over the signal bars icon?
hero member
Activity: 529
Merit: 505
I'm on drugs, what's your excuse?
I'm not sure about staking at all. I've got 20 odd clams in wallet 3500+ confirmations. I have 0 clams staked...I just leave wallet online.....am I missing something here?
legendary
Activity: 2268
Merit: 1092
I've just noticed that clam and blackcoin have the same RPC port, 15715.

I was querying with blackcoind, but because of the port clash, blackcoind was actually connecting to and giving me results from clamd.

Didn't realise this until I'd 'stop'ed blackcoind, then noticed that it was actually clamd that had exited.
full member
Activity: 227
Merit: 100


If you look on the block explorer you can see your transaction and the 0.60535574 in change that was sent to xCszox7aCdXDBDX619Ydx2zPxbSNJHDxJJ which according to your description would be a change address

http://khashier.com:2750/tx/9aff8a4eacc5e53a657049343a0c7fa3996a3f8c43b2ba2cc7c306b0a2a78923

The .6+ is stored in a change address which was created by your wallet when you sent the transaction. It will be in the wallet you originally had the Clams in.

If you open that wallet back up you should see it in there.     
you mean the address
xCszox7aCdXDBDX619Ydx2zPxbSNJHDxJJ
he was re-recorded by another purse, but there is a new creation through -salvagewallet
Jump to: