neo-go/pkg/rpc
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
..
client Merge pull request #925 from nspcc-dev/rpc-over-websocket 2020-05-06 12:52:58 +03:00
request rpc, smartcontract: move contract metadata to smartcontract package 2020-05-04 08:37:39 +03:00
response core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
server rpc/server: rework submitblock empty test 2020-05-06 14:20:35 +03:00
rpc_config.go config: move config.go out of config/ 2020-03-31 17:55:59 +03:00