neo-go/pkg/rpc/server
Roman Khimov 7287c01bd0 rpc/server: rework submitblock empty test
The original intention here was to check for server reaction in presence of
validation errors (response.ErrValidationFailed) and it was very easy to make
validation fail for block without transactions in Neo 2. But in Neo 3
transactionless blocks are perfectly valid (see
29d321b5e1) which broke this test even though we
didn't see it until websocket addition (which required
8cec6694ae to make this test work initially).

So make a valid block and then spoil its verification script.
2020-05-06 14:20:35 +03:00
..
testdata core: add cosigners field to transaction 2020-05-04 11:53:31 +03:00
prometheus.go rpc: reuse handlers map for prometheus metrics 2020-03-25 15:25:12 +03:00
server.go rpc/server: add websockets support via '/ws' URL 2020-05-04 16:54:35 +03:00
server_helper_test.go rpc/server: use httptest.Server for testing 2020-05-04 16:54:35 +03:00
server_test.go rpc/server: rework submitblock empty test 2020-05-06 14:20:35 +03:00