neoneo-go/pkg/services/rpcsrv
Anna Shaleva 82e52c4f6d rpcsrv: fix RPC error codes proposal compatibility
mempool.ErrInsufficientFunds is used when sender doesn't have enough
balance to pay the submitted transaction fees (-511 code according to
https://github.com/neo-project/proposals/pull/156). mempool.ErrConflict is
used when sender is not able to pay the overall transactions fee sum in
the pool (generic -500 error according to the proposal).

This bugfix is kind of breaking change for those users who relied on the
old -511 code previously returning "insufficient funds" error.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-03-18 18:05:19 +03:00
..
params rpcsrv: support Map parameter in invokefunction RPC handler 2024-02-28 15:54:33 +03:00
testdata rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
client_test.go rpcsrv: properly close RPC clients in tests 2024-03-14 11:04:39 +03:00
error.go rpcsrv: remove default request HTTP codes from switch statement 2023-08-16 14:00:24 +01:00
local_test.go config: drop deprecated address/port configurations 2023-10-10 13:26:07 +03:00
prometheus.go rpcsrv: remove deprecated RPC counters 2023-03-18 10:52:24 +03:00
server.go rpcsrv: fix RPC error codes proposal compatibility 2024-03-18 18:05:19 +03:00
server_helper_test.go rpcsrv: add close of http server in tests 2024-03-06 01:17:59 +03:00
server_test.go rpcsrv: fix RPC error codes proposal compatibility 2024-03-18 18:05:19 +03:00
subscription.go neorpc: add WS notification filter IsValid functionality 2023-12-28 11:08:46 +03:00
subscription_test.go rpcsrv: add close of blockchain and rpc server in tests 2024-03-06 01:17:59 +03:00
tokens.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
util.go rpc/server: move to services/rpcsrv 2022-07-21 22:14:12 +03:00