-
Notifications
You must be signed in to change notification settings - Fork 10
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
Non-Staked nodes are in Neighborhood 0x00000000000... #269
Comments
Here's a sample
|
Here are the relevant lines from the commit transaction that causes the inappropriately generated hash to finally fail for non-staked nodes. A similar check is needed in storage-incentives/src/Redistribution.sol Line 283 in e70c3cd
storage-incentives/src/Redistribution.sol Lines 300 to 302 in e70c3cd
But isParticipatingInUpcomingRound should simply return false instead of an error, IMHO.
|
yes, you are right, we should be including this kind of check in "isParticipatingInUpcomingRound". |
The latest Redistribution Contract in the Sepolia Testnet causes non-staked nodes to believe they are participating in neighborhood 0. This is due to the
isParticipatingInUpcomingRound
method usinglastUpdatedBlockNumberOfAddress
andoverlayOfAddress
from the Staking contract, both of which return 0 for non-staked nodes.storage-incentives/src/Redistribution.sol
Lines 803 to 813 in e70c3cd
Consider the following contract query captures for my sepolia testnet node address
0x0e8a050ae87932b00a1acb01718654ac9fbb4c1e
and overlay0xa006d6ef64db7cb9a43681c69f06044851cc8b4a15f82da6d9194184b2347b53
with no stake in the current staking contracts.From the Redistribution contract:
From the Staking contract:
This cause all non-staked nodes to calculate a hash and I have no idea what happens if they actually
commit
,reveal
, and possibly try toclaim
a win in the round where their actual neighborhood wasn't actually selected.The text was updated successfully, but these errors were encountered: