-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSAWeight and Magnitude not checked in staked blocks #345
Comments
@gridcoin High priority issue. @tomasbrod Additional discretion regarding security issues would be appreciated. Action regarding this cannot be immediate because a mandatory upgrade requires advance notice for exchanges/services. |
Researching this issue now. |
I would like if we can fix this together. I already proposed a solution in my wiki page. |
Hi @tomasbroad, I just sent you an email. |
If we have a malformed superblock (or no superblock in a couple days), might that disrupt the verification of blocks? Would it be wise to create a failsafe in which if my client fails to stake a few times in a row due to mag inaccuracies that it falls back solely on POS then tries POR again after a set quantity of blocks? |
@tomasbrod if the por_nonce and the RSA_WEIGHT are removed from the hash and the RSA_Weight is checked with the magnitude from the last superblock, it would be safe to keep the target weight, right? |
@tomasbrod can we close this issue? I believe you have at least proposed a fix which should be tested in testnet soon, right? :) |
Neither fields are validated in incoming blocks. RSAWeight field is currently used to give new users boost in stake weight. However it is not verified that it is indeed a new user. By modifying the source code I was able to hugely increase my weight and stake multiple times a day. MintLimiter prevents me from creating even more blocks.
Research reward is calculated from the current magnitude and magnitude at previous dpor block. The current magnitude is checked but the value in dpor block is not. I modified the code to set magnitude 30000 in my staked blocks. This further increased my stake weight. First reward was based on my legitimate mag of 18 at that time, but the next rewards were all high. I staked 7 such blocks in two days so far totaling 552 GRC. In testnet I received 10371 TestGRC. There are multiple 1GRC rewards caused by #317.
Furthermore a proof-of-work nonce is included in current stake kernel degrading the consensus algorithm to Proof of Work.
cpid/46f64d69eb8c5ee9cd24178b589af83f
I still want to support this coin. I haven't done anything wrong. I just politely asked the network to give me
some bonus and it did.
To prevent panic i would like to point out: Balance in your wallet is still and will be well safe.
Immediate action is required.
The text was updated successfully, but these errors were encountered: