Bitcoin Forum
June 29, 2024, 01:34:00 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 »
  Print  
Author Topic: [ANN] SMAC - Accounts have been suspended project closed  (Read 65797 times)
boxxa
Sr. Member
****
Offline Offline

Activity: 310
Merit: 250


View Profile
March 10, 2015, 11:09:54 PM
 #541

A single PoS block minting 365 coins is rare with our small supply but obviously we will implement the fix. Changes like this submitted with a fix are rewarded from the buy back fund as outlined in the ANN for contributions which is why the code fix is being paid from my input. Not sure what the SMAC team think and can do as they wish.
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 10, 2015, 11:13:11 PM
 #542

Thank you for the contribution to this. I don't think we have seen a wallet this bug but will submit the change to our repo and have the wallet updates for this.

This is the great community effort to submit a fix to a seen problem in open source code.

DM me your wallet address for some SMAC.



I appreciate the generous offer but I agree with Soul_eater_123 here: At least 50% should go to Julian for spotting the issue - the fix itself is rather simple. Wink

I will DM my address.

Thanks!


Edit:

A single PoS block minting 365 coins is rare with our small supply but obviously we will implement the fix. Changes like this submitted with a fix are rewarded from the buy back fund as outlined in the ANN for contributions which is why the code fix is being paid from my input. Not sure what the SMAC team think and can do as they wish.

Well...no. Wink As soon as you send one transaction with 300 SMAC to your wallet you will create a 300 SMAC stake once these coins mature.


Soul_eater_123
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
March 10, 2015, 11:16:49 PM
 #543

A single PoS block minting 365 coins is rare with our small supply but obviously we will implement the fix. Changes like this submitted with a fix are rewarded from the buy back fund as outlined in the ANN for contributions which is why the code fix is being paid.

Well if that's the policy fair enough.  Might be a good idea to allow additional donations to the fund to ensure there is always enough to pay out. 

I also think it might be useful to reward people separately for pointing out errors and providing fixes. 

This would encourage full transparency as some errors may take time to be fixed but that should not act as a barrier to them being sought out and reported.
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 10, 2015, 11:25:27 PM
 #544

A single PoS block minting 365 coins is rare with our small supply but obviously we will implement the fix. Changes like this submitted with a fix are rewarded from the buy back fund as outlined in the ANN for contributions which is why the code fix is being paid.

Well if that's the policy fair enough.  Might be a good idea to allow additional donations to the fund to ensure there is always enough to pay out. 

I also think it might be useful to reward people separately for pointing out errors and providing fixes. 

This would encourage full transparency as some errors may take time to be fixed but that should not act as a barrier to them being sought out and reported.

+1

Otherwise people might refrain from reporting bugs until they have fixed it on their own - which might take longer than it would take if they reported it at once.

Soul_eater_123
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
March 10, 2015, 11:26:27 PM
 #545

A single PoS block minting 365 coins is rare with our small supply but obviously we will implement the fix. Changes like this submitted with a fix are rewarded from the buy back fund as outlined in the ANN for contributions which is why the code fix is being paid.

Well if that's the policy fair enough.  Might be a good idea to allow additional donations to the fund to ensure there is always enough to pay out. 

I also think it might be useful to reward people separately for pointing out errors and providing fixes. 

This would encourage full transparency as some errors may take time to be fixed but that should not act as a barrier to them being sought out and reported.

+1

Otherwise people might refrain from reporting bugs until they have fixed it on their own - which might take longer than it would take if they reported it at once.

Exactly:)
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 11, 2015, 12:47:15 AM
 #546

So anyway, there's a buffer overflow in the Proof of Stake implementation which I've mentioned before but I guess I'm getting ignored. This basically means if you are staking a block of 253 or more coins, you won't receive a full Proof of Stake payout based on 365% interest.

Here's some simulation code based on staking 300 coins.

Code:
#include <stdio.h>
#include <sys/types.h>

int main(void) {
    // SMAC
    int64_t nDays = 1;
    int64_t nCoins = 300;

    int64_t CENT = 1000000;
    int64_t COIN = 100000000;
    int64_t MAX_MINT_PROOF_OF_STAKE = 1 * CENT;
    int64_t nRewardCoinYear = 365 * MAX_MINT_PROOF_OF_STAKE; // Month 1 - 365% interest
    int64_t nCoinAge = nDays * nCoins * COIN;

    int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN; // SMAC code

    printf("nSubsidy= %lld\n", nSubsidy);
}

So that is a buffer overflow.

Result is:
nSubsidy = -205390248

Actual result should be:
nSubsidy = 300000000

Or 3 SMAC.

So if you can find a block which has paid out more than 3 SMAC in Proof of Stake interest during the 365% interest period, you can prove me wrong.  Well to be exact, if you can find a PoS payment of more than 2.53 SMAC during the 365% interest period, you can prove me wrong.

The worst case scenario is for people staking more. I feel bad for those people as their investment isn't fully paying out.  For example with 3000 SMAC, staking for 1 day you should receive 30 SMAC.  For 30000 SMAC, staking for 1 day you should receive 300 SMAC.... So yes, 1% per day since minimum stake age is 1 day.



Even simpler, only change one line of code:

Instead of

Code:
int64_t nSubsidy = nCoinAge * nRewardCoinYear / 365 / COIN; // SMAC code

do


Code:
int64_t nSubsidy = (nCoinAge/COIN) * (RewardCoinYear / 365); // SMAC code


C++ isn't exactly my area of expertise so if someone with that expertise is reading this: Please verify!

(I can't imagine why those brackets wouldn't be calculated first though)

SMAC-Media (OP)
Member
**
Offline Offline

Activity: 103
Merit: 10


View Profile
March 11, 2015, 04:17:47 AM
 #547

update: weekly newsletter, https://mega.co.nz/#!gQ4kVAiA!BoU-FUZ80gtNq0NJKBhGkz10vZ6gRE_28HdI9BJ8Hyw
Stenull
Hero Member
*****
Offline Offline

Activity: 585
Merit: 500


View Profile
March 11, 2015, 07:23:52 AM
 #548

How can there be a buffer overflow? 64 bit integer max val is 9223372036854775807.
Or is there any other function overflowing this stack position? i must writing on the most significant bit hens the negative number.

The result of nCoinAge * nRewardCoinYear for 300 coins is 10950000000000000000 (or higher depending on coinage). Buffer overflow.


[/quote]

Ah, i never did the math Cheesy sorry

Change...is in the air.
You know why
Penn.3D
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


View Profile
March 11, 2015, 10:19:13 AM
Last edit: March 11, 2015, 05:45:02 PM by Penn.3D
 #549

Newsletter looks great! Thanks for the updates!!

Edit to add:

In case some of you don't "get it" as far as why many of us are excited about this coin, let me summarize in as few words as possible (and please someone jump in if I am getting anything wrong here....)

If the social media accounts start bringing in money (which presumably they will since these guys seem to know what they are doing), some of that money will go towards buying coins off the market which will raise the value of the remaining coins, and some of that money will go towards buying more social media accounts which will bring in more money, which will be used to buy coins off the market as well as more social media accounts which will bring in more money, and so on.

That's not to mention the exciting possibility that SMAC will be used as one of if not THE currency for the social media advertising industry, which of course the dev team is trying to make happen.

GET IT!!??

translation....HOLD YOUR DAMN COINS PEOPLE UNLESS YOU HATE MONEY!!
placebo
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


View Profile
March 12, 2015, 02:32:04 PM
 #550

I'm wondering if there will be somekind of buyback program? If the coin is getting cheaper and cheaper then it make sense for DEV to use some money. Maybe launch some great news and it jump to the moon. Look at GSM, jump by 800%.

Everything is in the hands of DEV. What will he do with all those BTCs, how long will he allow his coin to drop. Will he not start buying?
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 12, 2015, 07:18:33 PM
 #551

I'm wondering if there will be somekind of buyback program? If the coin is getting cheaper and cheaper then it make sense for DEV to use some money. Maybe launch some great news and it jump to the moon. Look at GSM, jump by 800%.

Everything is in the hands of DEV. What will he do with all those BTCs, how long will he allow his coin to drop. Will he not start buying?

First buyback is scheduled for April 27th according to twitter:

https://twitter.com/SMACteam/status/575793388127019008?lang=en-gb

placebo
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


View Profile
March 12, 2015, 08:51:22 PM
 #552

I hope SMAC will do a GSM Cheesy
inspirone1
Full Member
***
Offline Offline

Activity: 327
Merit: 100


Open and Transparent Science Powered By Blockchain


View Profile
March 12, 2015, 09:06:52 PM
 #553

Any updates on expected fix? I have been staking coins for 10 days and haven't received shit for staking 26K coins. (received 200 coins in 10 days) Could of and should of have dumped and re-bought for well over the 200 coins I made staking.

ORVIUM          Open and Transparent Science Powered By Blockchain          ORVIUM
█      Whitepaper         Telegram         Twitter         Facebook         Reddit         Blog     
▇▆▅▃▃▃▃▃▃▃   Token Generation Event: Coming Soon   ▃▃▃▃▃▃▃▅▆▇
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 12, 2015, 10:12:06 PM
 #554

I wrote some lines with boxxa earlier.

The fix is being worked on, expect news soon. Wink

odyjm
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
March 13, 2015, 06:40:51 AM
 #555

I don't understand the supposed bug enough to know if it harm me or not.

All can I say is since March 10th I receive about a number really close to 1% of interest per day for staking.

The wallet connects sync fast and run it since 11 days with no problem.

So where's the bug?
wurstgelee
Hero Member
*****
Offline Offline

Activity: 840
Merit: 500


View Profile
March 13, 2015, 06:55:04 AM
Last edit: March 13, 2015, 03:44:48 PM by wurstgelee
 #556

I don't understand the supposed bug enough to know if it harm me or not.

All can I say is since March 10th I receive about a number really close to 1% of interest per day for staking.

The wallet connects sync fast and run it since 11 days with no problem.

So where's the bug?
Short version:

If you have more than 253 SMAC in one stake (also happens with less SMAC if the coinage is > min coinage required for staking) you hit a buffer overflow in PoS reward calculation which results in a way too low reward. Since nStakeCombineThreshold is set to 1000, splitting coins into smaller transactions when sending them to your wallet doesn't help - those transactions would be added up when creating stakes due to that threshold.


placebo
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


View Profile
March 13, 2015, 07:56:41 AM
 #557

I'm wondering if there will be somekind of buyback program? If the coin is getting cheaper and cheaper then it make sense for DEV to use some money. Maybe launch some great news and it jump to the moon. Look at GSM, jump by 800%.

Everything is in the hands of DEV. What will he do with all those BTCs, how long will he allow his coin to drop. Will he not start buying?

First buyback is scheduled for April 27th according to twitter:

https://twitter.com/SMACteam/status/575793388127019008?lang=en-gb

I like the buyback program, but in altcoin world 27th of April is a long time. On twitter they are talking about accounts that 500k followers etc, but i don't see any prove. It would be nice that they can post some prove of it. Everybody can say, now we bought account worth of .... but where are the proves? If they post proves then i'm pretty sure that this coin will not trade at 8k sats but at 800k sats. Now it is just wording, a screenshot doesn't take too much, no?
UNO_owner
Sr. Member
****
Offline Offline

Activity: 299
Merit: 250



View Profile
March 13, 2015, 01:48:49 PM
 #558

I'm wondering if there will be somekind of buyback program? If the coin is getting cheaper and cheaper then it make sense for DEV to use some money. Maybe launch some great news and it jump to the moon. Look at GSM, jump by 800%.

Everything is in the hands of DEV. What will he do with all those BTCs, how long will he allow his coin to drop. Will he not start buying?

First buyback is scheduled for April 27th according to twitter:

https://twitter.com/SMACteam/status/575793388127019008?lang=en-gb

I like the buyback program, but in altcoin world 27th of April is a long time. On twitter they are talking about accounts that 500k followers etc, but i don't see any prove. It would be nice that they can post some prove of it. Everybody can say, now we bought account worth of .... but where are the proves? If they post proves then i'm pretty sure that this coin will not trade at 8k sats but at 800k sats. Now it is just wording, a screenshot doesn't take too much, no?

As they said in the newsletter, proof will result in trolls getting the accounts banned on twitter. 

Soul_eater_123
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
March 13, 2015, 01:49:20 PM
 #559

I don't understand the supposed bug enough to know if it harm me or not.

All can I say is since March 10th I receive about a number really close to 1% of interest per day for staking.

The wallet connects sync fast and run it since 11 days with no problem.

So where's the bug?

Over the last couple of days I've only received about 40% of what I should get.  So it is definitely there.
popcorn75
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


View Profile
March 13, 2015, 11:58:42 PM
 #560

i am not able to download the windows walllet from the website.. help please

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 »
  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!