Author

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

legendary
Activity: 4004
Merit: 1250
Owner at AltQuick.com
so, if I will import my priv keys, client does send my priv keys to developers or not?

No, but it is better to be safe than sorry.

Just assume it does. 

I know lazy bastards who haven't moved their coins and claimed their CLAM.

With the CLAM client it does it all for you automatically.
legendary
Activity: 2893
Merit: 1158
so, if I will import my priv keys, client does send my priv keys to developers or not?
legendary
Activity: 2940
Merit: 1333
Mac fag checking in.  Running 1.4.10 and smooth sailing so far.  Staking and all. 
Curious behaviour as the staking icon goes red more than I've ever seen but I can't
see a problem.

Does it go red for long periods at a time? Long enough that you can hover the mouse over it and tell me what pops up when it's red?

If you put:
debug=stake
in the clam.conf file in the same folder as your wallet.dat and restart, it will write stake-related stuff to debug.log in the same folder as it stakes.

You could "tail -f debug.log" in that folder and see whether anything looks different when it's red. Staking basically consists of hashing each of your staking outputs every 16 seconds and comparing the result with a target based on the network difficulty. If the output hashes lower than the target, you get to stake a block. "debug=stake" will cause these hashes that are being compared to be logged.

I couldn't find an existing one, so I created a clam.conf and added debug=stake.  I'm hoping I did it correctly.  I added a screengrab of data flow. http://imgur.com/Gmcfbf8 When I hover the cursor over the red icon, it sometimes says 0 weight.  And then other times it says not staking because I don't have mature coins.  But then I stake at least once a day. 

I'm sorry, I didn't notice your reply until now.

That screenshot looks like it didn't have "debug=stake" in the clam.conf. Maybe you put the clam.conf in the wrong folder, or didn't restart the client after editing it, or something else...

You can run the client with the -debug=stake flag to achieve the same effect without editing any files. When it's set, the logfile should show a bunch of [STAKE] messages every 16 seconds, like this:

Quote
[STAKE] searching for staking opportunity:
2015-03-04 18:33:05 [STAKE] checking 2 output(s)
2015-03-04 18:33:05 [STAKE] check 4b669d099edc650be18f19695fad64057eb5aded6f1a8f0f55f2f47601acfbf3:0   (0.0001 CLAM)
2015-03-04 18:33:05 [STAKE] fail: hash ac18df140e5080e0ed6553d10b31ce2baf675bdb852223c3d6495349f44ba3ae
2015-03-04 18:33:05 [STAKE]   > target         43b056b0000000000000000000000000000000000000000000000000
2015-03-04 18:33:05 [STAKE] check 4b669d099edc650be18f19695fad64057eb5aded6f1a8f0f55f2f47601acfbf3:1   (100.9814 CLAM)
2015-03-04 18:33:05 [STAKE] fail: hash ce2be821048a46acc0ea14932bc615758388556abb380c220b48852ee09eb4b5
2015-03-04 18:33:05 [STAKE]   > target    412fc60da4b20000000000000000000000000000000000000000000000000
2015-03-04 18:33:05 stake took 0s

That's my two outputs trying but failing to stake yet again.

I'm wondering if your "checking 2 outputs()" count goes down to 0 when the icon goes red, and if so whether the log says anything about it.
legendary
Activity: 2940
Merit: 1333
does anybody know how to validate a CLAM address with PHP?

Probably your best bet is to use something like this to interface with clamd's RPC interface, and call "validateaddress".

Alternatively you can check an address by base58 decoding it, and making sure that the first byte of the result is (whatever it's meant to be, 0x85 I think) and that the last 4 bytes of the result are indeed the correct checksum for the rest of the result. Read about the format of addresses here:
  https://en.bitcoin.it/wiki/Base58Check_encoding

This is the regex to find/check an address
Code:
^[x][a-km-zA-HJ-NP-Z0-9]{26,33}$

Careful - that will tell you that
  xJDCLAMZ9rQ11tMf7JUw1Zzvjm5ShkryrV
is a valid address when it isn't.
  xJDCLAMZ9rQ11tMf7JUw1Zzvjm5ShkryrU
is valid. Note the U on the end.

The last few characters are a checksum to guard against typos. You can't validate the checksum using a regexp.
legendary
Activity: 2940
Merit: 1333
Are fees necessary for clam? If staking is same and not ending over the time ?

I guess part of the point of fees is as a spam-prevention mechanism.

If it cost nothing to make thousands of transactions just sending coins to yourself then that's an easy way for an attacker to bloat the blockchain.

Also, without fees there's no incentive (other than fuzzy "help the coin" incentives) for stakers to include any transactions in their blocks. They would get paid the same whether they stake empty or full blocks, and full blocks take longer to propagate and so stand more chance of being orphaned.

This can change though.

I imagine the block reward will be reduced in the next 2 years or so.

Why's that?

One of the things that sold me on CLAM was the linear distribution curve

 I wouldn't get to nervous about this.  That's one Man's opinion, note the use of the word "imagine".  

   To keep a POS coin network alive you need to have lot's of nodes moving the block chain along.  The people running the nodes need to be compensated for there time and resources.  At present, the transaction fees are increasing, but don't amount to much.  In the last 6 stakes I've made .0014 from the fees.  hardly enough incentive to keep a node running.  

The way I see it, staking your coins is simply a way of "keeping up with inflation". The total money-supply goes up 3% per year, but your CLAM balance also goes up 3% per year and so your percentage of the market cap stays constant - in that sense PoS money-supply is the "good" kind of inflation. It doesn't erode people's savings.

It doesn't really matter what that "3%" figure is, so long as it's big enough to encourage people not to opt out of staking and small enough that the money supply doesn't get too big.

There will always be some people who don't stake their coins, and so by staking your share of the market cap will be going up while their share goes down. That's how it should be, and results in more people supporting the network by staking their coins.
hero member
Activity: 605
Merit: 500
Seems Coinimal is very selective with their coins, they only offer BTC LTC NXT and CLAM

Cool  Grin
hero member
Activity: 1344
Merit: 502
Announcement:

Coinimal is happy to announce that it has added its first additional altcoin: CLAM



Starting from today, customers can instantly buy CLAM with:

SOFORT
Giropay/EPS
OBT Skrill
SEPA Bank Transfer


Customers need to be verified, but will receive a 5€ voucher as compensation.

Website: https://www.coinimal.com/

Regards,
Paul
CEO Coinimal GmbH

You sold me on POP ages ago but this is excellent
full member
Activity: 151
Merit: 100
Announcement:

Coinimal is happy to announce that it has added its first additional altcoin: CLAM



Starting from today, customers can instantly buy CLAM with:

SOFORT
Giropay/EPS
OBT Skrill
SEPA Bank Transfer


Customers need to be verified, but will receive a 5€ voucher as compensation.

Website: https://www.coinimal.com/

Regards,
Paul
CEO Coinimal GmbH

AWESOME. thank you kind sir
legendary
Activity: 1526
Merit: 1001
Announcement:

Coinimal is happy to announce that it has added its first additional altcoin: CLAM



Starting from today, customers can instantly buy CLAM with:

SOFORT
Giropay/EPS
OBT Skrill
SEPA Bank Transfer


Customers need to be verified, but will receive a 5€ voucher as compensation.

Website: https://www.coinimal.com/

Regards,
Paul
CEO Coinimal GmbH

good news for all , i like Clam , maybe next week i buy in coinimal , now i dont have money , very very sad  Cry , good luck
legendary
Activity: 1680
Merit: 1001
CEO Bitpanda.com
Announcement:

Coinimal is happy to announce that it has added its first additional altcoin: CLAM



Starting from today, customers can instantly buy CLAM with:

SOFORT
Giropay/EPS
OBT Skrill
SEPA Bank Transfer


Customers need to be verified, but will receive a 5€ voucher as compensation.

Website: https://www.coinimal.com/

Regards,
Paul
CEO Coinimal GmbH
hero member
Activity: 756
Merit: 500
I don't see anything wrong with a linear distribution curve.

With the combination of more people digging up clams and the increase of clams from POS rewards the inflation will decrease over time. 
legendary
Activity: 938
Merit: 1000
Mac fag checking in.  Running 1.4.10 and smooth sailing so far.  Staking and all.  
Curious behaviour as the staking icon goes red more than I've ever seen but I can't
see a problem.

Does it go red for long periods at a time? Long enough that you can hover the mouse over it and tell me what pops up when it's red?

If you put:
debug=stake
in the clam.conf file in the same folder as your wallet.dat and restart, it will write stake-related stuff to debug.log in the same folder as it stakes.

You could "tail -f debug.log" in that folder and see whether anything looks different when it's red. Staking basically consists of hashing each of your staking outputs every 16 seconds and comparing the result with a target based on the network difficulty. If the output hashes lower than the target, you get to stake a block. "debug=stake" will cause these hashes that are being compared to be logged.

I couldn't find an existing one, so I created a clam.conf and added debug=stake.  I'm hoping I did it correctly.  I added a screengrab of data flow. http://imgur.com/Gmcfbf8 When I hover the cursor over the red icon, it sometimes says 0 weight.  And then other times it says not staking because I don't have mature coins.  But then I stake at least once a day.  

Hope this helps.  Thanks for everything!  

/s/

Same thing was happening to me on a previous version (1.4.7 i think)  and the 0 weight was also showing.
I haven't seen it happen to me again yet on this latest version.. but I'll watch for it.



It can stay red for up to one minute, i've seen it myself. When you hover over it says 'Not staking because you don't have mature coins'

It doesn't appear to affect staking in the long run, i always just put it down to new blocks being generated and that it was a normal thing.

I have the debug switch on at the moment so i'll try and upload the debug.log next time i see it happen.

I think I caught a red patch in the debug log.  This is the point where it was red and then normalized:

ERROR: AcceptToMemoryPool : ConnectInputs failed 275b33ea6daf21907648b93235e33942d63c759c139efe8135f9e88a02aec89f
ERROR: ConnectInputs() : afa49bad29ccfd608c5aefb44d407fabfea69fa15d3ea1f5c256d783b10daf6e prev tx already used at (nFile=1, nBlockPos=319403622, nTxPos=319404329)
ERROR: AcceptToMemoryPool : ConnectInputs failed afa49bad29ccfd608c5aefb44d407fabfea69fa15d3ea1f5c256d783b10daf6e
ERROR: ConnectInputs() : 58c3a3c1186b5c89c3ac5772eced46233bff83cee7de7c8efc6fe1f3b96029a7 prev tx already used at (nFile=1, nBlockPos=342165995, nTxPos=342168405)
ERROR: AcceptToMemoryPool : ConnectInputs failed 58c3a3c1186b5c89c3ac5772eced46233bff83cee7de7c8efc6fe1f3b96029a7
ERROR: ConnectInputs() : 9236ca795d0acf1016cfaa99887c75e79465376f9d64dfa6f7c02fcbffd2ec62 prev tx already used at (nFile=1, nBlockPos=342323040, nTxPos=342323537)
ERROR: AcceptToMemoryPool : ConnectInputs failed 9236ca795d0acf1016cfaa99887c75e79465376f9d64dfa6f7c02fcbffd2ec62
ERROR: ConnectInputs() : 0b675b9287c686a297de540dbc6909342dcd494164ee73fc7a14484b53e436a1 prev tx already used at (nFile=1, nBlockPos=342592588, nTxPos=342593400)
ERROR: AcceptToMemoryPool : ConnectInputs failed 0b675b9287c686a297de540dbc6909342dcd494164ee73fc7a14484b53e436a1
stake took 0s
stake took 0s
stake took 0s
stake took 0s
SetBestChain: new best=c4f00cb1bd10f1465095c98ace135a9cde9beff8f28f92469835487faf060c35  height=360756  trust=16799287784950803720  blocktrust=156701501658267  date=03/01/15 04:48:48
ProcessBlock: ACCEPTED
stake took 0s
SetBestChain: new best=8e2c754fd4bcadb59b715244d7f885f2059120b7d862f0b0e29f1c01e929a9c7  height=360757  trust=16799443607527302960  blocktrust=155822576499240  date=03/01/15 04:49:20
ProcessBlock: ACCEPTED
stake took 0s
SetBestChain: new best=8aec101da5519366c1b71c094f9ddf4d213860433299fd918f89ef03b83a62d6  height=360758  trust=16799598557078531095  blocktrust=154949551228135  date=03/01/15 04:49:36
ProcessBlock: ACCEPTED

Any update on why this happens ?   Mine seemed to stay red longer this morning
Edit:  also seems to be happening more frequently (icon turning red)

Edit #2:  Restarted wallet and symptom seems to have mysteriously disappeared (for now?)


legendary
Activity: 4004
Merit: 1250
Owner at AltQuick.com
I wouldn't get to nervous about this.  That's one Man's opinion, note the use of the word "imagine".  

Ya I'm totally just rambling Tongue

No worries.
legendary
Activity: 1007
Merit: 1000
Are fees necessary for clam? If staking is same and not ending over the time ?

Staking is 1 coin per block, 1440 coins per day. Forever! No block halvings or other nonsense.

This can change though.

I imagine the block reward will be reduced in the next 2 years or so.

Why's that?

One of the things that sold me on CLAM was the linear distribution curve

 I wouldn't get to nervous about this.  That's one Man's opinion, note the use of the word "imagine".  

   To keep a POS coin network alive you need to have lot's of nodes moving the block chain along.  The people running the nodes need to be compensated for there time and resources.  At present, the transaction fees are increasing, but don't amount to much.  In the last 6 stakes I've made .0014 from the fees.  hardly enough incentive to keep a node running.  

  BTC generates a 25 coin per block reward for the miners.  They try to average 6 blocks per hour.  So that's 150 BTC per hour Vs. Clams 60 clams per hour.  And the CLAMS block chain is 10X faster then BTC.  When BTC halves the block reward to 12.5 they will still be generating more coins then CLAMS, and the blockchian will still be 10X slower.  

    There may come a day when the volume of Clam transactions, and thus the transaction fee's, are high enough to sustain a network.  If or when that will happen is anyone's guess...

    That's just my opinion.  
full member
Activity: 151
Merit: 100
does anybody know how to validate a CLAM address with PHP?

This works... using the regex from Nixsy:

Code:
$regex = "/^[x][a-km-zA-HJ-NP-Z0-9]{26,33}$/";
if (preg_match($regex, "xWEWfhF9hDvKksvWgFj6kmseLYShZG9Kx8")) {
    // match success
    echo "Found a match!";
} else {
    // If preg_match() returns false, then the regex does not
    // match the string
    echo "The regex pattern does not match. :(";
}

I Have saved this to my snippets folder, Thanks dude.
legendary
Activity: 4004
Merit: 1250
Owner at AltQuick.com
does anybody know how to validate a CLAM address with PHP?

This works... using the regex from Nixsy:

Code:
$regex = "/^[x][a-km-zA-HJ-NP-Z0-9]{26,33}$/";
if (preg_match($regex, "xWEWfhF9hDvKksvWgFj6kmseLYShZG9Kx8")) {
    // match success
    echo "Found a match!";
} else {
    // If preg_match() returns false, then the regex does not
    // match the string
    echo "The regex pattern does not match. :(";
}

Nice Cheesy
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
does anybody know how to validate a CLAM address with PHP?

This works... using the regex from Nixsy:

Code:
$regex = "/^[x][a-km-zA-HJ-NP-Z0-9]{26,33}$/";
if (preg_match($regex, "xWEWfhF9hDvKksvWgFj6kmseLYShZG9Kx8")) {
    // match success
    echo "Found a match!";
} else {
    // If preg_match() returns false, then the regex does not
    // match the string
    echo "The regex pattern does not match. :(";
}
hero member
Activity: 605
Merit: 500
Are fees necessary for clam? If staking is same and not ending over the time ?

Staking is 1 coin per block, 1440 coins per day. Forever! No block halvings or other nonsense.

This can change though.

I imagine the block reward will be reduced in the next 2 years or so.

Why's that?

One of the things that sold me on CLAM was the linear distribution curve
legendary
Activity: 4004
Merit: 1250
Owner at AltQuick.com
Are fees necessary for clam? If staking is same and not ending over the time ?

Staking is 1 coin per block, 1440 coins per day. Forever! No block halvings or other nonsense.

This can change though.

I imagine the block reward will be reduced in the next 2 years or so.
Jump to: