neo-go/pkg/services
Tatiana Nesterenko f3760c1a98 rpcsrv: return ErrUnknownSession and ErrUnknownIterator
Behaviour change.
`terminatesession` returns ErrUnknownSession in case of impossibility of finding session,
previously there was no-error response with `false` result.
`traverseIterator`returns ErrUnknownSession in case of impossibility of finding session,
previously there was no-error response with default result; `traverseIterator`returns ErrUnknownIterator,
there were no such errors before.
Accordingly to proposal:
https://github.com/neo-project/proposals/pull/156
Also adding description of `traverseIterator` in docs/rpc.md.

Signed-off-by: Tatiana Nesterenko <tatiana@nspcc.io>
2023-08-16 14:16:14 +01:00
..
helpers/rpcbroadcaster *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
metrics *: use CompareAndSwap instead of CAS for atomics 2023-04-28 12:07:19 +03:00
notary *: use CompareAndSwap instead of CAS for atomics 2023-04-28 12:07:19 +03:00
oracle oracle: make use of ReadCloser returned from NeoFS's getters 2023-06-06 17:40:19 +03:00
rpcsrv rpcsrv: return ErrUnknownSession and ErrUnknownIterator 2023-08-16 14:16:14 +01:00
stateroot *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00