-
Notifications
You must be signed in to change notification settings - Fork 37
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
SN pays for container estimations #3129
Comments
Does it mean we also need to add Alphabet signature check to the PutContainerSize? |
That's a somewhat separate matter. Ideally we should check SN belongs to the respective container. But we can't really do it now at the contract level. We can check IR-side when processing notary request, but this check doesn't prevent SN from misbehavior, so this means an additional alpha-sig check can be beneficial to prevent unauthorized puts. |
I agree, that IR can do it much easier and it should do it. But since we always have alpha signature now, IMO, it should be checked.
We... now can with https://github.com/nspcc-dev/neofs-contract/blob/6bc4a62a01e6b3940501e62084ad0c2b66c26b74/contracts/container/contract.go#L795-L818? |
You know the current status of these lists, not yet. |
Add `AnnounceLoad` event, parser and processor for this event. Now `putContainerSize` method tx sends as notary, make proxy contract pay for it, make it sender and add alpha witness for it. Closes #3129. Signed-off-by: Andrey Butusov <[email protected]>
Add `AnnounceLoad` event, parser and processor for this event. Now `putContainerSize` method tx sends as notary, make proxy contract pay for it, make it sender and add alpha witness for it. Closes #3129. Signed-off-by: Andrey Butusov <[email protected]>
Add `AnnounceLoad` event, parser and processor for this event. Now `putContainerSize` method tx sends as notary, make proxy contract pay for it, make it sender and add alpha witness for it. Closes #3129. Signed-off-by: Andrey Butusov <[email protected]>
Add `AnnounceLoad` event, parser and processor for this event. Now `putContainerSize` method tx sends as notary, make proxy contract pay for it, make it sender and add alpha witness for it. Closes #3129. Signed-off-by: Andrey Butusov <[email protected]>
Expected Behavior
Proxy contract paying for transactions.
Current Behavior
NYmvupSPkJEuYWaofaNErKF3YF5Gddxyfg
is one of SNs. It signs and sends a transaction.Possible Solution
Make proxy contract pay for it, make it sender and add alpha witness for it. Send as notary request.
Steps to Reproduce (for bugs)
Watch container estimations.
Context
Mainnet. This makes nodes lose their GAS pretty quickly as we get more and more containers on the network.
Regression
Probably in some way, once upon a time container estimations were completely broken. Now they're fine, but GAS is a problem.
Your Environment
uname -a
): Debian stableThe text was updated successfully, but these errors were encountered: