You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default is smth like 30 seconds and does not depend on a block time. At least missing expiration time with enabled expirations, should not ever lead to a 0-second expiration (unusable sessions in fact).
Possible Solution
Make it const
or at least
Do not allow 0 duration in any cases
Steps to Reproduce
Specify 100ms time block and try to use sessions.
Context
100ms time block time test run.
Regression
Not sure.
Your Environment
v0.106.2
The text was updated successfully, but these errors were encountered:
Won't be done, it should be dependent from block time. Log message should be adjusted to change "setting default value" to something more user-friendly.
Won't be done, it should be dependent from block time.
And you made it not in blocks but in seconds, huh? I do not have a strong opinion here but a session is a network thing to me so it should rely on some expectations about how fast a caller can do what he wants (and I am not sure reading some info from chain is connected to blocks or their duration).
Sessions require snapshots, snapshots may affect block processing. 30s timeout with 15s is two blocks behind, but 300 blocks behind if you have 100ms blocks, a huge difference in terms of recency.
If session expiration is not specified, it is calculated. The way it is derived and the fact that it is not constant may confuse.
Current Behavior
I set 100ms block time and enabled sessions, however, did not specify session expiration. In the logs I saw
and thought that I was all right. However, it seems that the "default" is:
neo-go/pkg/services/rpcsrv/server.go
Line 276 in 7304b2c
Expected Behavior
The default is smth like 30 seconds and does not depend on a block time. At least missing expiration time with enabled expirations, should not ever lead to a 0-second expiration (unusable sessions in fact).
Possible Solution
or at least
Steps to Reproduce
Specify 100ms time block and try to use sessions.
Context
100ms time block time test run.
Regression
Not sure.
Your Environment
v0.106.2
The text was updated successfully, but these errors were encountered: