Post
Topic
Board Announcements (Altcoins)
Re: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"
by
Faust Roland
on 12/01/2019, 10:37:48 UTC
This does not seem to be a bug in CLAM client, but a misconfiguration on your raspberry pi. Here is a link to get you started, but that's the best i can offer you as i don't have one to debug by myself:

https://stackoverflow.com/questions/41848227/debian-linux-raspbian-raspberry-pi-time-offset-is-65s-ahead-of-utc

NTP can be inaccurate if you get the wrong mix of peers. My main router has 5 external peers, and all are at least 500ms off (both +ve and -ve) my computed time. One is at +2.3 seconds offset. These are all supposedly stratum 2 servers, learned from pool.ntp.org.

My PI has correct time - same time I have on my Main PC and on the Phone (I am using time-based 2FA, so my time has to be correct)
Bud I tried to:
Stop clamd
move .clam to .clam_backup
create new .clam/clam.conf
start clamd with no blockchain from scratch

Then I got peers with +-1s timeoffset.

Then I switched back to the full synced chain and again +-85s timeoffset.
I tried to delete peers.dat, no change


See below
at the 10:21:21 I got new block with error  block timestamp too far in the future
at the 10:25:20 The Block with timestamp 10:21:20 is officially accepted but is considered as "already have"

So I don't know if I can start staking, as I got forked in December (after 2 years of smoothness stakig) and I don't want to repeat the same issue...

Also I am considering, that the size of the clam overgrew what RPi can handle - are there other RPi stakers here?
Code:
free -h
             total       used       free     shared    buffers     cached
Mem:          973M       942M        31M       568K       1.8M       6.3M
-/+ buffers/cache:       933M        39M
Swap:         1.0G       509M       514M


Quote
2019-01-12 10:21:21 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:21:21 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:21:47 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378211 timestamp=2019-01-12 10:17:20 UTC for block from timestamp=2018-12-26 15:50:24 UTC
2019-01-12 10:21:47 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1545839424 nTimeTxPrev=1545839395 nPrevout=108 nTimeTx=1547288272 hashProof=0000e6800376214e9c9a5a94d73c2c8680523dd565a4b06b98433386c43d95ae
2019-01-12 10:21:47 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378211 timestamp=2019-01-12 10:17:20 UTC for block from timestamp=2018-12-26 15:50:24 UTC
2019-01-12 10:21:47 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1545839424 nTimeTxPrev=1545839395 nPrevout=108 nTimeTx=1547288272 hashProof=0000e6800376214e9c9a5a94d73c2c8680523dd565a4b06b98433386c43d95ae
2019-01-12 10:21:48 SetBestChain: new best=40e955aeab8f05a5dba5d6f569f99a236d1318d74a63fa0063f5f6282755703f  height=2378212  trust=886542851187320957639  blocktrust=664485070067994  date=01/12/19 10:17:52
2019-01-12 10:21:48 ProcessBlock: ACCEPTED
2019-01-12 10:21:48 ERROR: ProcessBlock() : already have block 2378212 40e955aeab8f05a5dba5d6f569f99a236d1318d74a63fa0063f5f6282755703f
2019-01-12 10:21:59 peer 188.40.206.114:31174: leap backwards in height request, from max 2311199 to current 275001. penalty=1/100
2019-01-12 10:22:11 force request: block 258ce97be5f2dabfa7e12d5bc41377f7f183f76874de6a770d6e80ef62bcb2d7
2019-01-12 10:22:14 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:22:14 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:22:23 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378212 timestamp=2019-01-12 10:17:52 UTC for block from timestamp=2018-10-13 10:28:16 UTC
2019-01-12 10:22:23 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1539426496 nTimeTxPrev=1539426496 nPrevout=1 nTimeTx=1547288304 hashProof=0000145d97e32a4144ef8f773b2f4fcfd5eb45a5bd863d95d0135fef207b095f
2019-01-12 10:22:23 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378212 timestamp=2019-01-12 10:17:52 UTC for block from timestamp=2018-10-13 10:28:16 UTC
2019-01-12 10:22:23 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1539426496 nTimeTxPrev=1539426496 nPrevout=1 nTimeTx=1547288304 hashProof=0000145d97e32a4144ef8f773b2f4fcfd5eb45a5bd863d95d0135fef207b095f
2019-01-12 10:22:23 SetBestChain: new best=4a0bec133723366a1e5989948094f0f938b1049d88a833c759a84416f147aadf  height=2378213  trust=886543514991569125486  blocktrust=663804248167847  date=01/12/19 10:18:24
2019-01-12 10:22:23 ProcessBlock: ACCEPTED
2019-01-12 10:22:23 ERROR: ProcessBlock() : already have block 2378213 4a0bec133723366a1e5989948094f0f938b1049d88a833c759a84416f147aadf
2019-01-12 10:22:39 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:22:39 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:23:11 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378213 timestamp=2019-01-12 10:18:24 UTC for block from timestamp=2018-12-19 14:34:08 UTC
2019-01-12 10:23:11 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1545230048 nTimeTxPrev=1545230048 nPrevout=1 nTimeTx=1547288352 hashProof=00003186d2858ece5df2cfaafe08616b305556a5bedafe0e18f301b12d9bbeb6
2019-01-12 10:23:11 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378213 timestamp=2019-01-12 10:18:24 UTC for block from timestamp=2018-12-19 14:34:08 UTC
2019-01-12 10:23:11 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1545230048 nTimeTxPrev=1545230048 nPrevout=1 nTimeTx=1547288352 hashProof=00003186d2858ece5df2cfaafe08616b305556a5bedafe0e18f301b12d9bbeb6
2019-01-12 10:23:11 SetBestChain: new best=c60d28f4ccdf3fee4634c78ce48ffe27b4c543bd41cd02e70eea994e9da2978d  height=2378214  trust=886544178455603001062  blocktrust=663464033875576  date=01/12/19 10:19:12
2019-01-12 10:23:11 ProcessBlock: ACCEPTED
2019-01-12 10:23:11 ERROR: ProcessBlock() : already have block 2378214 c60d28f4ccdf3fee4634c78ce48ffe27b4c543bd41cd02e70eea994e9da2978d
2019-01-12 10:23:20 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:23:20 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:23:43 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:23:43 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:24:14 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378214 timestamp=2019-01-12 10:19:12 UTC for block from timestamp=2018-11-07 03:15:28 UTC
2019-01-12 10:24:14 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1541560528 nTimeTxPrev=1541560528 nPrevout=2 nTimeTx=1547288416 hashProof=0000262bef905f7f0317001f41c80c6a8d3a939a969be45f1e4a774a988799a5
2019-01-12 10:24:14 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378214 timestamp=2019-01-12 10:19:12 UTC for block from timestamp=2018-11-07 03:15:28 UTC
2019-01-12 10:24:14 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1541560528 nTimeTxPrev=1541560528 nPrevout=2 nTimeTx=1547288416 hashProof=0000262bef905f7f0317001f41c80c6a8d3a939a969be45f1e4a774a988799a5
2019-01-12 10:24:15 SetBestChain: new best=11f8931146069a41be5be689d453702e6654a1efb322dcdba878bdd9c81a3f8f  height=2378215  trust=886544841579584905956  blocktrust=663123981904894  date=01/12/19 10:20:16
2019-01-12 10:24:15 ProcessBlock: ACCEPTED
2019-01-12 10:24:15 ERROR: ProcessBlock() : already have block 2378215 11f8931146069a41be5be689d453702e6654a1efb322dcdba878bdd9c81a3f8f
2019-01-12 10:24:31 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:24:31 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:24:39 ERROR: CheckBlock() : block timestamp too far in the future
2019-01-12 10:24:39 ERROR: ProcessBlock() : CheckBlock FAILED
2019-01-12 10:25:05 ping timeout: 1200.010178s
2019-01-12 10:25:20 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378215 timestamp=2019-01-12 10:20:16 UTC for block from timestamp=2019-01-07 19:29:36 UTC
2019-01-12 10:25:20 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1546889376 nTimeTxPrev=1546889376 nPrevout=2 nTimeTx=1547288480 hashProof=00000712539b11721c548a48f699512ed023ce4ddfbbd9b10611124ebcaee86b
2019-01-12 10:25:20 CheckStakeKernelHash() : using modifier 0x5519ccb791de9d5c at height=2378215 timestamp=2019-01-12 10:20:16 UTC for block from timestamp=2019-01-07 19:29:36 UTC
2019-01-12 10:25:20 CheckStakeKernelHash() : check modifier=0x5519ccb791de9d5c nTimeBlockFrom=1546889376 nTimeTxPrev=1546889376 nPrevout=2 nTimeTx=1547288480 hashProof=00000712539b11721c548a48f699512ed023ce4ddfbbd9b10611124ebcaee86b
2019-01-12 10:25:20 SetBestChain: new best=702f7d9d7bb53884f53e0f7f07000d3cdab9cd55d08fa3b2f35d340a2e5c682f  height=2378216  trust=886545504363770220410  blocktrust=662784185314454  date=01/12/19 10:21:20
2019-01-12 10:25:20 ProcessBlock: ACCEPTED
2019-01-12 10:25:20 ERROR: ProcessBlock() : already have block 2378216 702f7d9d7bb53884f53e0f7f07000d3cdab9cd55d08fa3b2f35d340a2e5c682f