mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
rpc/server: allow specifying number for getblockheader
As it should be allowed.
This commit is contained in:
parent
dfb26f9ab2
commit
2ef9ec0756
2 changed files with 25 additions and 12 deletions
|
@ -910,6 +910,10 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
|
|||
t.Run("verbose=0", func(t *testing.T) {
|
||||
runCase(t, fmt.Sprintf(rpc, `["`+testHeaderHash+`", 0]`), &encoded, new(string))
|
||||
})
|
||||
|
||||
t.Run("by number", func(t *testing.T) {
|
||||
runCase(t, fmt.Sprintf(rpc, `[1]`), &encoded, new(string))
|
||||
})
|
||||
})
|
||||
|
||||
t.Run("verbose != 0", func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue